Browse Source

Complete hamburger design

pull/17/head
oZ-Zo 5 years ago
parent
commit
4e7ac270fe
  1. 1
      W10SS_GUI_2/W10SS_GUI/App.xaml
  2. 6
      W10SS_GUI_2/W10SS_GUI/Brushes/brushes.xaml
  3. 20
      W10SS_GUI_2/W10SS_GUI/Controls/HamburgerCategoryButton.xaml
  4. 3
      W10SS_GUI_2/W10SS_GUI/Controls/HamburgerCategoryButton.xaml.cs
  5. 82
      W10SS_GUI_2/W10SS_GUI/Controls/HamburgerCategoryFlashButton.xaml
  6. 61
      W10SS_GUI_2/W10SS_GUI/Controls/HamburgerCategoryFlashButton.xaml.cs
  7. 9
      W10SS_GUI_2/W10SS_GUI/Localized/EN.xaml
  8. 90
      W10SS_GUI_2/W10SS_GUI/MainWindow.xaml
  9. 15
      W10SS_GUI_2/W10SS_GUI/Resource/Animations.xaml
  10. 15
      W10SS_GUI_2/W10SS_GUI/Resource/constants.xaml
  11. 6
      W10SS_GUI_2/W10SS_GUI/Resource/controlsSize.xaml
  12. 3
      W10SS_GUI_2/W10SS_GUI/Resource/icons.xaml
  13. 11
      W10SS_GUI_2/W10SS_GUI/W10SS_GUI.csproj

1
W10SS_GUI_2/W10SS_GUI/App.xaml

@ -12,6 +12,7 @@
<ResourceDictionary Source="pack://application:,,,/Resource/controlsSize.xaml"/> <ResourceDictionary Source="pack://application:,,,/Resource/controlsSize.xaml"/>
<ResourceDictionary Source="pack://application:,,,/Resource/icons.xaml"/> <ResourceDictionary Source="pack://application:,,,/Resource/icons.xaml"/>
<ResourceDictionary Source="pack://application:,,,/Resource/animations.xaml"/> <ResourceDictionary Source="pack://application:,,,/Resource/animations.xaml"/>
<ResourceDictionary Source="pack://application:,,,/Resource/constants.xaml"/>
</ResourceDictionary.MergedDictionaries> </ResourceDictionary.MergedDictionaries>
</ResourceDictionary> </ResourceDictionary>
</Application.Resources> </Application.Resources>

6
W10SS_GUI_2/W10SS_GUI/Brushes/brushes.xaml

@ -3,8 +3,10 @@
<SolidColorBrush x:Key="buttonHamburgerBackground" Color="#353535"/> <SolidColorBrush x:Key="buttonHamburgerBackground" Color="#353535"/>
<SolidColorBrush x:Key="buttonHamburgerHover" Color="#4A4A4A"/> <SolidColorBrush x:Key="buttonHamburgerHover" Color="#4A4A4A"/>
<SolidColorBrush x:Key="textHamburgerForeground" Color="#FFFFFF"/> <SolidColorBrush x:Key="textHamburgerForeground" Color="#FFFFFF"/>
<SolidColorBrush x:Key="textHamburgerForegroundDisabled" Color="#848484"/>
<Color x:Key="buttonHamburgerBackgroundColor">#353535</Color> <Color x:Key="buttonHamburgerBackgroundColor">#353535</Color>
<Color x:Key="buttonHamburgerHoverColor">#4A4A4A</Color> <Color x:Key="buttonHamburgerHoverColor">#4A4A4A</Color>
<Color x:Key="buttonHamburgerApplyHoverColor">#e81123</Color>
</ResourceDictionary> </ResourceDictionary>

20
W10SS_GUI_2/W10SS_GUI/Controls/HamburgerCategoryButton.xaml

