提交记录修改UI/Controls/Navigation/Navigation.cs+5 −0看文件
修改UI/Controls/PageContainer.cs+1 −1看文件
修改UI/Controls/Window/DefaultWindow.cs+2 −1看文件
修改UI/Resources/Themes/Dark.xaml+9 −1看文件
修改UI/Resources/Themes/Light.xaml+17 −9看文件
修改UI/Themes/Base/Icon.xaml+1 −1看文件
修改UI/Themes/Charts/ChartsItemTypeList.xaml+1 −1看文件
修改UI/Themes/Navigation/Navigation.xaml+1 −0看文件
修改UI/Themes/Navigation/NavigationItem.xaml+1 −0看文件
修改UI/Themes/PageContainer.xaml+3 −2看文件
修改UI/Themes/Select/Select.xaml+1 −1看文件
修改UI/Themes/Tabbar/Tabbar.xaml+1 −0看文件
修改UI/Themes/Toggle/Toggle.xaml+1 −1看文件
修改UI/Themes/Window/DefaultWindow.xaml+4 −5看文件
| @@ -334,6 +334,11 @@ namespace UI.Controls.Navigation | ||
| 334 | 334 | { |
| 335 | 335 | var navItem = new NavigationItem(); |
| 336 | 336 | int id = item.ID < -1 ? CreateID() : item.ID; |
| 337 | 新增: if (ItemsDictionary.ContainsKey(id)) | |
| 338 | 新增: { | |
| 339 | 新增: return; | |
| 340 | 新增: } | |
| 341 | 新增: | |
| 337 | 342 | item.ID = id; |
| 338 | 343 | navItem.ID = id; |
| 339 | 344 | navItem.Title = item.Title; |
| @@ -266,7 +266,7 @@ namespace UI.Controls | ||
| 266 | 266 | } |
| 267 | 267 | else |
| 268 | 268 | { |
| 269 | 删除: ScrollViewer.ScrollToVerticalOffset(0); | |
| 269 | 新增: ScrollViewer?.ScrollToVerticalOffset(0); | |
| 270 | 270 | } |
| 271 | 271 | |
| 272 | 272 | OnLoadPaged?.Invoke(this, EventArgs.Empty); |
| @@ -82,7 +82,8 @@ namespace UI.Controls.Window | ||
| 82 | 82 | |
| 83 | 83 | that.PageContainer.OnLoadPaged += (s, v) => |
| 84 | 84 | { |
| 85 | 删除: that.IsCanBack = that.PageContainer.Index >= 1; | |
| 85 | 新增: var pc = s as PageContainer; | |
| 86 | 新增: that.IsCanBack = pc?.Index >= 1; | |
| 86 | 87 | }; |
| 87 | 88 | } |
| 88 | 89 | } |
| @@ -20,14 +20,22 @@ | ||
| 20 | 20 | <SolidColorBrush x:Key="StandardBackgroundBrush2" Color="#3e3e3e" /> |
| 21 | 21 | |
| 22 | 22 | <!--【窗口】--> |
| 23 | 新增: <!--窗口边框颜色--> | |
| 24 | 新增: <SolidColorBrush x:Key="WindowBorderBrush" Color="#323232" /> | |
| 25 | 新增: | |
| 23 | 26 | <SolidColorBrush x:Key="StandardTextBrush" Color="#ffffff" /> |
| 24 | 27 | <SolidColorBrush x:Key="SubTextBrush" Color="#ccc" /> |
| 25 | 28 | |
| 26 | 29 | <!--窗口背景颜色--> |
| 27 | 删除: <LinearGradientBrush x:Key="WindowBackground" > | |
| 30 | 新增: <!--<LinearGradientBrush x:Key="WindowBackground" > | |
| 28 | 31 | <GradientStop Color="#161616" Offset="0"/> |
| 29 | 32 | <GradientStop Color="#161616" Offset="0.8"/> |
| 30 | 33 | <GradientStop Color="#FF14104A" Offset="1"/> |
| 34 | 新增: </LinearGradientBrush>--> | |
| 35 | 新增: <LinearGradientBrush x:Key="WindowBackground" > | |
| 36 | 新增: <GradientStop Color="#161616" Offset="0"/> | |
| 37 | 新增: <GradientStop Color="#161616" Offset="0.8"/> | |
| 38 | 新增: <GradientStop Color="{DynamicResource ThemeColor}" Offset="1.2"/> | |
| 31 | 39 | </LinearGradientBrush> |
| 32 | 40 | <SolidColorBrush x:Key="WindowContentBackground" Color="#FF383636" Opacity=".5"/> |
| 33 | 41 | <SolidColorBrush x:Key="WindowContentBorder" Color="#FF121010"/> |
| @@ -20,12 +20,20 @@ | ||
| 20 | 20 | <SolidColorBrush x:Key="StandardBackgroundBrush2" Color="#ffffff" /> |
| 21 | 21 | |
| 22 | 22 | <!--【窗口】--> |
| 23 | 新增: | |
| 24 | 新增: <!--窗口边框颜色--> | |
| 25 | 新增: <SolidColorBrush x:Key="WindowBorderBrush" Color="#ccc" /> | |
| 26 | 新增: | |
| 23 | 27 | <SolidColorBrush x:Key="StandardTextBrush" Color="#000" /> |
| 24 | 28 | <SolidColorBrush x:Key="SubTextBrush" Color="#7e7e7e" /> |
| 25 | 29 | |
| 26 | 30 | <!--窗口背景颜色--> |
| 27 | 删除: <SolidColorBrush x:Key="WindowBackground" Color="#f3f3f3" /> | |
| 28 | 删除: | |
| 31 | 新增: <!--<SolidColorBrush x:Key="WindowBackground" Color="#f3f3f3" />--> | |
| 32 | 新增: <LinearGradientBrush x:Key="WindowBackground" > | |
| 33 | 新增: <GradientStop Color="#f3f3f3" Offset="0"/> | |
| 34 | 新增: <GradientStop Color="#f3f3f3" Offset="0.8"/> | |
| 35 | 新增: <GradientStop Color="{DynamicResource ThemeColor}" Offset="2"/> | |
| 36 | 新增: </LinearGradientBrush> | |
| 29 | 37 | |
| 30 | 38 | <SolidColorBrush x:Key="WindowContentBackground" Color="#f9f9f9" /> |
| 31 | 39 | <SolidColorBrush x:Key="WindowContentBorder" Color="#ccc"/> |
| @@ -37,7 +45,7 @@ | ||
| 37 | 45 | |
| 38 | 46 | <Color x:Key="NavUnselectedTextColor">#5c5c5c</Color> |
| 39 | 47 | <SolidColorBrush x:Key="NavUnselectedTextBrush" Color="{StaticResource NavUnselectedTextColor}" /> |
| 40 | 删除: | |
| 48 | 新增: | |
| 41 | 49 | <!--设置面板--> |
| 42 | 50 | <Color x:Key="SettingPanelBgColor">#ffffff</Color> |
| 43 | 51 | <SolidColorBrush x:Key="SettingPanelBgBrush" Color="{StaticResource SettingPanelBgColor}" /> |
| @@ -53,7 +61,7 @@ | ||
| 53 | 61 | <!--默认基础文字颜色--> |
| 54 | 62 | <Color x:Key="DefaultTextColor">#5c5c5c</Color> |
| 55 | 63 | <SolidColorBrush x:Key="DefaultTextBrush" Color="{StaticResource DefaultTextColor}" /> |
| 56 | 删除: | |
| 64 | 新增: | |
| 57 | 65 | <!--列表--> |
| 58 | 66 | <Color x:Key="ListItemIconBgColor">#f3f3f3</Color> |
| 59 | 67 | <SolidColorBrush x:Key="ListItemIconBgBrush" Color="{StaticResource ListItemIconBgColor}" /> |
| @@ -65,11 +73,11 @@ | ||
| 65 | 73 | <!--日期选择控件--> |
| 66 | 74 | <Color x:Key="DatePickerItemBgColor">#F9F9F9</Color> |
| 67 | 75 | <SolidColorBrush x:Key="DatePickerItemBgBrush" Color="{StaticResource DatePickerItemBgColor}" /> |
| 68 | 删除: | |
| 76 | 新增: | |
| 69 | 77 | <!--月热力图控件--> |
| 70 | 78 | <Color x:Key="ChartMonthGridItemBgColor">#fbfafa</Color> |
| 71 | 79 | <SolidColorBrush x:Key="ChartMonthGridItemBgBrush" Color="{StaticResource ChartMonthGridItemBgColor}" /> |
| 72 | 删除: | |
| 80 | 新增: | |
| 73 | 81 | <!--弹出层边框--> |
| 74 | 82 | <Color x:Key="PopupBorderColor">#eaeaea</Color> |
| 75 | 83 | <SolidColorBrush x:Key="PopupBorderBrush" Color="{StaticResource PopupBorderColor}" /> |
| @@ -91,7 +99,7 @@ | ||
| 91 | 99 | <!--图表边框--> |
| 92 | 100 | <Color x:Key="ChartColBorderColor">#eeeef2</Color> |
| 93 | 101 | <SolidColorBrush x:Key="ChartColBorderBrush" Color="{StaticResource ChartColBorderColor}" /> |
| 94 | 删除: | |
| 102 | 新增: | |
| 95 | 103 | <!--分类页面--> |
| 96 | 104 | <Color x:Key="CategoryAppNumBgColor">#F9F9F9</Color> |
| 97 | 105 | <SolidColorBrush x:Key="CategoryAppNumBgBrush" Color="{StaticResource CategoryAppNumBgColor}" /> |
| @@ -104,7 +112,7 @@ | ||
| 104 | 112 | <SolidColorBrush x:Key="InputBoxHoverBrush" Color="{StaticResource InputBoxHoverColor}" /> |
| 105 | 113 | <Color x:Key="InputBoxFocusedBgColor">#FFFFFF</Color> |
| 106 | 114 | <SolidColorBrush x:Key="InputBoxFocusedBgBrush" Color="{StaticResource InputBoxFocusedBgColor}" /> |
| 107 | 删除: | |
| 115 | 新增: | |
| 108 | 116 | <!--expander--> |
| 109 | 117 | <Color x:Key="ExpanderBgColor">#ffffff</Color> |
| 110 | 118 | <SolidColorBrush x:Key="ExpanderBgBrush" Color="{StaticResource ExpanderBgColor}" /> |
| @@ -124,7 +132,7 @@ | ||
| 124 | 132 | |
| 125 | 133 | <Color x:Key="ScrollBarColor">#8A8A8A</Color> |
| 126 | 134 | <SolidColorBrush x:Key="ScrollBarBrush" Color="{StaticResource ScrollBarColor}" /> |
| 127 | 删除: | |
| 135 | 新增: | |
| 128 | 136 | <!--列表图表--> |
| 129 | 137 | <Color x:Key="ChartTypeListProgressBarColor">#7F777777</Color> |
| 130 | 138 | <SolidColorBrush x:Key="ChartTypeListProgressBarBrush" Color="{StaticResource ChartTypeListProgressBarColor}" /> |
| @@ -4,7 +4,7 @@ | ||
| 4 | 4 | <Style TargetType="{x:Type local:Icon}"> |
| 5 | 5 | <Setter Property="SnapsToDevicePixels" |
| 6 | 6 | Value="true" /> |
| 7 | 删除: | |
| 7 | 新增: <Setter Property="FocusVisualStyle" Value="{x:Null}"/> | |
| 8 | 8 | <Setter Property="MinWidth" Value="18"/> |
| 9 | 9 | <Setter Property="MinHeight" Value="18"/> |
| 10 | 10 | <Setter Property="FontSize" Value="16"/> |
| @@ -7,7 +7,7 @@ | ||
| 7 | 7 | <Style TargetType="{x:Type local:ChartsItemTypeList}"> |
| 8 | 8 | <Setter Property="SnapsToDevicePixels" |
| 9 | 9 | Value="true" /> |
| 10 | 删除: | |
| 10 | 新增: <Setter Property="FocusVisualStyle" Value="{x:Null}"/> | |
| 11 | 11 | <Setter Property="Background" Value="Transparent"/> |
| 12 | 12 | <Setter Property="Margin" Value="0,5"/> |
| 13 | 13 | |
| @@ -8,6 +8,7 @@ | ||
| 8 | 8 | <Setter Property="MinWidth" Value="44"/> |
| 9 | 9 | <Setter Property="Height" Value="auto"/> |
| 10 | 10 | <Setter Property="Background" Value="Transparent"/> |
| 11 | 新增: <Setter Property="FocusVisualStyle" Value="{x:Null}"/> | |
| 11 | 12 | <Setter Property="Template"> |
| 12 | 13 | <Setter.Value> |
| 13 | 14 | <ControlTemplate TargetType="{x:Type local:Navigation}"> |
| @@ -9,6 +9,7 @@ | ||
| 9 | 9 | <!--<Setter Property="MinHeight" Value="44"/>--> |
| 10 | 10 | <Setter Property="Height" Value="60"/> |
| 11 | 11 | <Setter Property="Background" Value="Transparent"/> |
| 12 | 新增: <Setter Property="FocusVisualStyle" Value="{x:Null}"/> | |
| 12 | 13 | <Setter Property="Template"> |
| 13 | 14 | <Setter.Value> |
| 14 | 15 | <ControlTemplate TargetType="{x:Type local:NavigationItem}"> |
| @@ -4,6 +4,7 @@ | ||
| 4 | 4 | xmlns:base="clr-namespace:UI.Controls.Base"> |
| 5 | 5 | <Style TargetType="{x:Type local:PageContainer}"> |
| 6 | 6 | <Setter Property="SnapsToDevicePixels" Value="True"/> |
| 7 | 新增: <Setter Property="FocusVisualStyle" Value="{x:Null}"/> | |
| 7 | 8 | <Setter Property="Template"> |
| 8 | 9 | <Setter.Value> |
| 9 | 10 | <ControlTemplate TargetType="{x:Type local:PageContainer}"> |
| @@ -11,8 +12,8 @@ | ||
| 11 | 12 | BorderBrush="{TemplateBinding BorderBrush}" |
| 12 | 13 | BorderThickness="{TemplateBinding BorderThickness}" |
| 13 | 14 | SnapsToDevicePixels="True">--> |
| 14 | 删除: <ScrollViewer SnapsToDevicePixels="True" x:Name="ScrollViewer" VerticalScrollBarVisibility="Auto" ScrollViewer.CanContentScroll="False"> | |
| 15 | 删除: <Frame x:Name="Frame" Grid.Row="1" Content="{TemplateBinding Content}" NavigationUIVisibility="Hidden"/> | |
| 15 | 新增: <ScrollViewer FocusVisualStyle="{x:Null}" SnapsToDevicePixels="True" x:Name="ScrollViewer" VerticalScrollBarVisibility="Auto" ScrollViewer.CanContentScroll="False"> | |
| 16 | 新增: <Frame x:Name="Frame" Grid.Row="1" Content="{TemplateBinding Content}" NavigationUIVisibility="Hidden" FocusVisualStyle="{x:Null}"/> | |
| 16 | 17 | </ScrollViewer> |
| 17 | 18 | <!--</Border>--> |
| 18 | 19 | </ControlTemplate> |
| @@ -8,7 +8,7 @@ | ||
| 8 | 8 | Value="true" /> |
| 9 | 9 | <Setter Property="Padding" Value="18,10"/> |
| 10 | 10 | <Setter Property="Background" Value="{DynamicResource StandardBackgroundBrush}"/> |
| 11 | 删除: | |
| 11 | 新增: <Setter Property="FocusVisualStyle" Value="{x:Null}"/> | |
| 12 | 12 | <Setter Property="Template"> |
| 13 | 13 | <Setter.Value> |
| 14 | 14 | <ControlTemplate TargetType="{x:Type local:Select}"> |
| @@ -8,6 +8,7 @@ | ||
| 8 | 8 | Value="true" /> |
| 9 | 9 | <Setter Property="MinWidth" Value="44"/> |
| 10 | 10 | <Setter Property="Height" Value="auto"/> |
| 11 | 新增: <Setter Property="FocusVisualStyle" Value="{x:Null}"/> | |
| 11 | 12 | <Setter Property="Background" Value="Transparent"/> |
| 12 | 13 | <Setter Property="SelectedTextColor" Value="{DynamicResource ThemeColor}"/> |
| 13 | 14 | <Setter Property="Template"> |
| @@ -6,7 +6,7 @@ | ||
| 6 | 6 | <Setter Property="Width" Value="auto"/> |
| 7 | 7 | <Setter Property="Height" Value="22"/> |
| 8 | 8 | <Setter Property="Cursor" Value="Hand"/> |
| 9 | 删除: | |
| 9 | 新增: <Setter Property="FocusVisualStyle" Value="{x:Null}"/> | |
| 10 | 10 | <Setter Property="Background" Value="Transparent"/> |
| 11 | 11 | <Setter Property="Template"> |
| 12 | 12 | <Setter.Value> |
| @@ -47,8 +47,8 @@ | ||
| 47 | 47 | </Setter> |
| 48 | 48 | </Style> |
| 49 | 49 | <Style TargetType="{x:Type w:DefaultWindow}"> |
| 50 | 删除: <Setter Property="BorderThickness" Value="1" /> | |
| 51 | 删除: <Setter Property="BorderBrush" Value="{DynamicResource StandardColorBrush}" /> | |
| 50 | 新增: <!--<Setter Property="BorderThickness" Value="1" />--> | |
| 51 | 新增: <!--<Setter Property="BorderBrush" Value="{DynamicResource WindowBorderBrush}" />--> | |
| 52 | 52 | <Setter Property="Background" Value="Transparent" /> |
| 53 | 53 | <!--<Setter Property="Logo" Value="{DynamicResource WindowLogo}" />--> |
| 54 | 54 | <Setter Property="Foreground" Value="{DynamicResource StandardTextBrush}" /> |
| @@ -77,9 +77,8 @@ | ||
| 77 | 77 | <Border x:Name="WindowBorder" |
| 78 | 78 | Margin="{Binding Source={x:Static SystemParameters.WindowNonClientFrameThickness}}"> |
| 79 | 79 | <Border |
| 80 | 删除: | |
| 81 | 删除: BorderThickness="{TemplateBinding BorderThickness}" | |
| 82 | 删除: BorderBrush="{TemplateBinding BorderBrush}" | |
| 80 | 新增: BorderThickness="1" | |
| 81 | 新增: BorderBrush="{DynamicResource WindowBorderBrush}" | |
| 83 | 82 | Background="{DynamicResource WindowBackground}" |
| 84 | 83 | > |
| 85 | 84 | <AdornerDecorator> |

