Skip to content

Commit

Permalink
修复主界面获取系统颜色模式始终返回 light 的问题,修复课程表编辑器部分内容深色主题显示不正常的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
STBBRD committed May 3, 2024
1 parent c5235f8 commit 77a0b87
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions ZongziTEK_Blackboard_Sticker/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2011,6 +2011,7 @@ private bool IsSystemThemeLight()
keyValue = (int)themeKey.GetValue("SystemUsesLightTheme");
}
if (keyValue == 1) light = true;
else light = false;
}
catch { }
return light;
Expand Down
10 changes: 6 additions & 4 deletions ZongziTEK_Blackboard_Sticker/TimetableEditor.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,11 @@
</Button>
</Grid>
</Border>
<ui:SimpleStackPanel Grid.Row="3" Margin="14,0" VerticalAlignment="Center" Orientation="Horizontal" Opacity="0.6">
<TextBlock Name="TextBlockLessonCount" Foreground="{DynamicResource ForegroundColor}" FontSize="12"/>
<TextBlock Foreground="{DynamicResource ForegroundColor}" Text=" 节课" FontSize="12"/>
</ui:SimpleStackPanel>
<Label Grid.Row="3" Margin="14,0" VerticalAlignment="Center" Opacity="0.6">
<ui:SimpleStackPanel Orientation="Horizontal">
<TextBlock Name="TextBlockLessonCount" FontSize="12"/>
<TextBlock Text=" 节课" FontSize="12"/>
</ui:SimpleStackPanel>
</Label>
</Grid>
</Window>

0 comments on commit 77a0b87

Please sign in to comment.