@ -6,11 +6,24 @@
xmlns:local="clr-namespace:W10SS_GUI.Controls" xmlns:local="clr-namespace:W10SS_GUI.Controls"
mc:Ignorable="d" mc:Ignorable="d"
d:DesignHeight="{StaticResource buttonHamburgerHeight}" d:DesignWidth="{StaticResource panelHamburgerMaxWidth}"> d:DesignHeight="{StaticResource buttonHamburgerHeight}" d:DesignWidth="{StaticResource panelHamburgerMaxWidth}">
<UserControl.Resources>
<Style TargetType="TextBlock">
<Style.Triggers>
<Trigger Property="IsEnabled" Value="True">
<Setter Property="Foreground" Value="{DynamicResource textHamburgerForeground}" />
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Foreground" Value="{DynamicResource textHamburgerForegroundDisabled}"/>
</Trigger>
</Style.Triggers>
</Style>
</UserControl.Resources>
<Grid> <Grid>
<StackPanel Name="hamburgerButton" <StackPanel Name="hamburgerButton"
Width="{DynamicResource panelHamburgerMaxWidth}" Width="{DynamicResource panelHamburgerMaxWidth}"
Height="{DynamicResource buttonHamburgerHeight}" Height="{DynamicResource buttonHamburgerHeight}"
Orientation="Horizontal"> Orientation="Horizontal"
Tag="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}}, Path=Tag}">
<StackPanel.Background> <StackPanel.Background>
<SolidColorBrush Color="{DynamicResource buttonHamburgerBackgroundColor }" x:Name="buttonHamburgerBackgroundColor"/> <SolidColorBrush Color="{DynamicResource buttonHamburgerBackgroundColor }" x:Name="buttonHamburgerBackgroundColor"/>
</StackPanel.Background> </StackPanel.Background>
@ -44,13 +57,12 @@
<StackPanel Name="hamburgerContainer" Orientation="Horizontal"> <StackPanel Name="hamburgerContainer" Orientation="Horizontal">
<TextBlock Name="textIcon" FontFamily="Segoe MDL2 Assets" FontSize="{DynamicResource buttonHamburgerIconsSize}" <TextBlock Name="textIcon" FontFamily="Segoe MDL2 Assets" FontSize="{DynamicResource buttonHamburgerIconsSize}"
Margin="10 0 10 0" Foreground="{DynamicResource textHamburgerForeground}" Margin="10 0 10 0"
VerticalAlignment="Center" VerticalAlignment="Center"
Text="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}}, Path=Icon}"/> Text="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}}, Path=Icon}"/>
<TextBlock Name="textCategory" FontSize="{DynamicResource textHamburgerSize}" <TextBlock Name="textCategory" FontSize="{DynamicResource textHamburgerSize}"
Margin="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}}, Path=TextMargin}" Margin="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}}, Path=TextMargin}"
Foreground="{DynamicResource textHamburgerForeground}"
VerticalAlignment="Center" VerticalAlignment="Center"
Text="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}}, Path=Text}"/> Text="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}}, Path=Text}"/>
</StackPanel> </StackPanel>

3
W10SS_GUI_2/W10SS_GUI/Controls/HamburgerCategoryButton.xaml.cs

@ -60,8 +60,5 @@ namespace W10SS_GUI.Controls
public static readonly DependencyProperty TextMarginProperty = public static readonly DependencyProperty TextMarginProperty =
DependencyProperty.Register("TextMargin", typeof(Thickness), typeof(HamburgerCategoryButton), new PropertyMetadata(default(Thickness))); DependencyProperty.Register("TextMargin", typeof(Thickness), typeof(HamburgerCategoryButton), new PropertyMetadata(default(Thickness)));
} }
} }

82
W10SS_GUI_2/W10SS_GUI/Controls/HamburgerCategoryFlashButton.xaml

