perf: colorful sleep

This commit is contained in:
uye
2026-03-28 00:52:47 +08:00
parent ea6897a5c7
commit 2ba21efd84
3 changed files with 8 additions and 0 deletions

View File

@@ -138,4 +138,7 @@
<SolidColorBrush x:Key="BoskyPlaytimeIS" Color="#baabb0" />
<SolidColorBrush x:Key="BoskyDoubtsIS" Color="#b5b09a" />
<!-- DeepSleep -->
<SolidColorBrush x:Key="DeepSleepBrush" Color="#5686FE" />
</ResourceDictionary>

View File

@@ -120,4 +120,7 @@
<SolidColorBrush x:Key="BoskyPlaytimeIS" Color="#998a8f" />
<SolidColorBrush x:Key="BoskyDoubtsIS" Color="#948f79" />
<!-- DeepSleep -->
<SolidColorBrush x:Key="DeepSleepBrush" Color="#3964FE" />
</ResourceDictionary>

View File

@@ -421,9 +421,11 @@
<Button.Style>
<Style BasedOn="{StaticResource MaaButtonDefaultStyle}" TargetType="Button">
<Setter Property="hc:IconElement.Geometry" Value="{x:Null}" />
<Setter Property="Foreground" Value="{DynamicResource PrimaryTextBrush}" />
<Style.Triggers>
<DataTrigger Binding="{Binding ShowDeepSleepIcon}" Value="True">
<Setter Property="hc:IconElement.Geometry" Value="{StaticResource DeepSleep}" />
<Setter Property="Foreground" Value="{DynamicResource DeepSleepBrush}" />
</DataTrigger>
</Style.Triggers>
</Style>