Skip to content

Commit 7c8b04e

Browse files
committed
ux: foreground color for dark theme (#156)
1 parent 7f29d31 commit 7c8b04e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/Resources/Styles.axaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,12 @@
9797
<Setter Property="FontWeight" Value="Bold"/>
9898
<Setter Property="HorizontalAlignment" Value="Right"/>
9999
</Style>
100-
100+
101+
<Style Selector="SelectableTextBlock">
102+
<Setter Property="HorizontalAlignment" Value="Left"/>
103+
<Setter Property="VerticalAlignment" Value="Center"/>
104+
<Setter Property="Foreground" Value="{DynamicResource Brush.FG1}"/>
105+
</Style>
101106
<Style Selector="SelectableTextBlock[IsEnabled=True]">
102107
<Setter Property="ContextFlyout">
103108
<Setter.Value>
@@ -123,6 +128,7 @@
123128
<Setter Property="BorderThickness" Value="1"/>
124129
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Border1}"/>
125130
<Setter Property="Background" Value="{DynamicResource Brush.Contents}"/>
131+
<Setter Property="Foreground" Value="{DynamicResource Brush.FG1}"/>
126132
<Setter Property="ContextFlyout">
127133
<Setter.Value>
128134
<MenuFlyout>

src/Resources/Themes.axaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<Color x:Key="Color.FlatButton.BackgroundHovered">#FF333333</Color>
4949
<Color x:Key="Color.FlatButton.PrimaryBackground">#FF3A3A3A</Color>
5050
<Color x:Key="Color.FlatButton.PrimaryBackgroundHovered">#FF404040</Color>
51-
<Color x:Key="Color.FG1">#FFF1F1F1</Color>
51+
<Color x:Key="Color.FG1">#FFDDDDDD</Color>
5252
<Color x:Key="Color.FG2">#40F1F1F1</Color>
5353
<Color x:Key="Color.FG3">#FF252525</Color>
5454
</ResourceDictionary>

0 commit comments

Comments
 (0)