@ -0,0 +1,82 @@
<UserControl x:Class="W10SS_GUI.Controls.HamburgerCategoryFlashButton"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:W10SS_GUI.Controls"
mc:Ignorable="d"
d:DesignHeight="{StaticResource buttonHamburgerHeight}" d:DesignWidth="{StaticResource panelHamburgerMaxWidth}">
<UserControl.Resources>
<Style TargetType="TextBlock">
<Style.Triggers>
<Trigger Property="IsEnabled" Value="True">
<Setter Property="Foreground" Value="{DynamicResource textHamburgerForeground}" />
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Foreground" Value="{DynamicResource textHamburgerForegroundDisabled}"/>
</Trigger>
</Style.Triggers>
</Style>
</UserControl.Resources>
<Grid Tag="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}}, Path=Tag}">
<StackPanel Name="hamburgerButton"
Width="{DynamicResource panelHamburgerMaxWidth}"
Height="{DynamicResource buttonHamburgerHeight}"
Orientation="Horizontal">
<StackPanel.Background>
<SolidColorBrush Color="{DynamicResource buttonHamburgerBackgroundColor }" x:Name="buttonHamburgerBackgroundColor"/>
</StackPanel.Background>
<StackPanel.Style>
<Style TargetType="StackPanel">
<Style.Triggers>
<Trigger Property="IsEnabled" Value="True">
<Trigger.EnterActions>
<BeginStoryboard Name="animationHamburgerIsEnabled" Storyboard="{DynamicResource animationHamburgerApplyButtonIsEnabled}"/>
</Trigger.EnterActions>
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Trigger.EnterActions>
<PauseStoryboard BeginStoryboardName="animationHamburgerIsEnabled" />
<BeginStoryboard Name="animationHamburgerIsDisabled" Storyboard="{DynamicResource animationHamburgerApplyButtonIsDisabled}"/>
</Trigger.EnterActions>
</Trigger>
</Style.Triggers>
</Style>
</StackPanel.Style>
<StackPanel.Triggers>
<EventTrigger RoutedEvent="MouseEnter">
<BeginStoryboard Storyboard="{DynamicResource animationHamburgerApplyHover}" />
</EventTrigger>
<EventTrigger RoutedEvent="MouseLeave">
<BeginStoryboard Storyboard="{DynamicResource animationHamburgerApplyButtonIsEnabled}"/>
</EventTrigger>
<EventTrigger RoutedEvent="MouseLeftButtonDown">
<BeginStoryboard >
<Storyboard>
<ThicknessAnimation Storyboard.TargetName="hamburgerContainer"
Storyboard.TargetProperty="Margin"
Duration="0:0:0.5"
From="0 0 0 0"
To="0 5 0 0"
SpeedRatio="5"
AutoReverse="True"/>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</StackPanel.Triggers>
<StackPanel Name="hamburgerContainer" Orientation="Horizontal">
<TextBlock Name="textIcon" FontFamily="Segoe MDL2 Assets" FontSize="{DynamicResource buttonHamburgerIconsSize}"
Margin="10 0 10 0"
VerticalAlignment="Center"
Text="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}}, Path=Icon}"/>
<TextBlock Name="textCategory" FontSize="{DynamicResource textHamburgerSize}"
Margin="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}}, Path=TextMargin}"
VerticalAlignment="Center"
Text="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}}, Path=Text}"/>
</StackPanel>
</StackPanel>
</Grid>
</UserControl>

61
W10SS_GUI_2/W10SS_GUI/Controls/HamburgerCategoryFlashButton.xaml.cs

