跳到主要内容

github/tai

公开

Tai · Windows 软件与网站使用时长统计。上游 Planshit/Tai 的源码镜像,非灵栈原创;MIT 许可。来源:https://github.com/Planshit/Tai 。本次为手动同步,暂不提供安装包。

提交记录
修改UI/Themes/List/BaseListItem.xaml+8 −6看文件
@@ -16,12 +16,9 @@
1616 <Setter Property="Template">
1717 <Setter.Value>
1818 <ControlTemplate TargetType="{x:Type local:BaseListItem}">
19删除: <Border Background="{TemplateBinding Background}" x:Name="Border">
19新增: <Grid Background="{TemplateBinding Background}" SnapsToDevicePixels="True">
2020
2121 <Border BorderBrush="#f3f3f3" BorderThickness="1" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" x:Name="BoxBorder" CornerRadius="4" Background="White" >
22删除: <Border.Effect>
23删除: <DropShadowEffect BlurRadius="5" ShadowDepth="2" Direction="315" Color="#ccc" Opacity=".05"/>
24删除: </Border.Effect>
2522 <Grid VerticalAlignment="Center" Margin="10,0">
2623 <Grid.ColumnDefinitions>
2724 <ColumnDefinition Width="9*"/>
@@ -31,6 +28,11 @@
3128 </Grid>
3229
3330 </Border>
31新增: <Border x:Name="Shadow" BorderBrush="{Binding ElementName=BoxBorder,Path=BorderBrush}" BorderThickness="{Binding ElementName=BoxBorder,Path=BorderThickness}" Panel.ZIndex="-1" Width="{Binding ElementName=BoxBorder,Path=ActualWidth}" Height="{Binding ElementName=BoxBorder,Path=ActualHeight}" CornerRadius="{Binding ElementName=BoxBorder,Path=CornerRadius}" Background="{Binding ElementName=BoxBorder,Path=Background}">
32新增: <Border.Effect>
33新增: <DropShadowEffect BlurRadius="5" ShadowDepth="2" Direction="315" Color="#ccc" Opacity=".05"/>
34新增: </Border.Effect>
35新增: </Border>
3436
3537 <VisualStateManager.VisualStateGroups>
3638 <VisualStateGroup x:Name="CommonStates">
@@ -43,7 +45,7 @@
4345 <VisualState x:Name="MouseOver">
4446 <Storyboard>
4547 <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Effect).(DropShadowEffect.Color)"
46删除: Storyboard.TargetName="BoxBorder">
48新增: Storyboard.TargetName="Shadow">
4749 <EasingColorKeyFrame KeyTime="0"
4850 Value="#2b20d9"/>
4951 </ColorAnimationUsingKeyFrames>
@@ -65,7 +67,7 @@
6567 </VisualStateGroup>
6668 </VisualStateManager.VisualStateGroups>
6769
68删除: </Border>
70新增: </Grid>
6971 <ControlTemplate.Triggers>
7072 <Trigger Property="IsSelected" Value="True">
7173 <Setter TargetName="BoxBorder" Property="Background" Value="#2b20d9"/>