From 480a9be15c00f6fe22e17628a00e03b199930bdc Mon Sep 17 00:00:00 2001 From: zeroone Date: Mon, 9 Sep 2024 23:54:25 +0800 Subject: [PATCH] =?UTF-8?q?*=20=E6=A0=BC=E5=BC=8F=E5=8C=96=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Directory.Build.props | 1 - samples/AtomUI.Demo.Desktop/App.axaml | 11 +- .../AtomUI.Demo.Desktop.csproj.DotSettings | 5 +- .../AtomUI.Demo.Desktop/Base/ShowCaseItem.cs | 3 +- .../AtomUI.Demo.Desktop/Base/ShowCasePanel.cs | 2 +- .../Controls/Colors/ColorItemControl.axaml | 52 +- .../Controls/Colors/ColorListControl.axaml | 24 +- .../Colors/ColorListGroupControl.axaml | 22 +- .../Controls/PathIcon/IconGallery.axaml | 19 +- .../Controls/PathIcon/IconInfoItem.axaml | 45 +- .../ShowCase/AlertShowCase.axaml | 215 ++-- .../ShowCase/AlertShowCase.axaml.cs | 2 - .../ShowCase/AvatarShowCase.axaml | 22 +- .../ShowCase/AvatarShowCase.axaml.cs | 2 - .../ShowCase/BadgeShowCase.axaml | 339 ++++--- .../ShowCase/ButtonShowCase.axaml | 338 ++++--- .../ShowCase/ButtonSpinnerShowCase.axaml | 415 ++++---- .../ShowCase/CardShowCase.axaml | 22 +- .../ShowCase/CheckBoxShowCase.axaml | 137 +-- .../ShowCase/CollapseShowCase.axaml | 134 ++- .../ShowCase/ComboBoxShowCase.axaml | 244 ++--- .../ShowCase/ComboBoxShowCase.axaml.cs | 2 - .../ShowCase/DatePickerShowCase.cs.axaml | 22 +- .../ShowCase/DrawerShowCase.axaml | 35 +- .../ShowCase/DropdownButtonShowCase.axaml | 533 ++++++---- .../ShowCase/EmptyShowCase.axaml | 65 +- .../ShowCase/ExpanderShowCase.axaml | 168 +-- .../ShowCase/ExpanderShowCase.axaml.cs | 1 - .../ShowCase/GroupBoxShowCase.axaml | 70 +- .../ShowCase/IconShowCase.axaml | 29 +- .../ShowCase/InfoFlyoutShowCase.axaml | 666 +++++++----- .../ShowCase/InfoFlyoutShowCase.axaml.cs | 1 - .../ShowCase/LineEditShowCase.axaml | 269 ++--- .../ShowCase/LineEditShowCase.axaml.cs | 2 - .../ShowCase/ListBoxShowCase.axaml | 44 +- .../ShowCase/ListBoxShowCase.axaml.cs | 2 - .../ShowCase/LoadingIndicatorShowCase.axaml | 134 +-- .../ShowCase/MenuShowCase.axaml | 177 ++-- .../ShowCase/MenuShowCase.axaml.cs | 2 - .../ShowCase/MessageShowCase.axaml | 73 +- .../ShowCase/MessageShowCase.axaml.cs | 2 +- .../ShowCase/NotificationShowCase.axaml | 104 +- .../ShowCase/NumberUpDownShowCase.axaml | 189 ++-- .../ShowCase/Overview.axaml | 468 +++++---- .../ShowCase/Overview.axaml.cs | 4 - .../ShowCase/PaginationShowCase.axaml | 22 +- .../ShowCase/PaginationShowCase.axaml.cs | 2 - .../ShowCase/PaletteShowCase.axaml | 35 +- .../ShowCase/PopupConfirmShowCase.axaml | 292 +++--- .../ShowCase/ProgressBarShowCase.axaml | 955 +++++++++++++----- .../ShowCase/ProgressBarShowCase.axaml.cs | 1 - .../ShowCase/RadioButtonShowCase.axaml | 136 ++- .../ShowCase/SegmentedShowCase.axaml | 122 ++- .../ShowCase/SegmentedShowCase.axaml.cs | 2 - .../ShowCase/SeparatorShowCase.axaml | 91 +- .../ShowCase/SeparatorShowCase.axaml.cs | 2 - .../ShowCase/SliderShowCase.axaml | 237 ++--- .../ShowCase/SplitButtonShowCase.axaml | 261 ++--- .../ShowCase/SwitchShowCase.axaml | 125 +-- .../ShowCase/TabControlShowCase.axaml | 246 ++--- .../ShowCase/TagShowCase.axaml | 117 ++- .../ShowCase/TagShowCase.axaml.cs | 2 - .../ShowCase/TimePickerShowCase.axaml | 178 ++-- .../ShowCase/TimelineShowCase.axaml | 22 +- .../ShowCase/TimelineShowCase.axaml.cs | 2 - .../ShowCase/TitleBarShowCase.axaml | 22 +- .../ShowCase/TitleBarShowCase.axaml.cs | 2 - .../ShowCase/ToolBarShowCase.axaml | 22 +- .../ShowCase/ToolBarShowCase.axaml.cs | 2 - .../ShowCase/TooltipShowCase.axaml | 292 +++--- .../ShowCase/TreeViewShowCase.axaml | 117 +-- .../ShowCase/WatermarkShowCase.axaml | 32 +- .../ShowCase/WatermarkShowCase.axaml.cs | 2 - .../AtomUI.Demo.Desktop/Themes/TabMenu.axaml | 30 +- .../Themes/ToggleButton.axaml | 22 +- .../Utils/EnumExtension.cs | 2 +- .../ViewModels/CheckBoxShowCaseModel.cs | 1 - .../ViewModels/DataGridDemoViewModel.cs | 3 - .../ViewModels/TabControlDemoViewModel.cs | 1 - .../AtomUI.Demo.Desktop/Views/MainView.axaml | 44 +- .../Views/MainWindow.axaml | 27 +- src/AtomUI.Base/AtomUI.Base.csproj | 1 + src/AtomUI.Base/MotionScene/MotionActor.cs | 1 - .../AddOnDecoratedBox/AddOnDecoratedBox.cs | 1 - .../AddOnDecoratedBoxTheme.cs | 2 +- .../AddOnDecoratedInnerBox.cs | 2 +- .../AddOnDecoratedInnerBoxTheme.cs | 2 +- src/AtomUI.Controls/Alert/Alert.cs | 1 - src/AtomUI.Controls/Alert/AlertTheme.cs | 2 +- src/AtomUI.Controls/AtomUI.Controls.csproj | 1 - .../AtomUI.Controls.csproj.DotSettings | 47 +- src/AtomUI.Controls/Badge/CountBadge.cs | 5 +- src/AtomUI.Controls/Badge/CountBadgeMotion.cs | 34 +- src/AtomUI.Controls/Badge/DotBadge.cs | 5 +- .../ButtonSpinner/ButtonSpinnerInnerBox.cs | 1 - .../ButtonSpinner/ButtonSpinnerTheme.cs | 2 +- src/AtomUI.Controls/Buttons/Button.cs | 1 - src/AtomUI.Controls/Buttons/DropdownButton.cs | 2 +- src/AtomUI.Controls/Buttons/IconButton.cs | 1 - .../Buttons/IconButtonTheme.cs | 1 - src/AtomUI.Controls/Buttons/SplitButton.cs | 6 +- .../Buttons/SplitButtonTheme.cs | 4 - .../Buttons/ToggleIconButtonTheme.cs | 2 - src/AtomUI.Controls/CheckBox/CheckBox.cs | 1 - src/AtomUI.Controls/Collapse/Collapse.cs | 1 - src/AtomUI.Controls/Collapse/CollapseItem.cs | 2 +- .../Collapse/CollapseItemTheme.cs | 4 +- .../ComboBox/ComboBoxSpinnerInnerBox.cs | 1 - src/AtomUI.Controls/ComboBox/ComboBoxTheme.cs | 2 +- .../DatePicker/DatePickerToken.cs | 2 +- .../EmptyIndicator/EmptyIndicator.cs | 2 +- .../EmptyIndicator/EmptyIndicatorTheme.cs | 2 +- src/AtomUI.Controls/Expander/Expander.cs | 8 +- src/AtomUI.Controls/Expander/ExpanderTheme.cs | 1 + src/AtomUI.Controls/Flyouts/Flyout.cs | 3 +- src/AtomUI.Controls/Flyouts/FlyoutHost.cs | 2 +- .../Flyouts/MenuFlyoutPresenter.cs | 1 - .../Flyouts/MenuFlyoutPresenterTheme.cs | 5 +- src/AtomUI.Controls/GroupBox/GroupBox.cs | 2 - src/AtomUI.Controls/Input/SearchEdit.cs | 1 - src/AtomUI.Controls/ListBox/ListBox.cs | 1 - .../ListBox/ListBoxItemTheme.cs | 1 - src/AtomUI.Controls/Loading/LoadingMask.cs | 1 - src/AtomUI.Controls/Localization/en_US.cs | 2 + src/AtomUI.Controls/Localization/zh_CN.cs | 2 + .../MarqueeLabel/MarqueeLabel.cs | 1 + src/AtomUI.Controls/Menu/ContextMenu.cs | 3 - src/AtomUI.Controls/Menu/ContextMenuTheme.cs | 2 +- src/AtomUI.Controls/Menu/Menu.cs | 2 +- src/AtomUI.Controls/Menu/MenuItem.cs | 2 +- src/AtomUI.Controls/Menu/MenuItemTheme.cs | 2 +- .../Menu/MenuScrollViewerTheme.cs | 2 +- src/AtomUI.Controls/Menu/MenuSeparator.cs | 1 - src/AtomUI.Controls/Menu/MenuTheme.cs | 1 - .../Menu/TopLevelMenuItemTheme.cs | 2 +- src/AtomUI.Controls/Message/IMessage.cs | 2 +- .../Message/IMessageManager.cs | 2 +- src/AtomUI.Controls/Message/Message.cs | 2 +- src/AtomUI.Controls/Message/MessageCard.cs | 5 +- .../Message/MessageCardTheme.cs | 4 +- src/AtomUI.Controls/Message/MessageToken.cs | 2 +- src/AtomUI.Controls/Message/MessageType.cs | 2 +- .../Message/WindowMessageManager.cs | 2 +- .../Message/WindowMessageManagerTheme.cs | 2 +- .../Notifications/NotificationCard.cs | 6 +- .../Notifications/NotificationCardTheme.cs | 2 +- .../Notifications/NotificationProgressBar.cs | 3 +- .../PathIcon/IconProviderMarkupExtension.cs | 1 - src/AtomUI.Controls/Popup/Popup.cs | 2 +- .../PopupConfirm/Localization/en_US.cs | 2 + .../PopupConfirm/Localization/zh_CN.cs | 2 + .../PopupConfirm/PopupConfirm.cs | 2 +- .../PopupConfirmContainerTheme.cs | 2 +- .../Primitives/MotionGhostControl.cs | 3 +- .../Primitives/ShadowRenderer.cs | 2 - .../ProgressBar/AbstractCircleProgress.cs | 1 - .../AbstractCircleProgressTheme.cs | 4 +- .../ProgressBar/AbstractLineProgress.cs | 1 - .../ProgressBar/AbstractLineProgressTheme.cs | 4 +- .../ProgressBar/AbstractProgressBar.cs | 1 + .../RadioButton/RadioButton.cs | 1 - .../Segmented/SegmentedItem.cs | 2 +- src/AtomUI.Controls/Separator/Separator.cs | 2 - src/AtomUI.Controls/Slider/SliderTrack.cs | 1 + src/AtomUI.Controls/Switch/SwitchKnob.cs | 3 +- src/AtomUI.Controls/Switch/ToggleSwitch.cs | 1 - .../Switch/ToggleSwitchTheme.cs | 2 +- .../Switch/ToggleSwitchToken.cs | 2 +- .../TabControl/BaseOverflowMenuItem.cs | 1 - .../TabControl/BaseOverflowMenuItemTheme.cs | 2 +- .../TabControl/BaseTabControl.cs | 1 - .../TabControl/BaseTabItemTheme.cs | 2 +- .../TabControl/BaseTabScrollViewer.cs | 2 +- .../TabControl/BaseTabScrollViewerTheme.cs | 2 +- .../TabControl/CardTabControl.cs | 1 - .../TabControl/CardTabControlTheme.cs | 4 +- src/AtomUI.Controls/TabControl/TabControl.cs | 4 +- .../TabControl/TabControlTheme.cs | 4 +- src/AtomUI.Controls/TabControl/TabItem.cs | 2 +- .../TabControl/TabStrip/BaseTabStrip.cs | 1 - .../TabStrip/BaseTabStripItemTheme.cs | 2 +- .../TabControl/TabStrip/CardTabStrip.cs | 1 - .../TabControl/TabStrip/CardTabStripTheme.cs | 4 +- .../TabControl/TabStrip/TabStrip.cs | 4 +- .../TabControl/TabStrip/TabStripItem.cs | 2 +- .../TabControl/TabStrip/TabStripTheme.cs | 4 +- src/AtomUI.Controls/Tag/Tag.cs | 1 - src/AtomUI.Controls/Tag/TagTheme.cs | 2 +- .../TimePicker/DateTimePickerPanel.cs | 3 +- .../TimePicker/Localization/en_US.cs | 2 + .../TimePicker/Localization/zh_CN.cs | 2 + .../TimePicker/PickerClearUpButtonTheme.cs | 2 +- .../RangeTimePickerFlyoutPresenterTheme.cs | 2 +- .../TimePicker/RangeTimePickerTheme.cs | 2 +- src/AtomUI.Controls/TimePicker/TimePicker.cs | 2 +- .../TimePickerFlyoutPresenterTheme.cs | 2 +- .../TimePicker/TimePickerPresenter.cs | 1 - .../TimePicker/TimePickerPresenterTheme.cs | 2 +- src/AtomUI.Controls/Tooltip/ToolTip.cs | 2 +- .../TreeView/DragPreviewAdorner.cs | 4 +- .../TreeView/NodeSwitcherButton.cs | 2 +- src/AtomUI.Controls/TreeView/TreeView.cs | 1 + src/AtomUI.Controls/TreeView/TreeViewItem.cs | 1 - .../TreeView/TreeViewItemTheme.cs | 3 +- src/AtomUI.Controls/Utils/DateTimeUtils.cs | 2 +- .../Utils/RoundRectGeometryBuilder.cs | 1 - .../Watermark/Glyphs/ImageGlyph.cs | 1 - src/AtomUI.Controls/Window/CaptionButton.cs | 5 +- .../Window/CaptionButtonBox.cs | 2 +- .../Window/CaptionButtonThemeProvider.cs | 4 +- .../Window/CaptionButtonToken.cs | 2 +- src/AtomUI.Controls/Window/TitleBar.cs | 2 +- src/AtomUI.Controls/Window/Window.cs | 4 +- src/AtomUI.Controls/Window/WindowToken.cs | 2 +- ...nguageProviderRegisterClassSourceWriter.cs | 3 +- src/AtomUI.Theme/AbstractLanguageProvider.cs | 1 - .../Data/LanguageResourceBinder.cs | 5 +- src/AtomUI.Theme/Data/TokenResourceBinder.cs | 2 +- 218 files changed, 4867 insertions(+), 4099 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index ad1163d..107eabd 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,7 +1,6 @@ - AtomUI enable enable latest diff --git a/samples/AtomUI.Demo.Desktop/App.axaml b/samples/AtomUI.Demo.Desktop/App.axaml index 9be0c68..fdafaeb 100644 --- a/samples/AtomUI.Demo.Desktop/App.axaml +++ b/samples/AtomUI.Demo.Desktop/App.axaml @@ -1,9 +1,8 @@ - + + diff --git a/samples/AtomUI.Demo.Desktop/AtomUI.Demo.Desktop.csproj.DotSettings b/samples/AtomUI.Demo.Desktop/AtomUI.Demo.Desktop.csproj.DotSettings index a74a2d7..204af06 100644 --- a/samples/AtomUI.Demo.Desktop/AtomUI.Demo.Desktop.csproj.DotSettings +++ b/samples/AtomUI.Demo.Desktop/AtomUI.Demo.Desktop.csproj.DotSettings @@ -1,2 +1,5 @@  - True \ No newline at end of file + True + True + True + False \ No newline at end of file diff --git a/samples/AtomUI.Demo.Desktop/Base/ShowCaseItem.cs b/samples/AtomUI.Demo.Desktop/Base/ShowCaseItem.cs index c07cdb0..96a5c4c 100644 --- a/samples/AtomUI.Demo.Desktop/Base/ShowCaseItem.cs +++ b/samples/AtomUI.Demo.Desktop/Base/ShowCaseItem.cs @@ -1,10 +1,9 @@ using Avalonia; using Avalonia.Controls; -using Avalonia.Layout; using Avalonia.LogicalTree; using Avalonia.Media; -namespace AtomUI.Demo.Desktop.ShowCase; +namespace AtomUI.Demo.Desktop; public class ShowCaseItem : ContentControl { diff --git a/samples/AtomUI.Demo.Desktop/Base/ShowCasePanel.cs b/samples/AtomUI.Demo.Desktop/Base/ShowCasePanel.cs index 650f33f..f6ffea4 100644 --- a/samples/AtomUI.Demo.Desktop/Base/ShowCasePanel.cs +++ b/samples/AtomUI.Demo.Desktop/Base/ShowCasePanel.cs @@ -6,7 +6,7 @@ using Avalonia.LogicalTree; using Avalonia.Metadata; using AvaloniaControlList = Avalonia.Controls.Controls; -namespace AtomUI.Demo.Desktop.ShowCase; +namespace AtomUI.Demo.Desktop; public class ShowCasePanel : Control { diff --git a/samples/AtomUI.Demo.Desktop/Controls/Colors/ColorItemControl.axaml b/samples/AtomUI.Demo.Desktop/Controls/Colors/ColorItemControl.axaml index 1df7e2d..93ac497 100644 --- a/samples/AtomUI.Demo.Desktop/Controls/Colors/ColorItemControl.axaml +++ b/samples/AtomUI.Demo.Desktop/Controls/Colors/ColorItemControl.axaml @@ -1,10 +1,9 @@ - + @@ -13,28 +12,25 @@ - + - - + + diff --git a/samples/AtomUI.Demo.Desktop/Controls/Colors/ColorListControl.axaml b/samples/AtomUI.Demo.Desktop/Controls/Colors/ColorListControl.axaml index d45f10d..ce5fb48 100644 --- a/samples/AtomUI.Demo.Desktop/Controls/Colors/ColorListControl.axaml +++ b/samples/AtomUI.Demo.Desktop/Controls/Colors/ColorListControl.axaml @@ -1,15 +1,14 @@ - + - + @@ -17,11 +16,10 @@ - + diff --git a/samples/AtomUI.Demo.Desktop/Controls/Colors/ColorListGroupControl.axaml b/samples/AtomUI.Demo.Desktop/Controls/Colors/ColorListGroupControl.axaml index a0f9d7b..a93c83e 100644 --- a/samples/AtomUI.Demo.Desktop/Controls/Colors/ColorListGroupControl.axaml +++ b/samples/AtomUI.Demo.Desktop/Controls/Colors/ColorListGroupControl.axaml @@ -1,29 +1,27 @@ - + - + - + - + - + \ No newline at end of file diff --git a/samples/AtomUI.Demo.Desktop/Controls/PathIcon/IconGallery.axaml b/samples/AtomUI.Demo.Desktop/Controls/PathIcon/IconGallery.axaml index 35bc613..08fcba8 100644 --- a/samples/AtomUI.Demo.Desktop/Controls/PathIcon/IconGallery.axaml +++ b/samples/AtomUI.Demo.Desktop/Controls/PathIcon/IconGallery.axaml @@ -1,10 +1,9 @@ - + @@ -12,14 +11,12 @@ - + - + diff --git a/samples/AtomUI.Demo.Desktop/Controls/PathIcon/IconInfoItem.axaml b/samples/AtomUI.Demo.Desktop/Controls/PathIcon/IconInfoItem.axaml index be338b0..91b4501 100644 --- a/samples/AtomUI.Demo.Desktop/Controls/PathIcon/IconInfoItem.axaml +++ b/samples/AtomUI.Demo.Desktop/Controls/PathIcon/IconInfoItem.axaml @@ -1,11 +1,10 @@ - + @@ -13,24 +12,20 @@ - + - - - + + diff --git a/samples/AtomUI.Demo.Desktop/ShowCase/AlertShowCase.axaml b/samples/AtomUI.Demo.Desktop/ShowCase/AlertShowCase.axaml index 3dd9a1c..0aefa7d 100644 --- a/samples/AtomUI.Demo.Desktop/ShowCase/AlertShowCase.axaml +++ b/samples/AtomUI.Demo.Desktop/ShowCase/AlertShowCase.axaml @@ -1,161 +1,158 @@ - - - - + + + + Success Text - - - + + + Success Text Info Text Warning Text Error Text - - - + + + - + Warning Text Warning Text Warning Text Warning Text Warning Text Warning TextWarning Text - + Error Text - + IsClosable="True" + Type="Error"> Error Text - - - + + + - - + - + - + + Type="Error" /> - - - - + + + + - - - - - - - - - + + + + + + + + + - - - + + + - + UNDO Success Tips - - + + - Detail + + Detail + Error Text - - + + Done Warning Text - - + + Accept - Decline + + Decline + Info Text - - - - + + + + I can be a React component, multiple React components, or just some text, Info Description Info Description Info Description Info Description - - + + \ No newline at end of file diff --git a/samples/AtomUI.Demo.Desktop/ShowCase/AlertShowCase.axaml.cs b/samples/AtomUI.Demo.Desktop/ShowCase/AlertShowCase.axaml.cs index bfbea50..8402940 100644 --- a/samples/AtomUI.Demo.Desktop/ShowCase/AlertShowCase.axaml.cs +++ b/samples/AtomUI.Demo.Desktop/ShowCase/AlertShowCase.axaml.cs @@ -1,6 +1,4 @@ using Avalonia.Controls; -using Button = AtomUI.Controls.Button; -using ToggleSwitch = AtomUI.Controls.ToggleSwitch; namespace AtomUI.Demo.Desktop.ShowCase; diff --git a/samples/AtomUI.Demo.Desktop/ShowCase/AvatarShowCase.axaml b/samples/AtomUI.Demo.Desktop/ShowCase/AvatarShowCase.axaml index 10155d4..400fa7d 100644 --- a/samples/AtomUI.Demo.Desktop/ShowCase/AvatarShowCase.axaml +++ b/samples/AtomUI.Demo.Desktop/ShowCase/AvatarShowCase.axaml @@ -1,13 +1,11 @@ - - - - + + \ No newline at end of file diff --git a/samples/AtomUI.Demo.Desktop/ShowCase/AvatarShowCase.axaml.cs b/samples/AtomUI.Demo.Desktop/ShowCase/AvatarShowCase.axaml.cs index 2e47d7d..31dec67 100644 --- a/samples/AtomUI.Demo.Desktop/ShowCase/AvatarShowCase.axaml.cs +++ b/samples/AtomUI.Demo.Desktop/ShowCase/AvatarShowCase.axaml.cs @@ -1,6 +1,4 @@ using Avalonia.Controls; -using Button = AtomUI.Controls.Button; -using ToggleSwitch = AtomUI.Controls.ToggleSwitch; namespace AtomUI.Demo.Desktop.ShowCase; diff --git a/samples/AtomUI.Demo.Desktop/ShowCase/BadgeShowCase.axaml b/samples/AtomUI.Demo.Desktop/ShowCase/BadgeShowCase.axaml index cddf14e..41e1280 100644 --- a/samples/AtomUI.Demo.Desktop/ShowCase/BadgeShowCase.axaml +++ b/samples/AtomUI.Demo.Desktop/ShowCase/BadgeShowCase.axaml @@ -1,107 +1,129 @@ - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - Add - Sub - Random + + Add + Sub + Random - + - + - + - + @@ -112,11 +134,9 @@ - + - + @@ -133,120 +153,177 @@ - + - - + + - + - Pushes open the window - - and raises the spyglass. + + Pushes open the window + + + and raises the spyglass. - - + + - Pushes open the window - - and raises the spyglass. + + Pushes open the window + + + and raises the spyglass. - - + + - Pushes open the window - - and raises the spyglass. + + Pushes open the window + + + and raises the spyglass. - - + + - Pushes open the window - - and raises the spyglass. + + Pushes open the window + + + and raises the spyglass. - - + + - Pushes open the window - - and raises the spyglass. + + Pushes open the window + + + and raises the spyglass. - - + + - Pushes open the window - - and raises the spyglass. + + Pushes open the window + + + and raises the spyglass. - - + + - Pushes open the window - - and raises the spyglass. + + Pushes open the window + + + and raises the spyglass. - + - + - + - - - - - - - - - - - - - + + + + + + + + + + + + + - + - - - - + + + + - - + + \ No newline at end of file diff --git a/samples/AtomUI.Demo.Desktop/ShowCase/ButtonShowCase.axaml b/samples/AtomUI.Demo.Desktop/ShowCase/ButtonShowCase.axaml index 34d5883..0ea635e 100644 --- a/samples/AtomUI.Demo.Desktop/ShowCase/ButtonShowCase.axaml +++ b/samples/AtomUI.Demo.Desktop/ShowCase/ButtonShowCase.axaml @@ -1,46 +1,49 @@ - - - + + + - - + + Primary Button Default Button Text Button Link Button - + - + - + Primary Default Text Link - + Primary Default Text Link - + AA AA AA @@ -48,125 +51,175 @@ - + - - - + + + Expand direction: - + Large Default Small - + Primary Default Link - - - - Download - Download + + + + + Download + + + Download + - + - + - - + + Search - - + + Search - + Search - + Search - + Search - + Search - + Search - + Search - + - - + + Loading - Loading - + + Loading + + - Click me! - Click me! - + Click me! + + Click me! + + - - - - - - + + + + + + Primary - + Default - + Text - + Link - - - + + + Primary @@ -181,56 +234,65 @@ If a large or small button is desired, set the size property to either large or Link - - - - - - - - Primary - - - Default - - - Text - - - Link - - - Danger - - - - - Primary - - - Default - - - Text - - - Link - - - Danger - - - + + + + + + + + Primary + + + Default + + + Text + + + Link + + + Danger + + + + + Primary + + + Default + + + Text + + + Link + + + Danger + + + - - - + + + @@ -264,12 +326,14 @@ If a large or small button is desired, set the size property to either large or Link(disabled) - + Danger Primary - + Danger Primary(disabled) @@ -277,7 +341,9 @@ If a large or small button is desired, set the size property to either large or Danger Default - + Danger Default(disabled) @@ -285,7 +351,9 @@ If a large or small button is desired, set the size property to either large or Danger Text - + Danger Text(disabled) @@ -293,11 +361,13 @@ If a large or small button is desired, set the size property to either large or Danger Link - + Danger Link(disabled) - - + + \ No newline at end of file diff --git a/samples/AtomUI.Demo.Desktop/ShowCase/ButtonSpinnerShowCase.axaml b/samples/AtomUI.Demo.Desktop/ShowCase/ButtonSpinnerShowCase.axaml index a7c5bca..687e057 100644 --- a/samples/AtomUI.Demo.Desktop/ShowCase/ButtonSpinnerShowCase.axaml +++ b/samples/AtomUI.Demo.Desktop/ShowCase/ButtonSpinnerShowCase.axaml @@ -1,247 +1,222 @@ - - - + + + - + - - - - + + + + - + - + - + - - - + + + - + - + - + - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + LeftAddOn="http://" + RightAddOn=".com" + Spin="HandleSpin"> + - - - - - - + RightAddOn="{atom:IconProvider Kind=SettingOutlined}" + Spin="HandleSpin"> + - - - + InnerRightContent=".com" + LeftAddOn="http://" + Spin="HandleSpin"> + - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/samples/AtomUI.Demo.Desktop/ShowCase/CardShowCase.axaml b/samples/AtomUI.Demo.Desktop/ShowCase/CardShowCase.axaml index 765bd07..1d89a62 100644 --- a/samples/AtomUI.Demo.Desktop/ShowCase/CardShowCase.axaml +++ b/samples/AtomUI.Demo.Desktop/ShowCase/CardShowCase.axaml @@ -1,13 +1,11 @@ - - - - + + \ No newline at end of file diff --git a/samples/AtomUI.Demo.Desktop/ShowCase/CheckBoxShowCase.axaml b/samples/AtomUI.Demo.Desktop/ShowCase/CheckBoxShowCase.axaml index 0c9530c..2065161 100644 --- a/samples/AtomUI.Demo.Desktop/ShowCase/CheckBoxShowCase.axaml +++ b/samples/AtomUI.Demo.Desktop/ShowCase/CheckBoxShowCase.axaml @@ -1,125 +1,126 @@ - - - + + + - - + + Checkbox - + - - + + UnChecked Indeterminate Checked - + - - - - - + + + + - - + - - - + + + Apple Pear Orange - + Apple Pear Orange - + Apple Pear Orange - + - - + + - + Check all - + + CommandParameter="{Binding ElementName=AppleCheckBox}" + IsChecked="{Binding AppleCheckedStatus}"> Apple - + CommandParameter="{Binding ElementName=PearCheckBox}" + IsChecked="{Binding PearCheckedStatus}"> Pear - + CommandParameter="{Binding ElementName=OrangeCheckBox}" + IsChecked="{Binding OrangeCheckedStatus}"> Orange - - - - + + + + A B C D D - - + + \ No newline at end of file diff --git a/samples/AtomUI.Demo.Desktop/ShowCase/CollapseShowCase.axaml b/samples/AtomUI.Demo.Desktop/ShowCase/CollapseShowCase.axaml index d775ad5..9605355 100644 --- a/samples/AtomUI.Demo.Desktop/ShowCase/CollapseShowCase.axaml +++ b/samples/AtomUI.Demo.Desktop/ShowCase/CollapseShowCase.axaml @@ -1,16 +1,14 @@ - - - + + + @@ -28,14 +26,15 @@ - + - - - + + + @@ -43,7 +42,9 @@ If a large or small collapse is desired, set the size property to either large o - + @@ -51,7 +52,9 @@ If a large or small collapse is desired, set the size property to either large o - + @@ -60,11 +63,9 @@ If a large or small collapse is desired, set the size property to either large o - + - + @@ -82,11 +83,11 @@ If a large or small collapse is desired, set the size property to either large o - + - + @@ -108,11 +109,11 @@ If a large or small collapse is desired, set the size property to either large o - - - + + + @@ -130,11 +131,11 @@ If a large or small collapse is desired, set the size property to either large o - - - + + + @@ -147,27 +148,24 @@ If a large or small collapse is desired, set the size property to either large o - - - + + + - - + + A dog is a type of domesticated animal. Known for its loyalty and faithfulness, it can be found as a welcome guest in many households across the world. - + A dog is a type of domesticated animal. Known for its loyalty and faithfulness, it can be found as a welcome guest in many households across the world. - + A dog is a type of domesticated animal. Known for its loyalty and faithfulness, it can be found as a welcome guest in many households across the world. @@ -176,18 +174,18 @@ If a large or small collapse is desired, set the size property to either large o Expand Icon Position: - + Start End - - - - + + + + @@ -205,11 +203,11 @@ If a large or small collapse is desired, set the size property to either large o - - - + + + @@ -225,7 +223,7 @@ If a large or small collapse is desired, set the size property to either large o - + @@ -233,7 +231,7 @@ If a large or small collapse is desired, set the size property to either large o - + @@ -242,7 +240,7 @@ If a large or small collapse is desired, set the size property to either large o - + - + \ No newline at end of file diff --git a/samples/AtomUI.Demo.Desktop/ShowCase/ComboBoxShowCase.axaml b/samples/AtomUI.Demo.Desktop/ShowCase/ComboBoxShowCase.axaml index 3f58845..a8848fc 100644 --- a/samples/AtomUI.Demo.Desktop/ShowCase/ComboBoxShowCase.axaml +++ b/samples/AtomUI.Demo.Desktop/ShowCase/ComboBoxShowCase.axaml @@ -1,231 +1,241 @@ - - - - - + + + + + 床前明月光 疑是地上霜 举头望明月 低头思故乡 - - - - - - + + + + + + 床前明月光 疑是地上霜 举头望明月 低头思故乡 - + 床前明月光 疑是地上霜 举头望明月 低头思故乡 - + 床前明月光 疑是地上霜 举头望明月 低头思故乡 - - - + + + - + 床前明月光 疑是地上霜 举头望明月 低头思故乡 - - + + 床前明月光 疑是地上霜 举头望明月 低头思故乡 - - + + 床前明月光 疑是地上霜 举头望明月 低头思故乡 - - - + + + - 床前明月光 疑是地上霜 举头望明月 低头思故乡 - - + + 床前明月光 疑是地上霜 举头望明月 低头思故乡 - - + LeftAddOn="http://" + PlaceholderText="Please select"> 床前明月光 疑是地上霜 举头望明月 低头思故乡 - + - - - - + + + + - + 床前明月光 疑是地上霜 举头望明月 低头思故乡 - - + InnerRightContent="RMB" + PlaceholderText="Please select"> 床前明月光 疑是地上霜 举头望明月 低头思故乡 - - + + 床前明月光 疑是地上霜 举头望明月 低头思故乡 - + - - - - - + + + + 床前明月光 疑是地上霜 举头望明月 低头思故乡 - - 床前明月光 疑是地上霜 举头望明月 低头思故乡 - - + 床前明月光 + 疑是地上霜 + 举头望明月 + 低头思故乡 + + + + 床前明月光 + 疑是地上霜 + 举头望明月 + 低头思故乡 + + + + StyleVariant="Filled"> 床前明月光 疑是地上霜 举头望明月 低头思故乡 - - + StyleVariant="Filled"> 床前明月光 疑是地上霜 举头望明月 低头思故乡 - - + StyleVariant="Borderless"> 床前明月光 疑是地上霜 举头望明月 低头思故乡 - - + StyleVariant="Borderless"> 床前明月光 疑是地上霜 举头望明月 低头思故乡 - - - 床前明月光 - 疑是地上霜 - 举头望明月 - 低头思故乡 - - - - 床前明月光 - 疑是地上霜 - 举头望明月 - 低头思故乡 - - + - - - + + + \ No newline at end of file diff --git a/samples/AtomUI.Demo.Desktop/ShowCase/ComboBoxShowCase.axaml.cs b/samples/AtomUI.Demo.Desktop/ShowCase/ComboBoxShowCase.axaml.cs index 1429f22..b0b4efd 100644 --- a/samples/AtomUI.Demo.Desktop/ShowCase/ComboBoxShowCase.axaml.cs +++ b/samples/AtomUI.Demo.Desktop/ShowCase/ComboBoxShowCase.axaml.cs @@ -1,6 +1,4 @@ using Avalonia.Controls; -using Button = AtomUI.Controls.Button; -using ToggleSwitch = AtomUI.Controls.ToggleSwitch; namespace AtomUI.Demo.Desktop.ShowCase; diff --git a/samples/AtomUI.Demo.Desktop/ShowCase/DatePickerShowCase.cs.axaml b/samples/AtomUI.Demo.Desktop/ShowCase/DatePickerShowCase.cs.axaml index 779d54b..c136226 100644 --- a/samples/AtomUI.Demo.Desktop/ShowCase/DatePickerShowCase.cs.axaml +++ b/samples/AtomUI.Demo.Desktop/ShowCase/DatePickerShowCase.cs.axaml @@ -1,13 +1,11 @@ - - - - + + \ No newline at end of file diff --git a/samples/AtomUI.Demo.Desktop/ShowCase/DrawerShowCase.axaml b/samples/AtomUI.Demo.Desktop/ShowCase/DrawerShowCase.axaml index cecf2c5..2867976 100644 --- a/samples/AtomUI.Demo.Desktop/ShowCase/DrawerShowCase.axaml +++ b/samples/AtomUI.Demo.Desktop/ShowCase/DrawerShowCase.axaml @@ -6,6 +6,7 @@ xmlns:desktop="clr-namespace:AtomUI.Demo.Desktop" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:showcase="clr-namespace:AtomUI.Demo.Desktop.ShowCase" + xmlns:utils="clr-namespace:AtomUI.Demo.Desktop.Utils" mc:Ignorable="d"> @@ -45,22 +46,22 @@ - + - + - + - + @@ -71,13 +72,13 @@ - + - + @@ -88,28 +89,28 @@ - + - + - + - + - +