@ -0,0 +1,61 @@
using System;
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.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace W10SS_GUI.Controls
{
/// <summary>
/// Логика взаимодействия для HamburgerCategoryFlashButton.xaml
/// </summary>
public partial class HamburgerCategoryFlashButton : UserControl
{
public HamburgerCategoryFlashButton()
{
InitializeComponent();
}
public string Text
{
get { return (string)GetValue(TextProperty); }
set { SetValue(TextProperty, value); }
}
// Using a DependencyProperty as the backing store for Text. This enables animation, styling, binding, etc...
public static readonly DependencyProperty TextProperty =
DependencyProperty.Register("Text", typeof(string), typeof(HamburgerCategoryFlashButton), new PropertyMetadata(default(string)));
public string Icon
{
get { return (string)GetValue(IconProperty); }
set { SetValue(IconProperty, value); }
}
// Using a DependencyProperty as the backing store for IconText. This enables animation, styling, binding, etc...
public static readonly DependencyProperty IconProperty =
DependencyProperty.Register("Icon", typeof(string), typeof(HamburgerCategoryFlashButton), new PropertyMetadata(default(string)));
public Thickness TextMargin
{
get { return (Thickness)GetValue(TextMarginProperty); }
set { SetValue(TextMarginProperty, value); }
}
// Using a DependencyProperty as the backing store for TextMargin. This enables animation, styling, binding, etc...
public static readonly DependencyProperty TextMarginProperty =
DependencyProperty.Register("TextMargin", typeof(Thickness), typeof(HamburgerCategoryFlashButton), new PropertyMetadata(default(Thickness)));
}
}

9
W10SS_GUI_2/W10SS_GUI/Localized/EN.xaml

@ -1,6 +1,8 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:system="clr-namespace:System;assembly=mscorlib"> xmlns:system="clr-namespace:System;assembly=mscorlib">
<system:String x:Key="textWindowTitle">Windows 10 Setup Script</system:String>
<system:String x:Key="textHamburgerPrivacy">Privacy &amp; Telemetry</system:String> <system:String x:Key="textHamburgerPrivacy">Privacy &amp; Telemetry</system:String>
<system:String x:Key="textHamburgerUi">UI &amp; Personalization</system:String> <system:String x:Key="textHamburgerUi">UI &amp; Personalization</system:String>
<system:String x:Key="textHamburgerOneDrive">OneDrive</system:String> <system:String x:Key="textHamburgerOneDrive">OneDrive</system:String>
@ -11,4 +13,9 @@
<system:String x:Key="textHamburgerTaskScheduler">Task Scheduler</system:String> <system:String x:Key="textHamburgerTaskScheduler">Task Scheduler</system:String>
<system:String x:Key="textHamburgerDefender">Microsoft Defender</system:String> <system:String x:Key="textHamburgerDefender">Microsoft Defender</system:String>
<system:String x:Key="textHamburgerContextMenu">Context Menu</system:String> <system:String x:Key="textHamburgerContextMenu">Context Menu</system:String>
<system:String x:Key="textHamburgerApply">Apply Settings</system:String>
<system:String x:Key="textHamburgerSave">Save Settings</system:String>
<system:String x:Key="textHamburgerLoad">Load Settings</system:String>
</ResourceDictionary> </ResourceDictionary>

90
W10SS_GUI_2/W10SS_GUI/MainWindow.xaml

