Skip to content

Commit

Permalink
feat: Update ColorPicker to match WinUI standards
Browse files Browse the repository at this point in the history
- Update color conversion and brightness calculation
- Implement WinUI-compliant value text format
- Replace record typedefs with final classes
- Update color names dictionary
- Optimize CheckerboardPainter performance
- Make ColorMode enum private
- Update documentation and changelog

Co-Authored-By: Bruno D'Luka <45696119+bdlukaa@users.noreply.github.com>
  • Loading branch information
diluculo and bdlukaa committed Dec 13, 2024
1 parent c0490cb commit 970a7e5
Show file tree
Hide file tree
Showing 5 changed files with 324 additions and 1,743 deletions.
37 changes: 1 addition & 36 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,6 @@
## [next]

- feat: Add ColorPicker component following WinUI 3 specifications ([#1001](https://github.com/bdlukaa/fluent_ui/issues/1001)
- fix: Add missing properties (`closeIconSize`, `closeButtonStyle`) in `debugFillProperties` and `InfoBarThemeData.merge` ([#1128](https://github.com/bdlukaa/fluent_ui/issues/1128)
- feat: Add `TabView.reservedStripWidth`, which adds a minimum empty area between the tabs and the tab view footer ([#1106](https://github.com/bdlukaa/fluent_ui/issues/1106))]
- fix: Correctly unfocus `NumberBox` when user taps outside ([#1135](https://github.com/bdlukaa/fluent_ui/issues/1135))
- fix: Do try to scroll Date and Time at build time ([#1117](https://github.com/bdlukaa/fluent_ui/issues/1117))
- feat: Use a `Decoration` instead of `Color` in `NavigationAppBar` ([#1118](https://github.com/bdlukaa/fluent_ui/issues/1118))
- feat: Add `EditableComboBox.inputFormatters` ([#1041](https://github.com/bdlukaa/fluent_ui/issues/1041))
- **BREAKING** feat: `TextBox.decoration` and `TextBox.foregroundDecoration` are now of type `WidgetStateProperty` ([#987](https://github.com/bdlukaa/fluent_ui/pull/987))

Before:
```dart
TextBox(
decoration: BoxDecoration(
color: Colors.red,
),
foregroundDecoration: BoxDecoration(
color: Colors.blue,
),
),
```

After:
```dart
TextBox(
decoration: WidgetStateProperty.all(BoxDecoration(
color: Colors.red,
)),
foregroundDecoration: WidgetStateProperty.all(BoxDecoration(
color: Colors.blue,
)),
),
```
- feat: Add `TabView.gestures`, which allows the manipulation of the tab gestures ([#1138](https://github.com/bdlukaa/fluent_ui/issues/1138))
- feat: Add `DropDownButton.style` ([#1139](https://github.com/bdlukaa/fluent_ui/issues/1139))
- feat: Possibility to open date and time pickers programatically ([#1142](https://github.com/bdlukaa/fluent_ui/issues/1142))
- fix: `TimePicker` hour offset
- feat: Add `ColorPicker` ([#1001](https://github.com/bdlukaa/fluent_ui/issues/1001)
- fix: Add missing properties (`closeIconSize`, `closeButtonStyle`) in `debugFillProperties` and `InfoBarThemeData.merge` ([#1128](https://github.com/bdlukaa/fluent_ui/issues/1128)
- feat: Add `TabView.reservedStripWidth`, which adds a minimum empty area between the tabs and the tab view footer ([#1106](https://github.com/bdlukaa/fluent_ui/issues/1106))]
- fix: Correctly unfocus `NumberBox` when user taps outside ([#1135](https://github.com/bdlukaa/fluent_ui/issues/1135))
Expand Down
Loading

0 comments on commit 970a7e5

Please sign in to comment.