From d1dc5d04e09f2368b68aaca423da257b7c2655dd Mon Sep 17 00:00:00 2001
From: oZ-Zo <50652175+oz-zo@users.noreply.github.com>
Date: Tue, 18 Feb 2020 16:08:52 +0300
Subject: [PATCH] Remove icons from toggle switch, change hamburger text icon
to wpf path.
This change broken good design.
---
.../Controls/HamburgerCategoryButton.xaml | 27 ++++-
.../Controls/HamburgerCategoryButton.xaml.cs | 29 +++++
.../HamburgerCategoryFlashButton.xaml | 30 +++++-
.../HamburgerCategoryFlashButton.xaml.cs | 34 +++++-
.../W10SS_GUI/Controls/ToggleSwitch.xaml | 7 +-
.../W10SS_GUI/Controls/ToggleSwitch.xaml.cs | 18 ++--
.../Controls/TogglesCategoryPanel.xaml | 37 -------
.../Controls/TogglesCategoryPanel.xaml.cs | 44 --------
W10SS_GUI_2/W10SS_GUI/Localized/EN.xaml | 8 +-
W10SS_GUI_2/W10SS_GUI/MainWindow.xaml | 101 ++++++++++--------
.../W10SS_GUI/Properties/AssemblyInfo.cs | 4 +-
.../W10SS_GUI/Resource/controlsSize.xaml | 2 +
W10SS_GUI_2/W10SS_GUI/Resource/icons.xaml | 22 ++--
W10SS_GUI_2/W10SS_GUI/Resource/tags.xaml | 2 +-
W10SS_GUI_2/W10SS_GUI/W10SS_GUI.csproj | 11 +-
15 files changed, 202 insertions(+), 174 deletions(-)
delete mode 100644 W10SS_GUI_2/W10SS_GUI/Controls/TogglesCategoryPanel.xaml
delete mode 100644 W10SS_GUI_2/W10SS_GUI/Controls/TogglesCategoryPanel.xaml.cs
diff --git a/W10SS_GUI_2/W10SS_GUI/Controls/HamburgerCategoryButton.xaml b/W10SS_GUI_2/W10SS_GUI/Controls/HamburgerCategoryButton.xaml
index 4df79b8e..1122559d 100644
--- a/W10SS_GUI_2/W10SS_GUI/Controls/HamburgerCategoryButton.xaml
+++ b/W10SS_GUI_2/W10SS_GUI/Controls/HamburgerCategoryButton.xaml
@@ -17,6 +17,16 @@
+
-
+ Text="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}}, Path=Icon}"
+ Visibility="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}}, Path=IconVisibility}"/>
+
+
+
+
+
-
-
+
@@ -67,10 +76,23 @@
-
+ Text="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}}, Path=Icon}"
+ Visibility="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}}, Path=IconVisibility}"/>
+
+
+
+
-
+ Text="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}}, Path=Icon}"/>-->
+ Margin="10 5 60 5">
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/W10SS_GUI_2/W10SS_GUI/Controls/TogglesCategoryPanel.xaml.cs b/W10SS_GUI_2/W10SS_GUI/Controls/TogglesCategoryPanel.xaml.cs
deleted file mode 100644
index 05326f45..00000000
--- a/W10SS_GUI_2/W10SS_GUI/Controls/TogglesCategoryPanel.xaml.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Markup;
-using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
-
-namespace W10SS_GUI.Controls
-{
- ///
- /// Логика взаимодействия для TogglesCategoryPanel.xaml
- ///
-
- public partial class TogglesCategoryPanel : UserControl
- {
- public TogglesCategoryPanel()
- {
- InitializeComponent();
- }
-
-
-
- public Thickness HeaderMargin
- {
- get { return (Thickness)GetValue(HeaderMarginProperty); }
- set { SetValue(HeaderMarginProperty, value); }
- }
-
- // Using a DependencyProperty as the backing store for HeaderMargin. This enables animation, styling, binding, etc...
- public static readonly DependencyProperty HeaderMarginProperty =
- DependencyProperty.Register("HeaderMargin", typeof(Thickness), typeof(TogglesCategoryPanel), new PropertyMetadata(default(Thickness)));
-
- }
-}
diff --git a/W10SS_GUI_2/W10SS_GUI/Localized/EN.xaml b/W10SS_GUI_2/W10SS_GUI/Localized/EN.xaml
index ec65ee91..0ba86ab8 100644
--- a/W10SS_GUI_2/W10SS_GUI/Localized/EN.xaml
+++ b/W10SS_GUI_2/W10SS_GUI/Localized/EN.xaml
@@ -9,15 +9,15 @@
System
Start Menu
UWP Apps
- Windows Game
+ Game Mode
Task Scheduler
Microsoft Defender
Context Menu
Apply Settings
Save Settings
- Load Settings
- Change Language
- Follow to GitHub
+ Import Settings
+ Русский
+ GitHub
\ No newline at end of file
diff --git a/W10SS_GUI_2/W10SS_GUI/MainWindow.xaml b/W10SS_GUI_2/W10SS_GUI/MainWindow.xaml
index e151820f..b2ad3699 100644
--- a/W10SS_GUI_2/W10SS_GUI/MainWindow.xaml
+++ b/W10SS_GUI_2/W10SS_GUI/MainWindow.xaml
@@ -8,9 +8,10 @@
mc:Ignorable="d"
Name="Window" Title="{StaticResource textWindowTitle}"
MinHeight="{StaticResource windowMinHeight}"
- MinWidth="{StaticResource windowMinWidth}"
- Height="{StaticResource windowHeight}"
+ Height="{StaticResource windowHeight}"
+ MinWidth="{StaticResource windowMinWidth}"
Width="{StaticResource windowWidth}"
+ MaxWidth="{StaticResource windowMaxWidth}"
FontFamily="{StaticResource fontWindow}"
FontSize="{DynamicResource windowFontSize}"
WindowStartupLocation="CenterScreen"
@@ -19,7 +20,9 @@
ShowInTaskbar="True"
Background="{DynamicResource colorWindowBackground}"
Foreground="{DynamicResource colorWindowForeground}"
- Initialized="Window_Initialized" SizeToContent="Manual">
+ Initialized="Window_Initialized"
+ Icon="windows10.ico"
+ SizeToContent="Manual">