@ -6,8 +6,11 @@
xmlns:local="clr-namespace:W10SS_GUI" xmlns:local="clr-namespace:W10SS_GUI"
xmlns:uc="clr-namespace:W10SS_GUI.Controls" xmlns:uc="clr-namespace:W10SS_GUI.Controls"
mc:Ignorable="d" mc:Ignorable="d"
Name="Window" Title="Windows 10 Setup Script" MinHeight="863" MinWidth="800" Height="863" Width="800" Name="Window" Title="{StaticResource textWindowTitle}" MinHeight="{StaticResource windowMinHeight}"
FontSize="18" TextOptions.TextFormattingMode="Display" Height="{StaticResource windowHeight}"
MinWidth="{StaticResource windowMinWidth}"
Width="{StaticResource windowWidth}"
FontSize="{DynamicResource windowFontSize}" TextOptions.TextFormattingMode="Display"
WindowStartupLocation="CenterScreen" SnapsToDevicePixels="True" WindowStartupLocation="CenterScreen" SnapsToDevicePixels="True"
ResizeMode="CanResize" ShowInTaskbar="True" ResizeMode="CanResize" ShowInTaskbar="True"
Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"
@ -36,66 +39,109 @@
<BeginStoryboard Storyboard="{StaticResource animationHamburgerClose}"/> <BeginStoryboard Storyboard="{StaticResource animationHamburgerClose}"/>
</EventTrigger> </EventTrigger>
</Canvas.Triggers> </Canvas.Triggers>
<uc:HamburgerCategoryButton Icon="{StaticResource iconHamburgerPrivacy}" <uc:HamburgerCategoryButton x:Name="buttonHamburgerPrivacy"
Icon="{StaticResource iconHamburgerPrivacy}"
Text="{DynamicResource textHamburgerPrivacy}" Text="{DynamicResource textHamburgerPrivacy}"
Width="{Binding ElementName=panelHamburger, Path=Width}" Width="{Binding ElementName=panelHamburger, Path=Width}"
TextMargin="0 0 10 3" TextMargin="0 0 10 3"
Canvas.Top="0" Canvas.Right="0"/> Tag="{StaticResource tagCategoryPrivacy}"
Canvas.Top="0" Canvas.Left="0"/>
<uc:HamburgerCategoryButton Icon="{StaticResource iconHamburgerUi}" <uc:HamburgerCategoryButton x:Name="buttonHamburgerUi"
Icon="{StaticResource iconHamburgerUi}"
Text="{DynamicResource textHamburgerUi}" Text="{DynamicResource textHamburgerUi}"
Width="{Binding ElementName=panelHamburger, Path=Width}" Width="{Binding ElementName=panelHamburger, Path=Width}"
TextMargin="0 0 10 -2" TextMargin="0 0 10 -2"
Canvas.Top="40" Canvas.Right="0"/> Tag="{StaticResource tagCategoryUi}"
Canvas.Top="40" Canvas.Left="0"/>
<uc:HamburgerCategoryButton Icon="{StaticResource iconHamburgerOneDrive}" <uc:HamburgerCategoryButton x:Name="buttonHamburgerOneDrive"
Icon="{StaticResource iconHamburgerOneDrive}"
Text="{DynamicResource textHamburgerOneDrive}" Text="{DynamicResource textHamburgerOneDrive}"
Width="{Binding ElementName=panelHamburger, Path=Width}" Width="{Binding ElementName=panelHamburger, Path=Width}"
TextMargin="0 0 10 3" TextMargin="0 0 10 3"
Canvas.Top="80" Canvas.Right="0"/> Tag="{StaticResource tagCategoryOneDrive}"
Canvas.Top="80" Canvas.Left="0"/>
<uc:HamburgerCategoryButton Icon="{StaticResource iconHamburgerSystem}" <uc:HamburgerCategoryButton x:Name="buttonHamburgerSystem"
Icon="{StaticResource iconHamburgerSystem}"
Text="{DynamicResource textHamburgerSystem}" Text="{DynamicResource textHamburgerSystem}"
Width="{Binding ElementName=panelHamburger, Path=Width}" Width="{Binding ElementName=panelHamburger, Path=Width}"
TextMargin="0 0 10 1" TextMargin="0 0 10 1"
Canvas.Top="120" Canvas.Right="0"/> Tag="{StaticResource tagCategorySystem}"
Canvas.Top="120" Canvas.Left="0"/>
<uc:HamburgerCategoryButton Icon="{StaticResource iconHamburgerStartMenu}" <uc:HamburgerCategoryButton x:Name="buttonHamburgerStartMenu"
Icon="{StaticResource iconHamburgerStartMenu}"
Text="{DynamicResource textHamburgerStartMenu}" Text="{DynamicResource textHamburgerStartMenu}"
Width="{Binding ElementName=panelHamburger, Path=Width}" Width="{Binding ElementName=panelHamburger, Path=Width}"
TextMargin="0 0 10 5" TextMargin="0 0 10 5"
Canvas.Top="160" Canvas.Right="0"/> Tag="{StaticResource tagCategoryStartMenu}"
Canvas.Top="160" Canvas.Left="0"/>
<uc:HamburgerCategoryButton Icon="{StaticResource iconHamburgerUwp}" <uc:HamburgerCategoryButton x:Name="buttonHamburgerUwp"
Icon="{StaticResource iconHamburgerUwp}"
Text="{DynamicResource textHamburgerUwp}" Text="{DynamicResource textHamburgerUwp}"
Width="{Binding ElementName=panelHamburger, Path=Width}" Width="{Binding ElementName=panelHamburger, Path=Width}"
TextMargin="0 0 10 1" TextMargin="0 0 10 1"
Canvas.Top="200" Canvas.Right="0" Loaded="HamburgerCategoryButton_Loaded"/> Tag="{StaticResource tagCategoryUwp}"
Canvas.Top="200" Canvas.Left="0" />
<uc:HamburgerCategoryButton Icon="{StaticResource iconHamburgerWinGame}" <uc:HamburgerCategoryButton Icon="{StaticResource iconHamburgerWinGame}"
Text="{DynamicResource textHamburgerWinGame}" Text="{DynamicResource textHamburgerWinGame}"
Width="{Binding ElementName=panelHamburger, Path=Width}" Width="{Binding ElementName=panelHamburger, Path=Width}"
TextMargin="0 0 10 4" TextMargin="0 0 10 4"
Canvas.Top="240" Canvas.Right="0"/> Tag="{StaticResource tagCategoryWinGame}"
Canvas.Top="240" Canvas.Left="0"/>
<uc:HamburgerCategoryButton Icon="{StaticResource iconHamburgerTaskScheduler}" <uc:HamburgerCategoryButton x:Name="buttonHamburgerTaskScheduler"
Icon="{StaticResource iconHamburgerTaskScheduler}"
Text="{DynamicResource textHamburgerTaskScheduler}" Text="{DynamicResource textHamburgerTaskScheduler}"
Width="{Binding ElementName=panelHamburger, Path=Width}" Width="{Binding ElementName=panelHamburger, Path=Width}"
TextMargin="0 0 10 2" TextMargin="0 0 10 2"
Canvas.Top="280" Canvas.Right="0"/> Tag="{StaticResource tagCategoryTaskScheduler}"
Canvas.Top="280" Canvas.Left="0"/>
<uc:HamburgerCategoryButton Icon="{StaticResource iconHamburgerDefender}" <uc:HamburgerCategoryButton x:Name="buttonHamburgerDefender"
Icon="{StaticResource iconHamburgerDefender}"
Text="{DynamicResource textHamburgerDefender}" Text="{DynamicResource textHamburgerDefender}"
Width="{Binding ElementName=panelHamburger, Path=Width}" Width="{Binding ElementName=panelHamburger, Path=Width}"
TextMargin="0 0 10 4" TextMargin="0 0 10 4"
Canvas.Top="320" Canvas.Right="0"/> Tag="{StaticResource tagCategoryDefender}"
Canvas.Top="320" Canvas.Left="0"/>
<uc:HamburgerCategoryButton Icon="{StaticResource iconHamburgerContextMenu}" <uc:HamburgerCategoryButton x:Name="buttonHamburgerContextMenu"
Icon="{StaticResource iconHamburgerContextMenu}"
Text="{DynamicResource textHamburgerContextMenu}" Text="{DynamicResource textHamburgerContextMenu}"
Width="{Binding ElementName=panelHamburger, Path=Width}" Width="{Binding ElementName=panelHamburger, Path=Width}"
TextMargin="0 0 10 3" TextMargin="0 0 10 3"
Canvas.Top="360" Canvas.Right="0"/> Tag="{StaticResource tagCategoryContextMenu}"
Canvas.Top="360" Canvas.Left="0"/>
<uc:HamburgerCategoryFlashButton x:Name="buttonHamburgerApplySettings"
IsEnabled="False"
Icon="{StaticResource iconHamburgerApplySettings}"
Text="{DynamicResource textHamburgerApply}"
Width="{Binding ElementName=panelHamburger, Path=Width}"
TextMargin="0 0 10 1"
Canvas.Bottom="0" Canvas.Left="0"/>
<uc:HamburgerCategoryButton x:Name="buttonHamburgerSaveSettings"
IsEnabled="False"
Icon="{StaticResource iconHamburgerSaveSettings}"
Text="{DynamicResource textHamburgerSave}"
Width="{Binding ElementName=panelHamburger, Path=Width}"
TextMargin="0 0 10 3"
Canvas.Bottom="40" Canvas.Left="0"/>
<uc:HamburgerCategoryButton x:Name="buttonHamburgerLoadSettings"
Icon="{StaticResource iconHamburgerLoadSettings}"
Text="{DynamicResource textHamburgerLoad}"
Width="{Binding ElementName=panelHamburger, Path=Width}"
TextMargin="0 0 10 3"
Canvas.Bottom="80" Canvas.Left="0"/>
</Canvas> </Canvas>
<!--#endregion Hamburger Panel--> <!--#endregion Hamburger Panel-->

