Skip to content

Commit

Permalink
fix: 修改倒计时数字与汉字之间的 margin
Browse files Browse the repository at this point in the history
  • Loading branch information
clover-yan authored Sep 23, 2024
1 parent 76c6085 commit 7a74d5e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion ClassIsland/Controls/Components/CountDownComponent.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@
FontSize="{Binding Settings.FontSize}"
VerticalAlignment="Center"
FontWeight="Medium"
Margin="2 0 0 0"/>
Margin="2 0 2 0"/>
<TextBlock Text=""
Foreground="{Binding Settings.FontColor,Converter={StaticResource ColorToColorPickerBrushConverter}}"
FontSize="{Binding Settings.FontSize}"
VerticalAlignment="Center"
FontWeight="Medium"/>
</StackPanel>
</Grid>
</controls:ComponentBase>
2 changes: 1 addition & 1 deletion ClassIsland/Controls/Components/CountDownComponent.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public CountDownComponent(ILessonsService lessonsService, IExactTimeService exac

private void LessonsServiceOnPostMainTimerTicked(object? sender, EventArgs e)
{
DaysLeft = $"{Math.Max((Settings.OverTime.Date - ExactTimerService.GetCurrentLocalDateTime().Date).Days, 0)}";
DaysLeft = $"{Math.Max((Settings.OverTime.Date - ExactTimerService.GetCurrentLocalDateTime().Date).Days, 0)}";
}

public event PropertyChangedEventHandler? PropertyChanged;
Expand Down

0 comments on commit 7a74d5e

Please sign in to comment.