跳到主要内容

github/tai

公开

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

提交记录
修改UI/Controls/Button/IconButton.cs+1 −1看文件
@@ -10,7 +10,7 @@ using UI.Controls.Base;
1010
1111namespace UI.Controls.Button
1212{
13删除: public class IconButton : Control
13新增: public class IconButton : ContentControl
1414 {
1515 public ICommand Command
1616 {
修改UI/Resources/Themes/Dark.xaml+6 −0看文件
@@ -103,4 +103,10 @@
103103 <SolidColorBrush x:Key="InputBoxHoverBrush" Color="{StaticResource InputBoxHoverColor}" />
104104 <Color x:Key="InputBoxFocusedBgColor">#4F4E4E</Color>
105105 <SolidColorBrush x:Key="InputBoxFocusedBgBrush" Color="{StaticResource InputBoxFocusedBgColor}" />
106新增:
107新增: <!--expander-->
108新增: <Color x:Key="ExpanderBgColor">#4F4F4F</Color>
109新增: <SolidColorBrush x:Key="ExpanderBgBrush" Color="{StaticResource ExpanderBgColor}" />
110新增: <Color x:Key="ExpanderContentBgColor">#7e7e7e</Color>
111新增: <SolidColorBrush x:Key="ExpanderContentBgBrush" Color="{StaticResource ExpanderContentBgColor}" />
106112</ResourceDictionary>
文件末尾没有换行
修改UI/Resources/Themes/Light.xaml+7 −0看文件
@@ -102,4 +102,11 @@
102102 <SolidColorBrush x:Key="InputBoxHoverBrush" Color="{StaticResource InputBoxHoverColor}" />
103103 <Color x:Key="InputBoxFocusedBgColor">#FFFFFF</Color>
104104 <SolidColorBrush x:Key="InputBoxFocusedBgBrush" Color="{StaticResource InputBoxFocusedBgColor}" />
105新增:
106新增: <!--expander-->
107新增: <Color x:Key="ExpanderBgColor">#ffffff</Color>
108新增: <SolidColorBrush x:Key="ExpanderBgBrush" Color="{StaticResource ExpanderBgColor}" />
109新增: <Color x:Key="ExpanderContentBgColor">#f7f7f7</Color>
110新增: <SolidColorBrush x:Key="ExpanderContentBgBrush" Color="{StaticResource ExpanderContentBgColor}" />
111新增:
105112</ResourceDictionary>
文件末尾没有换行
修改UI/Themes/Button/IconButton.xaml+7 −2看文件
@@ -17,9 +17,14 @@
1717 <!--<Border Background="{TemplateBinding Background}" x:Name="Border">-->
1818
1919 <Border Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" x:Name="BoxBorder" CornerRadius="4" Padding="5" Background="Transparent">
20删除: <base:Icon x:Name="Icon" IconType="{TemplateBinding Icon}" Foreground="{DynamicResource StandardTextBrush}" VerticalAlignment="Center" FontSize="{TemplateBinding FontSize}" >
20新增: <Grid>
21新增:
22新增: <base:Icon x:Name="Icon" IconType="{TemplateBinding Icon}" Foreground="{DynamicResource StandardTextBrush}" VerticalAlignment="Center" FontSize="{TemplateBinding FontSize}" >
2123
22删除: </base:Icon>
24新增: </base:Icon>
25新增: <ContentPresenter />
26新增: </Grid>
27新增:
2328 <VisualStateManager.VisualStateGroups>
2429 <VisualStateGroup x:Name="CommonStates">
2530 <VisualStateGroup.Transitions>
修改UI/Themes/Generic.xaml+1 −0看文件
@@ -40,6 +40,7 @@
4040 <ResourceDictionary Source="/Tai;component/Themes/Select/Option.xaml"/>
4141 <ResourceDictionary Source="/Tai;component/Themes/Select/ImageSelect.xaml"/>
4242 <ResourceDictionary Source="/Tai;component/Themes/Select/DateSelect.xaml"/>
43新增: <ResourceDictionary Source="/Tai;component/Themes/Expander/Expander.xaml"/>
4344
4445 </ResourceDictionary.MergedDictionaries>
4546
修改UI/Themes/SettingPanel/SettingPanelMultiItem.xaml+42 −14看文件
@@ -2,20 +2,30 @@
22 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
33 xmlns:local="clr-namespace:UI.Controls.SettingPanel"
44 xmlns:base="clr-namespace:UI.Controls.Base"
5删除: xmlns:btn="clr-namespace:UI.Controls.Button">
5新增: xmlns:btn="clr-namespace:UI.Controls.Button"
6新增: xmlns:exp="clr-namespace:UI.Controls.Expander">
67 <Style TargetType="{x:Type local:SettingPanelMultiItem}">
78 <Setter Property="SnapsToDevicePixels"
89 Value="true" />
910 <Setter Property="Margin" Value="0,0,0,20"/>
10删除:
11删除: <Setter Property="Background" Value="{DynamicResource StandardBackgroundBrush}"/>
1211 <Setter Property="Template">
1312 <Setter.Value>
1413 <ControlTemplate TargetType="{x:Type local:SettingPanelMultiItem}">
15删除: <Border Background="{TemplateBinding Background}" x:Name="Border" CornerRadius="6" >
14新增: <Border Background="Transparent" x:Name="Border" CornerRadius="6" >
15新增: <exp:Expander Header="{TemplateBinding Title}" IsExpanded="True">
16新增: <Grid>
17新增: <Grid.RowDefinitions>
18新增: <RowDefinition Height="auto"/>
19新增: <RowDefinition Height="auto"/>
20新增: </Grid.RowDefinitions>
21新增: <StackPanel x:Name="Container">
22新增: </StackPanel>
1623
17删除: <Grid>
18删除: <Grid.RowDefinitions>
24新增: <btn:Button Margin="0,10" Grid.Row="1" Content="删除此项" Icon="Delete" Width="80" Background="#f51837" Foreground="White" Command="{TemplateBinding OnRemoveAction}"/>
25新增: </Grid>
26新增:
27新增: </exp:Expander>
28新增: <!--<Grid.RowDefinitions>
1929 <RowDefinition Height="auto"/>
2030 <RowDefinition Height="*"/>
2131
@@ -27,24 +37,42 @@
2737 <btn:IconButton ToolTip="收起" x:Name="FoldBtn" FontSize="14" Command="{TemplateBinding OnFoldAction}" Icon="ChevronUp" Margin="0"></btn:IconButton>
2838 <btn:IconButton Icon="Delete" FontSize="14" Command="{TemplateBinding OnRemoveAction}" ToolTip="移除此项"></btn:IconButton>
2939 </StackPanel>
30删除:
40新增:
3141 </Grid>
3242 <StackPanel x:Name="Container" Grid.Row="1">
33删除:
34删除: </StackPanel>
35删除:
36删除: </Grid>
37删除:
43新增: <StackPanel.RenderTransform>
44新增: <ScaleTransform ScaleX="1" ScaleY="0"/>
45新增: </StackPanel.RenderTransform>
46新增: </StackPanel>-->
3847 </Border>
3948 <ControlTemplate.Triggers>
40删除: <Trigger Property="Fold"
49新增: <DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=Fold}" Value="True">
50新增: <!--<DataTrigger.EnterActions>
51新增: <BeginStoryboard>
52新增: <Storyboard>
53新增: <DoubleAnimation Storyboard.TargetProperty="(Border.Height)"
54新增: Storyboard.TargetName="Border" Duration="00:00:0.2" To="100"/>
55新增: </Storyboard>
56新增: </BeginStoryboard>
57新增: </DataTrigger.EnterActions>-->
58新增: <!--<DataTrigger.ExitActions>
59新增: <BeginStoryboard>
60新增: <Storyboard>
61新增: <DoubleAnimation Storyboard.TargetProperty="(ContentPresenter.RenderTransform).
62新增: (ScaleTransform.ScaleY)"
63新增: Storyboard.TargetName="Container" Duration="00:00:0.2" To="0"/>
64新增: </Storyboard>
65新增: </BeginStoryboard>
66新增: </DataTrigger.ExitActions>-->
67新增: </DataTrigger>
68新增: <!--<Trigger Property="Fold"
4169 Value="True">
4270 <Setter TargetName="Container" Property="Visibility" Value="Collapsed"/>
4371 </Trigger>
4472 <Trigger Property="Fold"
4573 Value="False">
4674 <Setter TargetName="Container" Property="Visibility" Value="Visible"/>
47删除: </Trigger>
75新增: </Trigger>-->
4876 </ControlTemplate.Triggers>
4977 </ControlTemplate>
5078 </Setter.Value>
修改UI/UI.csproj+5 −0看文件
@@ -157,6 +157,7 @@
157157 <Compile Include="Controls\Converters\HextoColorConverter.cs" />
158158 <Compile Include="Controls\DatePickerBar\DatePickerBarItem.cs" />
159159 <Compile Include="Controls\DatePickerBar\DatePickerShowType.cs" />
160新增: <Compile Include="Controls\Expander\Expander.cs" />
160161 <Compile Include="Controls\Input\InputBox.cs" />
161162 <Compile Include="Controls\List\BaseList.cs" />
162163 <Compile Include="Controls\List\BaseListItem.cs" />
@@ -251,6 +252,10 @@
251252 <SubType>Designer</SubType>
252253 <Generator>MSBuild:Compile</Generator>
253254 </Page>
255新增: <Page Include="Themes\Expander\Expander.xaml">
256新增: <SubType>Designer</SubType>
257新增: <Generator>MSBuild:Compile</Generator>
258新增: </Page>
254259 <Page Include="Resources\Themes\Light.xaml">
255260 <Generator>MSBuild:Compile</Generator>
256261 <SubType>Designer</SubType>