15
W10SS_GUI_2/W10SS_GUI/Resource/Animations.xaml

@ -1,6 +1,7 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:W10SS_GUI.Resource"> xmlns:local="clr-namespace:W10SS_GUI.Resource">
<Storyboard x:Key="animationHamburgerOpen"> <Storyboard x:Key="animationHamburgerOpen">
<DoubleAnimation Storyboard.TargetProperty="(FrameworkElement.Width)" To="{StaticResource panelHamburgerMaxWidth}" Duration="0:0:0.3"/> <DoubleAnimation Storyboard.TargetProperty="(FrameworkElement.Width)" To="{StaticResource panelHamburgerMaxWidth}" Duration="0:0:0.3"/>
</Storyboard> </Storyboard>
@ -9,4 +10,16 @@
<DoubleAnimation Storyboard.TargetProperty="(FrameworkElement.Width)" To="{StaticResource panelHamburgerMinWidth}" Duration="0:0:0.3"/> <DoubleAnimation Storyboard.TargetProperty="(FrameworkElement.Width)" To="{StaticResource panelHamburgerMinWidth}" Duration="0:0:0.3"/>
</Storyboard> </Storyboard>
<Storyboard x:Key="animationHamburgerApplyButtonIsEnabled" Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)">
<ColorAnimation From="#e81123" To="#97020e" Duration="0:0:2" AutoReverse="True" RepeatBehavior="Forever" />
</Storyboard>
<Storyboard x:Key="animationHamburgerApplyButtonIsDisabled" Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)">
<ColorAnimation To="#353535" Duration="0:0:0.1" />
</Storyboard>
<Storyboard x:Key="animationHamburgerApplyHover" Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)">
<ColorAnimation To="#e81123" Duration="0:0:0.1" />
</Storyboard>
</ResourceDictionary> </ResourceDictionary>

