Skip to content

Commit 412a489

Browse files
committed
ux: built-in Dark theme
Signed-off-by: leo <longshuang@msn.cn>
1 parent 0f70e56 commit 412a489

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎src/Resources/Themes.axaml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<Color x:Key="Color.Link">#0000EE</Color>
3232
<Color x:Key="Color.InlineCode">#FFE4E4E4</Color>
3333
<Color x:Key="Color.InlineCodeFG">Black</Color>
34-
<Color x:Key="Color.DataGridHeaderBG">#FFF0F5F9</Color>
34+
<Color x:Key="Color.HistoryBG">#FFF0F5F9</Color>
3535
</ResourceDictionary>
3636

3737
<ResourceDictionary x:Key="Dark">
@@ -64,7 +64,7 @@
6464
<Color x:Key="Color.Link">#4DAAFC</Color>
6565
<Color x:Key="Color.InlineCode">#FF383838</Color>
6666
<Color x:Key="Color.InlineCodeFG">#FFF0F0F0</Color>
67-
<Color x:Key="Color.DataGridHeaderBG">#FF2B2B2B</Color>
67+
<Color x:Key="Color.HistoryBG">#FF272727</Color>
6868
</ResourceDictionary>
6969
</ResourceDictionary.ThemeDictionaries>
7070

@@ -99,7 +99,7 @@
9999
<SolidColorBrush x:Key="Brush.Link" Color="{DynamicResource Color.Link}"/>
100100
<SolidColorBrush x:Key="Brush.InlineCode" Color="{DynamicResource Color.InlineCode}"/>
101101
<SolidColorBrush x:Key="Brush.InlineCodeFG" Color="{DynamicResource Color.InlineCodeFG}"/>
102-
<SolidColorBrush x:Key="Brush.DataGridHeaderBG" Color="{DynamicResource Color.DataGridHeaderBG}"/>
102+
<SolidColorBrush x:Key="Brush.HistoryBG" Color="{DynamicResource Color.HistoryBG}"/>
103103

104104
<FontFamily x:Key="Fonts.Default">fonts:Inter#Inter</FontFamily>
105105
<FontFamily x:Key="Fonts.Monospace">fonts:SourceGit#JetBrains Mono NL</FontFamily>

‎src/Views/Histories.axaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<v:HistoriesCommitList x:Name="CommitListContainer"
2828
Classes="static_scrollbar"
2929
ScrollViewer.AllowAutoHide="False"
30-
Background="{DynamicResource Brush.DataGridHeaderBG}"
30+
Background="Transparent"
3131
ItemsSource="{Binding Commits, Mode=OneWay}"
3232
TotalCommits="{Binding Commits.Count, Mode=OneWay}"
3333
SelectedCommits="{Binding SelectedCommits, Mode=TwoWay}"
@@ -256,7 +256,7 @@
256256
<GridSplitter Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3"
257257
MinWidth="1" MinHeight="1"
258258
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
259-
Background="{DynamicResource Brush.Window}"
259+
Background="Transparent"
260260
BorderBrush="{DynamicResource Brush.Border0}"
261261
Focusable="False"
262262
IsEnabled="{Binding #ThisControl.IsDetailsPanelExpanded, Mode=OneWay}"/>

‎src/Views/Repository.axaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@
907907
</Border>
908908

909909
<Grid Grid.Row="3">
910-
<Border IsVisible="{Binding IsHistoriesVisible, Mode=OneWay}" PropertyChanged="OnRightPagePropertyChanged">
910+
<Border Background="{DynamicResource Brush.HistoryBG}" IsVisible="{Binding IsHistoriesVisible, Mode=OneWay}" PropertyChanged="OnRightPagePropertyChanged">
911911
<v:Histories DataContext="{Binding Histories, Mode=OneWay}"
912912
CurrentBranch="{Binding CurrentBranch, Mode=OneWay}"
913913
Bisect="{Binding Bisect, Mode=OneWay}"

0 commit comments

Comments
 (0)