From 694dd863fa66e03cb9f2d8a6fa4f13e036ab0c8f Mon Sep 17 00:00:00 2001 From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com> Date: Thu, 27 Jun 2024 18:08:58 +0800 Subject: [PATCH 1/2] feat: add active colors to palette --- .../ViewModels/PaletteDemoViewModel.cs | 14 +++++++------- src/Semi.Avalonia/Themes/Dark/Palette.axaml | 7 +++++++ src/Semi.Avalonia/Themes/Light/Palette.axaml | 7 +++++++ 3 files changed, 21 insertions(+), 7 deletions(-) diff --git a/demo/Semi.Avalonia.Demo/ViewModels/PaletteDemoViewModel.cs b/demo/Semi.Avalonia.Demo/ViewModels/PaletteDemoViewModel.cs index 3c79a75..f772889 100644 --- a/demo/Semi.Avalonia.Demo/ViewModels/PaletteDemoViewModel.cs +++ b/demo/Semi.Avalonia.Demo/ViewModels/PaletteDemoViewModel.cs @@ -251,7 +251,7 @@ public static class ColorTokens { new ("SemiColorPrimary", "Primary"), new ("SemiColorPrimaryPointerover", "Primary Pointerover"), - new ("SemiColorPrimaryPressed", "Primary Pressed"), + new ("SemiColorPrimaryActive", "Primary Active"), new ("SemiColorPrimaryDisabled", "Primary Disabled"), new ("SemiColorPrimaryLight", "Primary Light"), new ("SemiColorPrimaryLightPointerover", "Primary Light Pointerover"), @@ -262,7 +262,7 @@ public static class ColorTokens { new ("SemiColorSecondary", "Secondary"), new ("SemiColorSecondaryPointerover", "Secondary Pointerover"), - new ("SemiColorSecondaryPressed", "Secondary Pressed"), + new ("SemiColorSecondaryActive", "Secondary Active"), new ("SemiColorSecondaryDisabled", "Secondary Disabled"), new ("SemiColorSecondaryLight", "Secondary Light"), new ("SemiColorSecondaryLightPointerover", "Secondary Light Pointerover"), @@ -273,7 +273,7 @@ public static class ColorTokens { new ("SemiColorTertiary", "Tertiary"), new ("SemiColorTertiaryPointerover", "Tertiary Pointerover"), - new ("SemiColorTertiaryPressed", "Tertiary Pressed"), + new ("SemiColorTertiaryActive", "Tertiary Active"), new ("SemiColorTertiaryLight", "Tertiary Light"), new ("SemiColorTertiaryLightPointerover", "Tertiary Light Pointerover"), new ("SemiColorTertiaryLightActive", "Tertiary Light Active"), @@ -283,7 +283,7 @@ public static class ColorTokens { new ("SemiColorInformation", "Information"), new ("SemiColorInformationPointerover", "Information Pointerover"), - new ("SemiColorInformationPressed", "Information Pressed"), + new ("SemiColorInformationActive", "Information Active"), new ("SemiColorInformationDisabled", "Information Disabled"), new ("SemiColorInformationLight", "Information Light"), new ("SemiColorInformationLightPointerover", "Information Light Pointerover"), @@ -294,7 +294,7 @@ public static class ColorTokens { new ("SemiColorSuccess", "Success"), new ("SemiColorSuccessPointerover", "Success Pointerover"), - new ("SemiColorSuccessPressed", "Success Pressed"), + new ("SemiColorSuccessActive", "Success Active"), new ("SemiColorSuccessDisabled", "Success Disabled"), new ("SemiColorSuccessLight", "Success Light"), new ("SemiColorSuccessLightPointerover", "Success Light Pointerover"), @@ -305,7 +305,7 @@ public static class ColorTokens { new ("SemiColorWarning", "Warning"), new ("SemiColorWarningPointerover", "Warning Pointerover"), - new ("SemiColorWarningPressed", "Warning Pressed"), + new ("SemiColorWarningActive", "Warning Active"), new ("SemiColorWarningLight", "Warning Light"), new ("SemiColorWarningLightPointerover", "Warning Light Pointerover"), new ("SemiColorWarningLightActive", "Warning Light Active"), @@ -315,7 +315,7 @@ public static class ColorTokens { new ("SemiColorDanger", "Danger"), new ("SemiColorDangerPointerover", "Danger Pointerover"), - new ("SemiColorDangerPressed", "Danger Pressed"), + new ("SemiColorDangerActive", "Danger Active"), new ("SemiColorDangerLight", "Danger Light"), new ("SemiColorDangerLightPointerover", "Danger Light Pointerover"), new ("SemiColorDangerLightActive", "Danger Light Active"), diff --git a/src/Semi.Avalonia/Themes/Dark/Palette.axaml b/src/Semi.Avalonia/Themes/Dark/Palette.axaml index 1bb73ab..6960964 100644 --- a/src/Semi.Avalonia/Themes/Dark/Palette.axaml +++ b/src/Semi.Avalonia/Themes/Dark/Palette.axaml @@ -326,6 +326,7 @@ + @@ -334,6 +335,7 @@ + @@ -342,6 +344,7 @@ + @@ -349,6 +352,7 @@ + @@ -357,6 +361,7 @@ + @@ -365,6 +370,7 @@ + @@ -372,6 +378,7 @@ + diff --git a/src/Semi.Avalonia/Themes/Light/Palette.axaml b/src/Semi.Avalonia/Themes/Light/Palette.axaml index 63aa057..bec6dd8 100644 --- a/src/Semi.Avalonia/Themes/Light/Palette.axaml +++ b/src/Semi.Avalonia/Themes/Light/Palette.axaml @@ -326,6 +326,7 @@ + @@ -334,6 +335,7 @@ + @@ -342,6 +344,7 @@ + @@ -349,6 +352,7 @@ + @@ -357,6 +361,7 @@ + @@ -365,6 +370,7 @@ + @@ -372,6 +378,7 @@ + From 942229acdc643ba26b1eb6927a08cc4fc368f08a Mon Sep 17 00:00:00 2001 From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com> Date: Mon, 1 Jul 2024 12:42:14 +0800 Subject: [PATCH 2/2] feat: dotnet7->dotnet8, restore font weight. --- .../Semi.Avalonia.Demo.Android.csproj | 2 +- .../Semi.Avalonia.Demo.Desktop.csproj | 2 +- src/Semi.Avalonia/Themes/Shared/Button.axaml | 6 +++--- src/Semi.Avalonia/Themes/Shared/ToggleButton.axaml | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/demo/Semi.Avalonia.Demo.Android/Semi.Avalonia.Demo.Android.csproj b/demo/Semi.Avalonia.Demo.Android/Semi.Avalonia.Demo.Android.csproj index 47a4269..2a1b2ad 100644 --- a/demo/Semi.Avalonia.Demo.Android/Semi.Avalonia.Demo.Android.csproj +++ b/demo/Semi.Avalonia.Demo.Android/Semi.Avalonia.Demo.Android.csproj @@ -1,7 +1,7 @@ Exe - net7.0-android + net8.0-android 21 com.irihitech.Semi.Avalonia 1 diff --git a/demo/Semi.Avalonia.Demo.Desktop/Semi.Avalonia.Demo.Desktop.csproj b/demo/Semi.Avalonia.Demo.Desktop/Semi.Avalonia.Demo.Desktop.csproj index 4e0ff0e..14f9ffa 100644 --- a/demo/Semi.Avalonia.Demo.Desktop/Semi.Avalonia.Demo.Desktop.csproj +++ b/demo/Semi.Avalonia.Demo.Desktop/Semi.Avalonia.Demo.Desktop.csproj @@ -1,7 +1,7 @@  WinExe - net7.0 + net8.0 enable true diff --git a/src/Semi.Avalonia/Themes/Shared/Button.axaml b/src/Semi.Avalonia/Themes/Shared/Button.axaml index 5eeb288..9e11543 100644 --- a/src/Semi.Avalonia/Themes/Shared/Button.axaml +++ b/src/Semi.Avalonia/Themes/Shared/Button.axaml @@ -1,11 +1,11 @@ 14 - Normal + 600 12 6 16 10 6 2 - + 32 24 40 @@ -13,6 +13,6 @@ 1 3 - + M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17.0352 16.8626C16.4597 17.4585 15.5101 17.4751 14.9142 16.8996L12.0368 14.121L9.25822 16.9984C8.68274 17.5943 7.73314 17.6109 7.13722 17.0354C6.5413 16.4599 6.52472 15.5103 7.1002 14.9144L9.87883 12.037L7.00147 9.2584C6.40555 8.68293 6.38897 7.73332 6.96445 7.1374C7.53992 6.54148 8.48953 6.52491 9.08545 7.10038L11.9628 9.87901L14.7414 7.00165C15.3169 6.40573 16.2665 6.38916 16.8624 6.96463C17.4584 7.54011 17.4749 8.48971 16.8995 9.08563L14.1208 11.963L16.9982 14.7416C17.5941 15.3171 17.6107 16.2667 17.0352 16.8626Z \ No newline at end of file diff --git a/src/Semi.Avalonia/Themes/Shared/ToggleButton.axaml b/src/Semi.Avalonia/Themes/Shared/ToggleButton.axaml index d710794..cfa03fe 100644 --- a/src/Semi.Avalonia/Themes/Shared/ToggleButton.axaml +++ b/src/Semi.Avalonia/Themes/Shared/ToggleButton.axaml @@ -1,7 +1,7 @@ 14 - Normal - + 600 + 1 3 \ No newline at end of file