15
W10SS_GUI_2/W10SS_GUI/Resource/constants.xaml

@ -0,0 +1,15 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:system="clr-namespace:System;assembly=mscorlib"
xmlns:local="clr-namespace:W10SS_GUI.Resource">
<system:String x:Key="tagCategoryPrivacy">categoryPrivacy</system:String>
<system:String x:Key="tagCategoryUi">categoryUi</system:String>
<system:String x:Key="tagCategoryOneDrive">categoryOneDrive</system:String>
<system:String x:Key="tagCategorySystem">categorySystem</system:String>
<system:String x:Key="tagCategoryStartMenu">categoryStartMenu</system:String>
<system:String x:Key="tagCategoryUwp">categoryUwp</system:String>
<system:String x:Key="tagCategoryWinGame">categoryWinGame</system:String>
<system:String x:Key="tagCategoryTaskScheduler">categoryTaskScheduler</system:String>
<system:String x:Key="tagCategoryDefender">categoryDefender</system:String>
<system:String x:Key="tagCategoryContextMenu">categoryContextMenu</system:String>
</ResourceDictionary>

6
W10SS_GUI_2/W10SS_GUI/Resource/controlsSize.xaml

@ -2,6 +2,12 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:system="clr-namespace:System;assembly=mscorlib" xmlns:system="clr-namespace:System;assembly=mscorlib"
xmlns:local="clr-namespace:W10SS_GUI.Controls"> xmlns:local="clr-namespace:W10SS_GUI.Controls">
<system:Double x:Key="windowMinHeight">863</system:Double>
<system:Double x:Key="windowHeight">863</system:Double>
<system:Double x:Key="windowMinWidth">800</system:Double>
<system:Double x:Key="windowWidth">800</system:Double>
<system:Double x:Key="windowFontSize">18</system:Double>
<system:Double x:Key="buttonHamburgerWidth">40</system:Double> <system:Double x:Key="buttonHamburgerWidth">40</system:Double>
<system:Double x:Key="buttonHamburgerHeight">40</system:Double> <system:Double x:Key="buttonHamburgerHeight">40</system:Double>
<system:Double x:Key="buttonHamburgerIconsSize">20</system:Double> <system:Double x:Key="buttonHamburgerIconsSize">20</system:Double>

