跳到主要内容

github/tai

公开

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

提交记录
修改UI/Controls/Button/IconButton.cs+3 −3看文件
@@ -12,14 +12,14 @@ namespace UI.Controls.Button
1212{
1313 public class IconButton : Control
1414 {
15删除: public Command Command
15新增: public ICommand Command
1616 {
17删除: get { return (Command)GetValue(CommandProperty); }
17新增: get { return (ICommand)GetValue(CommandProperty); }
1818 set { SetValue(CommandProperty, value); }
1919 }
2020 public static readonly DependencyProperty CommandProperty =
2121 DependencyProperty.Register("Command",
22删除: typeof(Command),
22新增: typeof(ICommand),
2323 typeof(IconButton));
2424 public IconTypes Icon
2525 {
修改UI/Themes/Button/IconButton.xaml+3 −1看文件
@@ -8,6 +8,8 @@
88 Value="true" />
99 <Setter Property="Width" Value="35"/>
1010 <Setter Property="Height" Value="35"/>
11新增: <Setter Property="FontSize" Value="16"/>
12新增:
1113 <Setter Property="Background" Value="Transparent"/>
1214 <Setter Property="Template">
1315 <Setter.Value>
@@ -15,7 +17,7 @@
1517 <Border Background="{TemplateBinding Background}" x:Name="Border">
1618
1719 <Border Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" x:Name="BoxBorder" CornerRadius="4" Padding="5" Background="Transparent">
18删除: <base:Icon x:Name="Icon" IconType="{TemplateBinding Icon}" Foreground="#5c5c5c" VerticalAlignment="Center" FontSize="16" >
20新增: <base:Icon x:Name="Icon" IconType="{TemplateBinding Icon}" Foreground="#5c5c5c" VerticalAlignment="Center" FontSize="{TemplateBinding FontSize}" >
1921
2022 </base:Icon>
2123 </Border>