Skip to content

Commit f5890e2

Browse files
committed
ensure clock is readable on dark theme
1 parent 184a946 commit f5890e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.Clock.xaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0 6 38 0">
127127
<StackPanel.Resources>
128128
<Style x:Key="TimeTextBlock" TargetType="{x:Type TextBlock}">
129-
<Setter Property="Foreground" Value="{DynamicResource MaterialDesignPaper}" />
129+
<Setter Property="Foreground" Value="{DynamicResource PrimaryHueMidForegroundBrush}" />
130130
<Setter Property="FontSize" Value="66" />
131131
<Setter Property="FontWeight" Value="Normal" />
132132
</Style>
@@ -159,8 +159,8 @@
159159
</TextBlock.Style>
160160
</TextBlock>
161161
<TextBlock FontSize="16"
162-
Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Time, Mode=OneWay, StringFormat={}{0:tt}}"
163-
VerticalAlignment="Bottom" Margin="2 0 0 16" Foreground="{DynamicResource MaterialDesignPaper}" />
162+
Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Time, Mode=OneWay, StringFormat={}{0:tt}}"
163+
VerticalAlignment="Bottom" Margin="2 0 0 16" Foreground="{DynamicResource PrimaryHueMidForegroundBrush}" />
164164
</StackPanel>
165165
</Border>
166166
<Ellipse Grid.Row="1" Margin="0,24.5,0,94" Width="230" Height="230" Fill="{DynamicResource PrimaryHueLightBrush}" Opacity=".23" />

0 commit comments

Comments
 (0)