Skip to content

Commit

Permalink
Add missing properties in InfoBarThemeData.merge (#1128)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdlukaa authored Oct 18, 2024
2 parents 3c19333 + a273379 commit 860a063
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [next]

- fix: Add missing properties (`closeIconSize`, `closeButtonStyle`) in `debugFillProperties` and `InfoBarThemeData.merge` ([#1128](https://github.com/bdlukaa/fluent_ui/issues/1128)

## 4.9.2

- feat: `NavigationAppBar.leading` now has a minimum width of `kCompactNavigationPaneWidth` instead of being fixed to this width ([#1103](https://github.com/bdlukaa/fluent_ui/pull/1103))
Expand Down
5 changes: 5 additions & 0 deletions lib/src/controls/surfaces/info_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,8 @@ class InfoBarThemeData with Diagnosticable {
if (style == null) return this;
return InfoBarThemeData(
closeIcon: style.closeIcon ?? closeIcon,
closeIconSize: style.closeIconSize ?? closeIconSize,
closeButtonStyle: style.closeButtonStyle ?? closeButtonStyle,
icon: style.icon ?? icon,
decoration: style.decoration ?? decoration,
actionStyle: style.actionStyle ?? actionStyle,
Expand All @@ -487,6 +489,9 @@ class InfoBarThemeData with Diagnosticable {
properties
..add(ObjectFlagProperty.has('icon', icon))
..add(IconDataProperty('closeIcon', closeIcon))
..add(DoubleProperty('closeIconSize', closeIconSize))
..add(DiagnosticsProperty<ButtonStyle>(
'closeButtonStyle', closeButtonStyle))
..add(ObjectFlagProperty.has('decoration', decoration))
..add(ObjectFlagProperty.has('iconColor', iconColor))
..add(DiagnosticsProperty<ButtonStyle>(
Expand Down

0 comments on commit 860a063

Please sign in to comment.