提交记录修改UI/App.xaml+2 −2看文件
修改UI/Themes/Window/DefaultWindow.xaml+1 −1看文件
修改UI/ViewModels/CategoryAppListPageVM.cs+34 −24看文件
修改UI/ViewModels/ChartPageVM.cs+5 −5看文件
修改UI/ViewModels/DataPageVM.cs+1 −1看文件
修改UI/ViewModels/DetailPageVM.cs+3 −3看文件
修改UI/ViewModels/IndexPageVM.cs+1 −1看文件
修改UI/Views/IndexPage.xaml+1 −1看文件
| @@ -76,7 +76,7 @@ | ||
| 76 | 76 | <Setter Property="Height" |
| 77 | 77 | Value="1" /> |
| 78 | 78 | <Setter Property="Margin" |
| 79 | 删除: Value="35,0,5,0" /> | |
| 79 | 新增: Value="35,5,5,5" /> | |
| 80 | 80 | <Setter Property="Template"> |
| 81 | 81 | <Setter.Value> |
| 82 | 82 | <ControlTemplate TargetType="{x:Type Separator}"> |
| @@ -85,7 +85,7 @@ | ||
| 85 | 85 | <SolidColorBrush Color="#FFDEDEDE"/> |
| 86 | 86 | </Border.BorderBrush> |
| 87 | 87 | </Border>--> |
| 88 | 删除: <Rectangle Fill="#FFDEDEDE"/> | |
| 88 | 新增: <Rectangle Fill="#FFECECEC"/> | |
| 89 | 89 | </ControlTemplate> |
| 90 | 90 | </Setter.Value> |
| 91 | 91 | </Setter> |
| @@ -186,7 +186,7 @@ | ||
| 186 | 186 | </TransformGroup> |
| 187 | 187 | </Border.RenderTransform> |
| 188 | 188 | <Border.Effect> |
| 189 | 删除: <DropShadowEffect BlurRadius="10" Color="Black" Opacity=".5"/> | |
| 189 | 新增: <DropShadowEffect BlurRadius="10" Color="Black" Opacity=".1"/> | |
| 190 | 190 | </Border.Effect> |
| 191 | 191 | <Grid > |
| 192 | 192 | <Grid.ColumnDefinitions> |
| @@ -51,7 +51,7 @@ namespace UI.ViewModels | ||
| 51 | 51 | list.Remove(SelectedItem); |
| 52 | 52 | |
| 53 | 53 | var app = appData.GetApp(SelectedItem.ID); |
| 54 | 删除: if(app != null) | |
| 54 | 新增: if (app != null) | |
| 55 | 55 | { |
| 56 | 56 | app.CategoryID = 0; |
| 57 | 57 | app.Category = null; |
| @@ -197,34 +197,44 @@ namespace UI.ViewModels | ||
| 197 | 197 | |
| 198 | 198 | private void Search(string keyword) |
| 199 | 199 | { |
| 200 | 删除: if (!string.IsNullOrEmpty(keyword)) | |
| 201 | 删除: { | |
| 202 | 删除: Debug.WriteLine(keyword); | |
| 203 | 删除: keyword = keyword.ToLower(); | |
| 200 | 新增: Task.Run(() => | |
| 201 | 新增: { | |
| 202 | 新增: if (!string.IsNullOrEmpty(keyword)) | |
| 203 | 新增: { | |
| 204 | 新增: Debug.WriteLine(keyword); | |
| 205 | 新增: keyword = keyword.ToLower(); | |
| 204 | 206 | |
| 205 | 删除: //var list = appList.Where(m => m.App.Description.ToLower().IndexOf(keyword) != -1 || m.App.Name.ToLower().IndexOf(keyword) != -1).ToList(); | |
| 206 | 删除: var list = AppList.ToList(); | |
| 207 | 新增: //var list = appList.Where(m => m.App.Description.ToLower().IndexOf(keyword) != -1 || m.App.Name.ToLower().IndexOf(keyword) != -1).ToList(); | |
| 208 | 新增: var list = AppList.ToList(); | |
| 207 | 209 | |
| 208 | 删除: foreach (var item in list) | |
| 209 | 删除: { | |
| 210 | 删除: item.Visibility = item.App.Description.ToLower().IndexOf(keyword) != -1 || item.App.Name.ToLower().IndexOf(keyword) != -1 ? System.Windows.Visibility.Visible : System.Windows.Visibility.Collapsed; | |
| 211 | 删除: } | |
| 212 | 删除: | |
| 213 | 删除: AppList = list; | |
| 210 | 新增: foreach (var item in list) | |
| 211 | 新增: { | |
| 212 | 新增: item.Visibility = item.App.Description.ToLower().IndexOf(keyword) != -1 || item.App.Name.ToLower().IndexOf(keyword) != -1 ? System.Windows.Visibility.Visible : System.Windows.Visibility.Collapsed; | |
| 213 | 新增: } | |
| 214 | 214 | |
| 215 | 删除: } | |
| 216 | 删除: else | |
| 217 | 删除: { | |
| 218 | 删除: var list = AppList.ToList(); | |
| 215 | 新增: return list; | |
| 219 | 216 | |
| 220 | 删除: foreach (var item in list) | |
| 221 | 删除: { | |
| 222 | 删除: item.Visibility = System.Windows.Visibility.Visible; | |
| 223 | 删除: } | |
| 224 | 删除: | |
| 225 | 删除: AppList = list; | |
| 217 | 新增: } | |
| 218 | 新增: else | |
| 219 | 新增: { | |
| 220 | 新增: var list = AppList.ToList(); | |
| 221 | 新增: | |
| 222 | 新增: foreach (var item in list) | |
| 223 | 新增: { | |
| 224 | 新增: item.Visibility = System.Windows.Visibility.Visible; | |
| 225 | 新增: } | |
| 226 | 新增: | |
| 227 | 新增: return list; | |
| 228 | 新增: | |
| 229 | 新增: } | |
| 230 | 新增: }) | |
| 231 | 新增: | |
| 232 | 新增: .ContinueWith(task => | |
| 233 | 新增: { | |
| 234 | 新增: AppList = task.Result; | |
| 235 | 新增: | |
| 236 | 新增: }, TaskScheduler.FromCurrentSynchronizationContext()); | |
| 226 | 237 | |
| 227 | 删除: } | |
| 228 | 238 | } |
| 229 | 239 | } |
| 230 | 240 | } |
| @@ -158,7 +158,7 @@ namespace UI.ViewModels | ||
| 158 | 158 | }; |
| 159 | 159 | if (category.ID == 0) |
| 160 | 160 | { |
| 161 | 删除: dataItem.Color = "#f7f6f2"; | |
| 161 | 新增: dataItem.Color = "#E5F7F6F2"; | |
| 162 | 162 | } |
| 163 | 163 | chartData.Add(dataItem); |
| 164 | 164 | } |
| @@ -213,7 +213,7 @@ namespace UI.ViewModels | ||
| 213 | 213 | }; |
| 214 | 214 | if (category.ID == 0) |
| 215 | 215 | { |
| 216 | 删除: dataItem.Color = "#f7f6f2"; | |
| 216 | 新增: dataItem.Color = "#E5F7F6F2"; | |
| 217 | 217 | } |
| 218 | 218 | chartData.Add(dataItem); |
| 219 | 219 | } |
| @@ -265,7 +265,7 @@ namespace UI.ViewModels | ||
| 265 | 265 | }; |
| 266 | 266 | if (category.ID == 0) |
| 267 | 267 | { |
| 268 | 删除: dataItem.Color = "#f7f6f2"; | |
| 268 | 新增: dataItem.Color = "#E5F7F6F2"; | |
| 269 | 269 | } |
| 270 | 270 | chartData.Add(dataItem); |
| 271 | 271 | } |
| @@ -321,7 +321,7 @@ namespace UI.ViewModels | ||
| 321 | 321 | }; |
| 322 | 322 | if (category.ID == 0) |
| 323 | 323 | { |
| 324 | 删除: dataItem.Color = "#f7f6f2"; | |
| 324 | 新增: dataItem.Color = "#E5F7F6F2"; | |
| 325 | 325 | } |
| 326 | 326 | chartData.Add(dataItem); |
| 327 | 327 | } |
| @@ -377,7 +377,7 @@ namespace UI.ViewModels | ||
| 377 | 377 | |
| 378 | 378 | var bindModel = new ChartsDataModel(); |
| 379 | 379 | bindModel.Data = item; |
| 380 | 删除: bindModel.Name = item.AppModel?.Description; | |
| 380 | 新增: bindModel.Name = string.IsNullOrEmpty(item.AppModel?.Description) ? item.AppModel.Name : item.AppModel.Description; | |
| 381 | 381 | bindModel.Value = item.Time; |
| 382 | 382 | bindModel.Tag = Timer.Fromat(item.Time); |
| 383 | 383 | bindModel.PopupText = item.AppModel?.File; |
| @@ -181,7 +181,7 @@ namespace UI.ViewModels | ||
| 181 | 181 | |
| 182 | 182 | var bindModel = new ChartsDataModel(); |
| 183 | 183 | bindModel.Data = item; |
| 184 | 删除: bindModel.Name = item.AppModel?.Description; | |
| 184 | 新增: bindModel.Name = string.IsNullOrEmpty(item.AppModel?.Description) ? item.AppModel.Name : item.AppModel.Description; | |
| 185 | 185 | bindModel.Value = item.Time; |
| 186 | 186 | bindModel.Tag = Timer.Fromat(item.Time); |
| 187 | 187 | bindModel.PopupText = item.AppModel?.File; |
| @@ -152,13 +152,13 @@ namespace UI.ViewModels | ||
| 152 | 152 | { |
| 153 | 153 | config.Behavior.IgnoreProcessList.Add(App.Name); |
| 154 | 154 | IsIgnore = true; |
| 155 | 删除: main.Toast("应用已忽略"); | |
| 155 | 新增: main.Toast("应用已忽略", Controls.Window.ToastType.Success); | |
| 156 | 156 | } |
| 157 | 157 | else |
| 158 | 158 | { |
| 159 | 159 | config.Behavior.IgnoreProcessList.Remove(App.Name); |
| 160 | 160 | IsIgnore = false; |
| 161 | 删除: main.Toast("已取消忽略"); | |
| 161 | 新增: main.Toast("已取消忽略", Controls.Window.ToastType.Success); | |
| 162 | 162 | } |
| 163 | 163 | |
| 164 | 164 | appConfig.Save(); |
| @@ -381,7 +381,7 @@ namespace UI.ViewModels | ||
| 381 | 381 | { |
| 382 | 382 | var bindModel = new ChartsDataModel(); |
| 383 | 383 | bindModel.Data = item; |
| 384 | 删除: bindModel.Name = item.AppModel.Description; | |
| 384 | 新增: bindModel.Name = string.IsNullOrEmpty(item.AppModel?.Description) ? item.AppModel.Name : item.AppModel.Description; | |
| 385 | 385 | bindModel.Value = item.Time; |
| 386 | 386 | bindModel.Tag = Timer.Fromat(item.Time); |
| 387 | 387 | bindModel.PopupText = item.AppModel.File; |
| @@ -156,7 +156,7 @@ namespace UI.ViewModels | ||
| 156 | 156 | { |
| 157 | 157 | var bindModel = new ChartsDataModel(); |
| 158 | 158 | bindModel.Data = item; |
| 159 | 删除: bindModel.Name = item.AppModel?.Description; | |
| 159 | 新增: bindModel.Name = string.IsNullOrEmpty(item.AppModel?.Description) ? item.AppModel.Name : item.AppModel.Description; | |
| 160 | 160 | bindModel.Value = item.Time; |
| 161 | 161 | bindModel.Tag = Timer.Fromat(item.Time); |
| 162 | 162 | bindModel.PopupText = item.AppModel?.File; |
| @@ -25,7 +25,7 @@ | ||
| 25 | 25 | </Border>--> |
| 26 | 26 | <TextBlock Text="概览" FontSize="18" Margin="0,5,0,20"/> |
| 27 | 27 | <Tabbar:Tabbar Width="100" HorizontalAlignment="Left" Data="{Binding TabbarData}" SelectedIndex="{Binding TabbarSelectedIndex,Mode=TwoWay}"/> |
| 28 | 删除: <TextBlock Text="最为频繁" FontSize="15" Margin="0,10,0,10"/> | |
| 28 | 新增: <TextBlock Text="最为频繁" FontSize="15" Margin="0,20,0,10"/> | |
| 29 | 29 | <Charts:Charts IsCanScroll="False" Height="180" Data="{Binding WeekData}" ChartsType="HorizontalA" ShowLimit="3" IsLoading="{Binding IsLoading,Mode=TwoWay}" ClickCommand="{Binding ToDetailCommand}"/> |
| 30 | 30 | <TextBlock Text="更多" FontSize="15" Margin="0,20,0,10"/> |
| 31 | 31 | <Charts:Charts Data="{Binding WeekData}" ChartsType="Card" ShowLimit="12" IsLoading="{Binding IsLoading,Mode=TwoWay}" ClickCommand="{Binding ToDetailCommand}"/> |