3
W10SS_GUI_2/W10SS_GUI/Resource/icons.xaml

@ -12,4 +12,7 @@
<system:String x:Key="iconHamburgerTaskScheduler">&#xE823;</system:String> <system:String x:Key="iconHamburgerTaskScheduler">&#xE823;</system:String>
<system:String x:Key="iconHamburgerDefender">&#xE83D;</system:String> <system:String x:Key="iconHamburgerDefender">&#xE83D;</system:String>
<system:String x:Key="iconHamburgerContextMenu">&#xE292;</system:String> <system:String x:Key="iconHamburgerContextMenu">&#xE292;</system:String>
<system:String x:Key="iconHamburgerApplySettings">&#xE713;</system:String>
<system:String x:Key="iconHamburgerSaveSettings">&#xE74E;</system:String>
<system:String x:Key="iconHamburgerLoadSettings">&#xE896;</system:String>
</ResourceDictionary> </ResourceDictionary>

11
W10SS_GUI_2/W10SS_GUI/W10SS_GUI.csproj

@ -67,10 +67,18 @@
<SubType>Designer</SubType> <SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator> <Generator>MSBuild:Compile</Generator>
</Page> </Page>
<Page Include="Controls\HamburgerCategoryFlashButton.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Resource\animations.xaml"> <Page Include="Resource\animations.xaml">
<SubType>Designer</SubType> <SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator> <Generator>MSBuild:Compile</Generator>
</Page> </Page>
<Page Include="Resource\constants.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Resource\controls.xaml"> <Page Include="Resource\controls.xaml">
<SubType>Designer</SubType> <SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator> <Generator>MSBuild:Compile</Generator>
@ -98,6 +106,9 @@
<Compile Include="Controls\HamburgerCategoryButton.xaml.cs"> <Compile Include="Controls\HamburgerCategoryButton.xaml.cs">
<DependentUpon>HamburgerCategoryButton.xaml</DependentUpon> <DependentUpon>HamburgerCategoryButton.xaml</DependentUpon>
</Compile> </Compile>
<Compile Include="Controls\HamburgerCategoryFlashButton.xaml.cs">
<DependentUpon>HamburgerCategoryFlashButton.xaml</DependentUpon>
</Compile>
<Compile Include="MainWindow.xaml.cs"> <Compile Include="MainWindow.xaml.cs">
<DependentUpon>MainWindow.xaml</DependentUpon> <DependentUpon>MainWindow.xaml</DependentUpon>
<SubType>Code</SubType> <SubType>Code</SubType>

Loading…
Cancel
Save