Commit Graph

16 Commits

Author SHA1 Message Date
Alexander Prokhorov
6f7db1c20c Added IconRepeatButton, IconDropDownButton, IconSplitButton, IconToggleButton, IconToggleSplitButton (#834)
* Added IconRepeatButton (#812)
* Replaced control-specific PART_RootPanel workaround with AffectsArrange call fixing ReversibleStackPanel for the whole application.

* Added IconToggleButton (#812)
* Split IconRepeatButton into separate XAML file.

* Added IconSplitButton (#812)
* Added BindableClasses utility to allow propagating Classes property between controls. Avalonia currently doesn't support binding from Classes property, and binding to Classes property is heavily restricted.

* Added IconToggleSplitButton (#812)
* Fixed tab order in IconSplitButton and IconToggleSplitButton (DockPanel messes up tab order, TabIndex is global and makes it even worse, so just switched to Grid).

* Added IconDropDownButton (#812)
* Fixed IconPlacement inheritance.

* Added redesigned IconButton demo section (#812)
* Fixed spacing issues

* Added redesigned demo sections for the newly added icon buttons (#812)

* Replaced BindableClasses with ClassHelper. Fixed styling of default solid split icon buttons. (#812)

* Replaced IIconButton with attached-like property getters and PseudolassesExtensions.Set(Classes); fixed arrow alignments in top/bottom split icon buttons (#812)

* Applied fixes suggested by Copilot in code review (#812)

* Fixed incorrect base type of IconDropDownButton (#812)

* Fixed IconSplitButton and IconToggleSplitButton styles (#812)
* Fixed secondary button color in checked state
* Fixed applying of CornerRadius
* Changed secondary button to square
* Simplified template
* Disabled demo of Colorful theme for IconSplitButton and IconToggleSplitButton
2025-11-27 22:42:42 +08:00
Zhang Dian
fa94841ab9 feat: add AI style for IconButton. (#823)
* feat: add AI style for IconButton.

* feat: update package references for CommunityToolkit.Mvvm, Semi.Avalonia, and add SkiaSharp.
2025-11-15 15:37:25 +08:00
Zhang Dian
35b122b4e9 feat: enhance IconButton styles and add new button examples. 2025-06-05 21:06:51 +08:00
Zhang Dian
b97a7d26ae feat: add Loading switch. 2025-02-05 02:25:32 +08:00
Zhang Dian
841e0748f2 feat: redesign IconButtonDemo. 2025-02-05 02:25:32 +08:00
Zhang Dian
9b98ad7e6a feat: replace icons in demo. 2025-01-14 00:03:21 +08:00
rabbitism
db20544756 feat: add outline. 2024-08-24 20:45:24 +08:00
Zhang Dian
b69502886f Revert "feat: remove EnumSelector in demo."
This reverts commit f7dc4d35
2024-08-06 00:06:11 +08:00
Zhang Dian
f7dc4d356c feat: remove EnumSelector in demo. 2024-07-29 20:20:27 +08:00
rabbitism
ed21ee8189 feat: pre job: change events to routed events. 2024-02-04 02:07:45 +08:00
rabbitism
bea0618fd2 fix: fix padding. 2024-01-27 20:26:40 +08:00
rabbitism
b46eb8c456 feat: support top and bottom icon button. 2024-01-27 15:09:38 +08:00
rabbitism
1312ab6128 feat: add placement. 2024-01-06 20:44:01 +08:00
rabbitism
e5e7f020e3 feat: add more themes and demo. 2024-01-06 16:50:00 +08:00
rabbitism
08c0105888 feat: add styles. 2024-01-06 16:39:19 +08:00
rabbitism
95682fb450 feat: initialize icon button. 2024-01-06 16:02:14 +08:00