improve:计时器UI
This commit is contained in:
@@ -412,7 +412,7 @@
|
||||
Click="CommonTab_Click"
|
||||
Cursor="Hand"
|
||||
HorizontalAlignment="Left">
|
||||
<TextBlock Text="常用" FontSize="16" FontWeight="Bold"
|
||||
<TextBlock x:Name="CommonTabText" Text="常用" FontSize="16" FontWeight="Bold"
|
||||
Foreground="{DynamicResource SeewoTimerWindowButtonForeground}"/>
|
||||
</Button>
|
||||
<Button x:Name="RecentTabBtn"
|
||||
@@ -422,7 +422,7 @@
|
||||
Click="RecentTab_Click"
|
||||
Cursor="Hand"
|
||||
HorizontalAlignment="Right">
|
||||
<TextBlock Text="最近" FontSize="16" FontWeight="Bold"
|
||||
<TextBlock x:Name="RecentTabText" Text="最近" FontSize="16" FontWeight="Normal"
|
||||
Foreground="{DynamicResource SeewoTimerWindowButtonForeground}"/>
|
||||
</Button>
|
||||
</Grid>
|
||||
|
||||
@@ -566,6 +566,12 @@ namespace Ink_Canvas
|
||||
CommonTimersGrid.Visibility = Visibility.Visible;
|
||||
RecentTimersGrid.Visibility = Visibility.Collapsed;
|
||||
|
||||
// 更新字体粗细
|
||||
var commonText = this.FindName("CommonTabText") as TextBlock;
|
||||
var recentText = this.FindName("RecentTabText") as TextBlock;
|
||||
if (commonText != null) commonText.FontWeight = FontWeights.Bold;
|
||||
if (recentText != null) recentText.FontWeight = FontWeights.Normal;
|
||||
|
||||
// 移动指示器到左侧
|
||||
var indicator = this.FindName("SegmentedIndicator") as Border;
|
||||
if (indicator != null)
|
||||
@@ -582,6 +588,12 @@ namespace Ink_Canvas
|
||||
CommonTimersGrid.Visibility = Visibility.Collapsed;
|
||||
RecentTimersGrid.Visibility = Visibility.Visible;
|
||||
|
||||
// 更新字体粗细
|
||||
var commonText = this.FindName("CommonTabText") as TextBlock;
|
||||
var recentText = this.FindName("RecentTabText") as TextBlock;
|
||||
if (commonText != null) commonText.FontWeight = FontWeights.Normal;
|
||||
if (recentText != null) recentText.FontWeight = FontWeights.Bold;
|
||||
|
||||
// 移动指示器到右侧
|
||||
var indicator = this.FindName("SegmentedIndicator") as Border;
|
||||
if (indicator != null)
|
||||
|
||||
Reference in New Issue
Block a user