Skip to content

Portable Tool for an Ideal Windows Setup

add taskbar screen position tweak fix critical locale-dependent edition detection & vbs association

Greedekscec725fc42dd
diff --git a/.Source/GTweak/Assets/UserControls/TaskbarPositionPicker.xaml b/.Source/GTweak/Assets/UserControls/TaskbarPositionPicker.xaml
index 1ace6f7e..783af9b1 100644
--- a/.Source/GTweak/Assets/UserControls/TaskbarPositionPicker.xaml
+++ b/.Source/GTweak/Assets/UserControls/TaskbarPositionPicker.xaml
@@ -1,30 +1,61 @@
<UserControl x:Class="GTweak.Assets.UserControls.TaskbarPositionPicker"
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"
- mc:Ignorable="d" x:Name="Root" Width="48" Height="40"
- SnapsToDevicePixels="True" UseLayoutRounding="True" BorderBrush="{StaticResource Brush_Separator}">
- <Viewbox Stretch="Uniform">
- <Grid Margin="3">
- <Rectangle RadiusX="7" RadiusY="7" Fill="{StaticResource Brush_ShadowOverlay}" Opacity="0.7">
- <Rectangle.RenderTransform>
- <TranslateTransform X="1.5" Y="1.5"/>
- </Rectangle.RenderTransform>
- </Rectangle>
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ mc:Ignorable="d" Height="32"
+ x:Name="Root" SnapsToDevicePixels="True" UseLayoutRounding="True" BorderBrush="{StaticResource Brush_Separator}">
+ <Grid Height="32">
+ <Rectangle RadiusX="6" RadiusY="6" Stroke="{Binding BorderBrush, ElementName=Root}" StrokeThickness="1" Fill="{StaticResource Brush_Background_ComboBox}" IsHitTestVisible="False"/>
+ <Grid>
+ <Grid.ColumnDefinitions>
+ <ColumnDefinition Width="Auto"/>
+ <ColumnDefinition Width="Auto"/>
+ </Grid.ColumnDefinitions>
+
+ <Grid Grid.Column="0" Margin="12,0,10,0" VerticalAlignment="Center">
+ <Grid Visibility="Hidden" IsHitTestVisible="False">
+ <TextBlock Text="{DynamicResource TaskbarPos_Left_intf}" FontSize="14px" FontFamily="{StaticResource Jura}"/>
+ <TextBlock Text="{DynamicResource TaskbarPos_Top_intf}" FontSize="14px" FontFamily="{StaticResource Jura}"/>
+ <TextBlock Text="{DynamicResource TaskbarPos_Right_intf}" FontSize="14px" FontFamily="{StaticResource Jura}"/>
+ <TextBlock Text="{DynamicResource TaskbarPos_Bottom_intf}" FontSize="14px" FontFamily="{StaticResource Jura}"/>
+ </Grid>
+
+ <TextBlock x:Name="PositionLabel" VerticalAlignment="Center" HorizontalAlignment="Left" FontSize="14px" FontFamily="{StaticResource Jura}" Foreground="{StaticResource Brush_Highlighted}">
+ <TextBlock.Style>
+ <Style TargetType="TextBlock">
+ <Setter Property="Text" Value="{DynamicResource TaskbarPos_Bottom_intf}"/>
+ <Style.Triggers>
+ <DataTrigger Binding="{Binding Position, ElementName=Root}" Value="0">
+ <Setter Property="Text" Value="{DynamicResource TaskbarPos_Left_intf}"/>
+ </DataTrigger>
+ <DataTrigger Binding="{Binding Position, ElementName=Root}" Value="1">
+ <Setter Property="Text" Value="{DynamicResource TaskbarPos_Top_intf}"/>
+ </DataTrigger>
+ <DataTrigger Binding="{Binding Position, ElementName=Root}" Value="2">
+ <Setter Property="Text" Value="{DynamicResource TaskbarPos_Right_intf}"/>
+ </DataTrigger>
+ <DataTrigger Binding="{Binding Position, ElementName=Root}" Value="3">
+ <Setter Property="Text" Value="{DynamicResource TaskbarPos_Bottom_intf}"/>
+ </DataTrigger>
+ </Style.Triggers>
+ </Style>
+ </TextBlock.Style>
+ </TextBlock>
+ </Grid>
+
+ <Grid Grid.Column="1" Width="40" Height="32" Margin="0,0,5,0">
+ <Path Data="M 0,0 L 20,16 L 0,32 Z" Tag="0" Fill="Transparent" Cursor="Hand" ToolTip="{DynamicResource TaskbarPos_Left_intf}" MouseLeftButtonDown="Sector_MouseLeftButtonDown"/>
+ <Path Data="M 0,0 L 40,0 L 20,16 Z" Tag="1" Fill="Transparent" Cursor="Hand" ToolTip="{DynamicResource TaskbarPos_Top_intf}" MouseLeftButtonDown="Sector_MouseLeftButtonDown"/>
+ <Path Data="M 40,0 L 20,16 L 40,32 Z" Tag="2" Fill="Transparent" Cursor="Hand" ToolTip="{DynamicResource TaskbarPos_Right_intf}" MouseLeftButtonDown="Sector_MouseLeftButtonDown"/>
+ <Path Data="M 0,32 L 40,32 L 20,16 Z" Tag="3" Fill="Transparent" Cursor="Hand" ToolTip="{DynamicResource TaskbarPos_Bottom_intf}" MouseLeftButtonDown="Sector_MouseLeftButtonDown"/>
- <Grid Width="46" Height="36">
- <Rectangle RadiusX="7" RadiusY="7" Stroke="{Binding BorderBrush, ElementName=Root}" StrokeThickness="1" Fill="{StaticResource Brush_Background_ComboBox}" IsHitTestVisible="False"/>
- <Path Data="M 0,0 L 23,18 L 0,36 Z" Tag="0" Fill="Transparent" Cursor="Hand" MouseLeftButtonDown="Sector_MouseLeftButtonDown"/>
- <Path Data="M 0,0 L 46,0 L 23,18 Z" Tag="1" Fill="Transparent" Cursor="Hand" MouseLeftButtonDown="Sector_MouseLeftButtonDown"/>
- <Path Data="M 46,0 L 23,18 L 46,36 Z" Tag="2" Fill="Transparent" Cursor="Hand" MouseLeftButtonDown="Sector_MouseLeftButtonDown"/>
- <Path Data="M 0,36 L 46,36 L 23,18 Z" Tag="3" Fill="Transparent" Cursor="Hand" MouseLeftButtonDown="Sector_MouseLeftButtonDown"/>
-
<Grid IsHitTestVisible="False">
- <Rectangle Fill="{StaticResource Brush_Separator}" RadiusX="1.25" RadiusY="1.25" Width="2.5" Height="9" HorizontalAlignment="Left" Margin="3.5,0,0,0"/>
- <Rectangle Fill="{StaticResource Brush_Separator}" RadiusX="1.25" RadiusY="1.25" Width="12" Height="2.5" VerticalAlignment="Top" Margin="0,3.5,0,0"/>
- <Rectangle Fill="{StaticResource Brush_Separator}" RadiusX="1.25" RadiusY="1.25" Width="2.5" Height="9" HorizontalAlignment="Right" Margin="0,0,3.5,0"/>
- <Rectangle Fill="{StaticResource Brush_Separator}" RadiusX="1.25" RadiusY="1.25" Width="12" Height="2.5" VerticalAlignment="Bottom" Margin="0,0,0,3.5"/>
+ <Rectangle Fill="{StaticResource Brush_Separator}" RadiusX="1.25" RadiusY="1.25" Width="2.5" Height="10" HorizontalAlignment="Left" Margin="3,0,0,0"/>
+ <Rectangle Fill="{StaticResource Brush_Separator}" RadiusX="1.25" RadiusY="1.25" Width="12" Height="2.5" VerticalAlignment="Top" Margin="0,3,0,0"/>
+ <Rectangle Fill="{StaticResource Brush_Separator}" RadiusX="1.25" RadiusY="1.25" Width="2.5" Height="10" HorizontalAlignment="Right" Margin="0,0,3,0"/>
+ <Rectangle Fill="{StaticResource Brush_Separator}" RadiusX="1.25" RadiusY="1.25" Width="12" Height="2.5" VerticalAlignment="Bottom" Margin="0,0,0,3"/>
+
<Rectangle x:Name="PositionIndicator" Fill="{StaticResource Brush_Accent}" RadiusX="1.25" RadiusY="1.25" RenderTransformOrigin="0.5, 0.5">
<Rectangle.RenderTransform>
<ScaleTransform/>
@@ -35,43 +66,44 @@
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="Width" Value="12"/>
<Setter Property="Height" Value="2.5"/>
- <Setter Property="Margin" Value="0,0,0,3.5"/>
+ <Setter Property="Margin" Value="0,0,0,3"/>
<Style.Triggers>
<DataTrigger Binding="{Binding Position, ElementName=Root}" Value="0">
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="HorizontalAlignment" Value="Left"/>
<Setter Property="Width" Value="2.5"/>
- <Setter Property="Height" Value="9"/>
- <Setter Property="Margin" Value="3.5,0,0,0"/>
+ <Setter Property="Height" Value="10"/>
+ <Setter Property="Margin" Value="3,0,0,0"/>
</DataTrigger>
<DataTrigger Binding="{Binding Position, ElementName=Root}" Value="1">
<Setter Property="VerticalAlignment" Value="Top"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="Width" Value="12"/>
<Setter Property="Height" Value="2.5"/>
- <Setter Property="Margin" Value="0,3.5,0,0"/>
+ <Setter Property="Margin" Value="0,3,0,0"/>
</DataTrigger>
<DataTrigger Binding="{Binding Position, ElementName=Root}" Value="2">
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="HorizontalAlignment" Value="Right"/>
<Setter Property="Width" Value="2.5"/>
- <Setter Property="Height" Value="9"/>
- <Setter Property="Margin" Value="0,0,3.5,0"/>
+ <Setter Property="Height" Value="10"/>
+ <Setter Property="Margin" Value="0,0,3,0"/>
</DataTrigger>
<DataTrigger Binding="{Binding Position, ElementName=Root}" Value="3">
<Setter Property="VerticalAlignment" Value="Bottom"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="Width" Value="12"/>
<Setter Property="Height" Value="2.5"/>
- <Setter Property="Margin" Value="0,0,0,3.5"/>
+ <Setter Property="Margin" Value="0,0,0,3"/>
</DataTrigger>
</Style.Triggers>
</Style>
</Rectangle.Style>
</Rectangle>
- <Grid Width="28" Height="18">
+ <Grid Width="24" Height="16">
<Rectangle RadiusX="3" RadiusY="3" Stroke="{StaticResource Brush_Separator}" StrokeThickness="1.5"/>
+
<Rectangle x:Name="TaskbarIndicator" Fill="{StaticResource Brush_Accent}" RenderTransformOrigin="0.5, 0.5" RadiusX="1.5" RadiusY="1.5">
<Rectangle.RenderTransform>
<ScaleTransform/>
@@ -117,9 +149,8 @@
</Rectangle.Style>
</Rectangle>
</Grid>
-
</Grid>
</Grid>
</Grid>
- </Viewbox>
+ </Grid>
</UserControl>
\ No newline at end of file
diff --git a/.Source/GTweak/Assets/UserControls/TaskbarPositionPicker.xaml.cs b/.Source/GTweak/Assets/UserControls/TaskbarPositionPicker.xaml.cs
index 6810ed33..a6ddd68f 100644
--- a/.Source/GTweak/Assets/UserControls/TaskbarPositionPicker.xaml.cs
+++ b/.Source/GTweak/Assets/UserControls/TaskbarPositionPicker.xaml.cs
@@ -1,3 +1,4 @@
+using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
@@ -9,6 +10,8 @@ namespace GTweak.Assets.UserControls
{
public partial class TaskbarPositionPicker : UserControl
{
+ public event EventHandler PositionPicked;
+
private static readonly DoubleAnimation _doubleAnim = AnimationFactory.CreateIn(0.4, 1.0, 0.2, useCubicEase: true);
internal static readonly DependencyProperty PositionProperty =
@@ -38,14 +41,12 @@ namespace GTweak.Assets.UserControls
private void Sector_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
- if (sender is FrameworkElement elem && elem.Tag is string tag)
+ if (sender is FrameworkElement elem && elem.Tag is string tag && int.TryParse(tag, out var pos))
{
- switch (tag)
+ if (Position != pos)
{
- case "0": Position = 0; break;
- case "1": Position = 1; break;
- case "2": Position = 2; break;
- case "3": Position = 3; break;
+ Position = pos;
+ PositionPicked?.Invoke(this, EventArgs.Empty);
}
}
}
diff --git a/.Source/GTweak/Core/ViewModel/InterfaceViewModel.cs b/.Source/GTweak/Core/ViewModel/InterfaceViewModel.cs
index 49ed8828..8d5c7a9b 100644
--- a/.Source/GTweak/Core/ViewModel/InterfaceViewModel.cs
+++ b/.Source/GTweak/Core/ViewModel/InterfaceViewModel.cs
@@ -12,7 +12,8 @@ namespace GTweak.Core.ViewModel
{
public IReadOnlyDictionary<string, ImageSource> Icons { get; }
public Visibility Win11FeatureOnly => HardwareData.OS.IsWin11 ? Visibility.Visible : Visibility.Collapsed;
- public Visibility Win11FeatureAvailable => HardwareData.OS.IsWin11 && HardwareData.OS.Build.CompareTo(22621.2361m) >= 0 ? Visibility.Visible : Visibility.Collapsed;
+ public Visibility TaskbarEndTaskAvailable => HardwareData.OS.IsWin11 && HardwareData.OS.Build.CompareTo(22621.2361m) >= 0 ? Visibility.Visible : Visibility.Collapsed;
+ public Visibility TaskbarPositionAvailable => HardwareData.OS.IsWin10 || (HardwareData.OS.IsWin11 && HardwareData.OS.Build.CompareTo(26200.9550m) >= 0) ? Visibility.Visible : Visibility.Collapsed;
public Visibility OneDriveAvailable => AppxPackageHandler.IsOneDriveInstalled ? Visibility.Visible : Visibility.Collapsed;
protected override void Analyze(InterfaceTweaks tweaks) => tweaks?.CheckAll();
diff --git a/.Source/GTweak/Languages/en/Localize.xaml b/.Source/GTweak/Languages/en/Localize.xaml
index 8d0931ea..910ab96d 100644
--- a/.Source/GTweak/Languages/en/Localize.xaml
+++ b/.Source/GTweak/Languages/en/Localize.xaml
@@ -238,6 +238,12 @@
<v:String x:Key="FolderMusic_intf">Music</v:String>
<v:String x:Key="FolderVideo_intf">Videos</v:String>
+ <v:String x:Key="TaskbarPosition_intf">Taskbar location:</v:String>
+ <v:String x:Key="TaskbarPos_Bottom_intf">Bottom</v:String>
+ <v:String x:Key="TaskbarPos_Top_intf">Top</v:String>
+ <v:String x:Key="TaskbarPos_Left_intf">Left</v:String>
+ <v:String x:Key="TaskbarPos_Right_intf">Right</v:String>
+
<v:String x:Key="SystemButtonSize_intf">Standard size of the system buttons</v:String>
<v:String x:Key="CursorFlickerFrequency_intf">Standard cursor flicker frequency</v:String>
<v:String x:Key="ScrollbarSize_intf">Standard scrollbar size</v:String>
@@ -266,6 +272,7 @@
<v:String x:Key="OpenQuickAccess_intf">Open «Quick Access» instead of «This PC»</v:String>
<v:String x:Key="AdaptiveBrightness_intf">Spontaneous brightness changes</v:String>
+ <v:String x:Key="desc_TaskbarPosition_intf">Changes the taskbar location on the screen, allowing you to place it at the bottom, top, left, or right edge. Note that the screen may flicker.</v:String>
<v:String x:Key="desc_CursorSelection_intf">Changes the background color when selecting text or objects with the cursor in the system.</v:String>
<v:String x:Key="desc_Tooltip_intf">Changes the color of tooltips in supported applications.</v:String>
<v:String x:Key="desc_NavigationItems_intf">Changes the visibility of built-in system items in the navigation pane that cannot be unpinned by conventional means.</v:String>
diff --git a/.Source/GTweak/Languages/fr/Localize.xaml b/.Source/GTweak/Languages/fr/Localize.xaml
index 392fcbe0..e0b41a78 100644
--- a/.Source/GTweak/Languages/fr/Localize.xaml
+++ b/.Source/GTweak/Languages/fr/Localize.xaml
@@ -238,6 +238,12 @@
<v:String x:Key="FolderMusic_intf">Musique</v:String>
<v:String x:Key="FolderVideo_intf">Vidéos</v:String>
+ <v:String x:Key="TaskbarPosition_intf">Taskbar location:</v:String>
+ <v:String x:Key="TaskbarPos_Bottom_intf">Bottom</v:String>
+ <v:String x:Key="TaskbarPos_Top_intf">Top</v:String>
+ <v:String x:Key="TaskbarPos_Left_intf">Left</v:String>
+ <v:String x:Key="TaskbarPos_Right_intf">Right</v:String>
+
<v:String x:Key="SystemButtonSize_intf">Taille standard des boutons système</v:String>
<v:String x:Key="CursorFlickerFrequency_intf">Fréquence de clignotement standard du curseur</v:String>
<v:String x:Key="ScrollbarSize_intf">Taille standard de la barre de défilement</v:String>
@@ -266,6 +272,7 @@
<v:String x:Key="OpenQuickAccess_intf">Ouvrir « Accès rapide » au lieu de « Ce PC »</v:String>
<v:String x:Key="AdaptiveBrightness_intf">Changements de luminosité spontanés</v:String>
+ <v:String x:Key="desc_TaskbarPosition_intf">Changes the taskbar location on the screen, allowing you to place it at the bottom, top, left, or right edge. Note that the screen may flicker.</v:String>
<v:String x:Key="desc_CursorSelection_intf">Modifie la couleur d'arrière-plan lors de la sélection de texte ou d'objets avec le curseur dans le système.</v:String>
<v:String x:Key="desc_Tooltip_intf">Modifie la couleur des infobulles dans les applications prises en charge.</v:String>
<v:String x:Key="desc_NavigationItems_intf">Modifie la visibilité des éléments système intégrés dans le volet de navigation, qui ne peuvent pas être détachés par les moyens habituels.</v:String>
diff --git a/.Source/GTweak/Languages/he/Localize.xaml b/.Source/GTweak/Languages/he/Localize.xaml
index 5a9ebb8d..01eb0b13 100644
--- a/.Source/GTweak/Languages/he/Localize.xaml
+++ b/.Source/GTweak/Languages/he/Localize.xaml
@@ -238,6 +238,12 @@
<v:String x:Key="FolderMusic_intf">מוסיקה</v:String>
<v:String x:Key="FolderVideo_intf">סרטוני וידאו</v:String>
+ <v:String x:Key="TaskbarPosition_intf">Taskbar location:</v:String>
+ <v:String x:Key="TaskbarPos_Bottom_intf">Bottom</v:String>
+ <v:String x:Key="TaskbarPos_Top_intf">Top</v:String>
+ <v:String x:Key="TaskbarPos_Left_intf">Left</v:String>
+ <v:String x:Key="TaskbarPos_Right_intf">Right</v:String>
+
<v:String x:Key="SystemButtonSize_intf">גודל סטנדרטי של כפתורי המערכת</v:String>
<v:String x:Key="CursorFlickerFrequency_intf">תדירות מהבהוב סטנדרטית של הסמן</v:String>
<v:String x:Key="ScrollbarSize_intf">גודל פס גלילה סטנדרטי</v:String>
@@ -266,6 +272,7 @@
<v:String x:Key="OpenQuickAccess_intf">פתח את «גישה מהירה» במקום «מחשב זה»</v:String>
<v:String x:Key="AdaptiveBrightness_intf">שינויי בהירות ספונטניים</v:String>
+ <v:String x:Key="desc_TaskbarPosition_intf">Changes the taskbar location on the screen, allowing you to place it at the bottom, top, left, or right edge. Note that the screen may flicker.</v:String>
<v:String x:Key="desc_CursorSelection_intf">משנה את צבע הרקע בעת בחירת טקסט או אובייקטים עם הסמן במערכת.</v:String>
<v:String x:Key="desc_Tooltip_intf">משנה את צבע חלוניות העזרה ביישומים נתמכים.</v:String>
<v:String x:Key="desc_NavigationItems_intf">משנה את הנראות של פריטי המערכת המובנים בחלונית הניווט שאינם ניתנים לביטול הצמדה באמצעים רגילים.</v:String>
diff --git a/.Source/GTweak/Languages/hu/Localize.xaml b/.Source/GTweak/Languages/hu/Localize.xaml
index 0b9bc13f..cdedec65 100644
--- a/.Source/GTweak/Languages/hu/Localize.xaml
+++ b/.Source/GTweak/Languages/hu/Localize.xaml
@@ -238,6 +238,12 @@
<v:String x:Key="FolderMusic_intf">Zenék</v:String>
<v:String x:Key="FolderVideo_intf">Videók</v:String>
+ <v:String x:Key="TaskbarPosition_intf">Taskbar location:</v:String>
+ <v:String x:Key="TaskbarPos_Bottom_intf">Bottom</v:String>
+ <v:String x:Key="TaskbarPos_Top_intf">Top</v:String>
+ <v:String x:Key="TaskbarPos_Left_intf">Left</v:String>
+ <v:String x:Key="TaskbarPos_Right_intf">Right</v:String>
+
<v:String x:Key="SystemButtonSize_intf">A rendszergombok szabványos mérete</v:String>
<v:String x:Key="CursorFlickerFrequency_intf">A kurzor normál villogási frekvenciája</v:String>
<v:String x:Key="ScrollbarSize_intf">Normál görgetősáv mérete</v:String>
@@ -266,6 +272,7 @@
<v:String x:Key="OpenQuickAccess_intf">Nyissa meg a «Gyors hozzáférés»-t «Ez a gép» helyett</v:String>
<v:String x:Key="AdaptiveBrightness_intf">Spontán fényerőváltozások</v:String>
+ <v:String x:Key="desc_TaskbarPosition_intf">Changes the taskbar location on the screen, allowing you to place it at the bottom, top, left, or right edge. Note that the screen may flicker.</v:String>
<v:String x:Key="desc_CursorSelection_intf">Módosítja a háttérszínt a szövegek vagy objektumok kurzorral történő kijelölésekor a rendszerben.</v:String>
<v:String x:Key="desc_Tooltip_intf">Módosítja a buboréksúgók színét a támogatott alkalmazásokban.</v:String>
<v:String x:Key="desc_NavigationItems_intf">Módosítja a beépített rendszer-elemek megjelenését a Fájlkezelő navigációs paneljén, amelyeket nem lehet a szokásos módon eltávolítani.</v:String>
diff --git a/.Source/GTweak/Languages/it/Localize.xaml b/.Source/GTweak/Languages/it/Localize.xaml
index 39bf834b..7e1f07f1 100644
--- a/.Source/GTweak/Languages/it/Localize.xaml
+++ b/.Source/GTweak/Languages/it/Localize.xaml
@@ -238,6 +238,12 @@
<v:String x:Key="FolderMusic_intf">Musica</v:String>
<v:String x:Key="FolderVideo_intf">Video</v:String>
+ <v:String x:Key="TaskbarPosition_intf">Taskbar location:</v:String>
+ <v:String x:Key="TaskbarPos_Bottom_intf">Bottom</v:String>
+ <v:String x:Key="TaskbarPos_Top_intf">Top</v:String>
+ <v:String x:Key="TaskbarPos_Left_intf">Left</v:String>
+ <v:String x:Key="TaskbarPos_Right_intf">Right</v:String>
+
<v:String x:Key="SystemButtonSize_intf">Dimensione standard dei pulsanti di sistema</v:String>
<v:String x:Key="CursorFlickerFrequency_intf">Frequenza standard del lampeggio del cursore</v:String>
<v:String x:Key="ScrollbarSize_intf">Dimensione standard della barra di scorrimento</v:String>
@@ -266,6 +272,7 @@
<v:String x:Key="OpenQuickAccess_intf">Apri «Accesso rapido» invece di «Questo PC»</v:String>
<v:String x:Key="AdaptiveBrightness_intf">Cambiamenti improvvisi di luminosità</v:String>
+ <v:String x:Key="desc_TaskbarPosition_intf">Changes the taskbar location on the screen, allowing you to place it at the bottom, top, left, or right edge. Note that the screen may flicker.</v:String>
<v:String x:Key="desc_CursorSelection_intf">Modifica il colore di sfondo durante la selezione di testo o oggetti con il cursore nel sistema.</v:String>
<v:String x:Key="desc_Tooltip_intf">Modifica il colore dei suggerimenti nelle applicazioni supportate.</v:String>
<v:String x:Key="desc_NavigationItems_intf">Modifica la visibilità degli elementi di sistema integrati nel riquadro di navigazione che non possono essere rimossi con i metodi convenzionali.</v:String>
diff --git a/.Source/GTweak/Languages/ko/Localize.xaml b/.Source/GTweak/Languages/ko/Localize.xaml
index c8954008..f17a17db 100644
--- a/.Source/GTweak/Languages/ko/Localize.xaml
+++ b/.Source/GTweak/Languages/ko/Localize.xaml
@@ -238,6 +238,12 @@
<v:String x:Key="FolderMusic_intf">음악</v:String>
<v:String x:Key="FolderVideo_intf">동영상</v:String>
+ <v:String x:Key="TaskbarPosition_intf">Taskbar location:</v:String>
+ <v:String x:Key="TaskbarPos_Bottom_intf">Bottom</v:String>
+ <v:String x:Key="TaskbarPos_Top_intf">Top</v:String>
+ <v:String x:Key="TaskbarPos_Left_intf">Left</v:String>
+ <v:String x:Key="TaskbarPos_Right_intf">Right</v:String>
+
<v:String x:Key="SystemButtonSize_intf">시스템 버튼의 표준 크기</v:String>
<v:String x:Key="CursorFlickerFrequency_intf">표준 커서 깜박임 빈도</v:String>
<v:String x:Key="ScrollbarSize_intf">표준 스크롤 막대 크기</v:String>
@@ -266,6 +272,7 @@
<v:String x:Key="OpenQuickAccess_intf">«내 PC» 대신 «빠른 액세스» 열기</v:String>
<v:String x:Key="AdaptiveBrightness_intf">자발적인 밝기 변화</v:String>
+ <v:String x:Key="desc_TaskbarPosition_intf">Changes the taskbar location on the screen, allowing you to place it at the bottom, top, left, or right edge. Note that the screen may flicker.</v:String>
<v:String x:Key="desc_CursorSelection_intf">시스템에서 커서로 텍스트나 개체를 선택할 때의 배경 색상을 변경합니다.</v:String>
<v:String x:Key="desc_Tooltip_intf">지원되는 애플리케이션에서 도구 설명의 색상을 변경합니다.</v:String>
<v:String x:Key="desc_NavigationItems_intf">일반적인 방법으로 고정 해제할 수 없는 내장 시스템 항목의 탐색 창 표시 여부를 변경합니다.</v:String>
diff --git a/.Source/GTweak/Languages/pl/Localize.xaml b/.Source/GTweak/Languages/pl/Localize.xaml
index 3aea4920..4a827d48 100644
--- a/.Source/GTweak/Languages/pl/Localize.xaml
+++ b/.Source/GTweak/Languages/pl/Localize.xaml
@@ -238,6 +238,12 @@
<v:String x:Key="FolderMusic_intf">Muzyka</v:String>
<v:String x:Key="FolderVideo_intf">Wideo</v:String>
+ <v:String x:Key="TaskbarPosition_intf">Taskbar location:</v:String>
+ <v:String x:Key="TaskbarPos_Bottom_intf">Bottom</v:String>
+ <v:String x:Key="TaskbarPos_Top_intf">Top</v:String>
+ <v:String x:Key="TaskbarPos_Left_intf">Left</v:String>
+ <v:String x:Key="TaskbarPos_Right_intf">Right</v:String>
+
<v:String x:Key="SystemButtonSize_intf">Standardowy rozmiar przycisków systemowych</v:String>
<v:String x:Key="CursorFlickerFrequency_intf">Standardowa częstotliwość migania kursora</v:String>
<v:String x:Key="ScrollbarSize_intf">Standardowy rozmiar paska przewijania</v:String>
@@ -266,6 +272,7 @@
<v:String x:Key="OpenQuickAccess_intf">Otwieraj «Szybki dostęp» zamiast «Ten komputer»</v:String>
<v:String x:Key="AdaptiveBrightness_intf">Samoczynne zmiany jasności</v:String>
+ <v:String x:Key="desc_TaskbarPosition_intf">Changes the taskbar location on the screen, allowing you to place it at the bottom, top, left, or right edge. Note that the screen may flicker.</v:String>
<v:String x:Key="desc_CursorSelection_intf">Zmienia kolor tła podczas zaznaczania tekstu lub obiektów kursorem w systemie.</v:String>
<v:String x:Key="desc_Tooltip_intf">Zmienia kolor podpowiedzi w obsługiwanych aplikacjach.</v:String>
<v:String x:Key="desc_NavigationItems_intf">Zmienia widoczność wbudowanych elementów systemowych w panelu nawigacji, których nie można odpiąć zwykłymi metodami.</v:String>
diff --git a/.Source/GTweak/Languages/pt-BR/Localize.xaml b/.Source/GTweak/Languages/pt-BR/Localize.xaml
index acabc3d9..f4bcf1fe 100644
--- a/.Source/GTweak/Languages/pt-BR/Localize.xaml
+++ b/.Source/GTweak/Languages/pt-BR/Localize.xaml
@@ -238,6 +238,12 @@
<v:String x:Key="FolderMusic_intf">Músicas</v:String>
<v:String x:Key="FolderVideo_intf">Vídeos</v:String>
+ <v:String x:Key="TaskbarPosition_intf">Taskbar location:</v:String>
+ <v:String x:Key="TaskbarPos_Bottom_intf">Bottom</v:String>
+ <v:String x:Key="TaskbarPos_Top_intf">Top</v:String>
+ <v:String x:Key="TaskbarPos_Left_intf">Left</v:String>
+ <v:String x:Key="TaskbarPos_Right_intf">Right</v:String>
+
<v:String x:Key="SystemButtonSize_intf">Tamanho padrão dos botões do sistema</v:String>
<v:String x:Key="CursorFlickerFrequency_intf">Frequência de piscar padrão do cursor</v:String>
<v:String x:Key="ScrollbarSize_intf">Tamanho padrão da barra de rolagem</v:String>
@@ -266,6 +272,7 @@
<v:String x:Key="OpenQuickAccess_intf">Abrir "Acesso rápido" em vez de "Este Computador"</v:String>
<v:String x:Key="AdaptiveBrightness_intf">Mudanças espontâneas de brilho</v:String>
+ <v:String x:Key="desc_TaskbarPosition_intf">Changes the taskbar location on the screen, allowing you to place it at the bottom, top, left, or right edge. Note that the screen may flicker.</v:String>
<v:String x:Key="desc_CursorSelection_intf">Altera a cor de fundo ao selecionar texto ou objetos com o cursor no sistema.</v:String>
<v:String x:Key="desc_Tooltip_intf">Altera a cor das dicas de ferramenta (tooltip) em aplicativos compatíveis.</v:String>
<v:String x:Key="desc_NavigationItems_intf">Altera a visibilidade dos itens de sistema incorporados no painel de navegação que não podem ser desfixados por meios convencionais.</v:String>
diff --git a/.Source/GTweak/Languages/ru/Localize.xaml b/.Source/GTweak/Languages/ru/Localize.xaml
index 927e2285..33e7f64b 100644
--- a/.Source/GTweak/Languages/ru/Localize.xaml
+++ b/.Source/GTweak/Languages/ru/Localize.xaml
@@ -238,6 +238,12 @@
<v:String x:Key="FolderMusic_intf">Музыка</v:String>
<v:String x:Key="FolderVideo_intf">Видео</v:String>
+ <v:String x:Key="TaskbarPosition_intf">Расположение панели задач:</v:String>
+ <v:String x:Key="TaskbarPos_Bottom_intf">Снизу</v:String>
+ <v:String x:Key="TaskbarPos_Top_intf">Сверху</v:String>
+ <v:String x:Key="TaskbarPos_Left_intf">Слева</v:String>
+ <v:String x:Key="TaskbarPos_Right_intf">Справа</v:String>
+
<v:String x:Key="SystemButtonSize_intf">Стандартный размер системных кнопок</v:String>
<v:String x:Key="CursorFlickerFrequency_intf">Стандартная частота мерцания курсора</v:String>
<v:String x:Key="ScrollbarSize_intf">Стандартный размер полосы прокрутки</v:String>
@@ -266,6 +272,7 @@
<v:String x:Key="OpenQuickAccess_intf">Открывать «Быстрый доступ» вместо «Этот компьютер»</v:String>
<v:String x:Key="AdaptiveBrightness_intf">Самопроизвольное изменение яркости</v:String>
+ <v:String x:Key="desc_TaskbarPosition_intf">Изменяет расположение панели задач на экране, позволяя закрепить её у нижнего, верхнего, левого или правого края. Обратите внимание, что экран может мигать.</v:String>
<v:String x:Key="desc_CursorSelection_intf">Изменяет цвет фона при выделении текста или объектов курсором в системе.</v:String>
<v:String x:Key="desc_Tooltip_intf">Изменяет цвет всплывающих подсказок в поддерживаемых приложениях.</v:String>
<v:String x:Key="desc_NavigationItems_intf">Изменяет отображение встроенных системных элементов в области навигации, которые нельзя открепить обычным способом.</v:String>
diff --git a/.Source/GTweak/Languages/sl-SI/Localize.xaml b/.Source/GTweak/Languages/sl-SI/Localize.xaml
index 14fb19a4..c1490a05 100644
--- a/.Source/GTweak/Languages/sl-SI/Localize.xaml
+++ b/.Source/GTweak/Languages/sl-SI/Localize.xaml
@@ -238,6 +238,12 @@
<v:String x:Key="FolderMusic_intf">Glasba</v:String>
<v:String x:Key="FolderVideo_intf">Videoposnetki</v:String>
+ <v:String x:Key="TaskbarPosition_intf">Taskbar location:</v:String>
+ <v:String x:Key="TaskbarPos_Bottom_intf">Bottom</v:String>
+ <v:String x:Key="TaskbarPos_Top_intf">Top</v:String>
+ <v:String x:Key="TaskbarPos_Left_intf">Left</v:String>
+ <v:String x:Key="TaskbarPos_Right_intf">Right</v:String>
+
<v:String x:Key="SystemButtonSize_intf">Standardna velikost sistemskih gumbov</v:String>
<v:String x:Key="CursorFlickerFrequency_intf">Standardna frekvenca utripanja kazalca</v:String>
<v:String x:Key="ScrollbarSize_intf">Standardna velikost drsnega traku</v:String>
@@ -266,6 +272,7 @@
<v:String x:Key="OpenQuickAccess_intf">Odpri "Hitri dostop" namesto "Ta računalnik"</v:String>
<v:String x:Key="AdaptiveBrightness_intf">Spontane spremembe svetlosti</v:String>
+ <v:String x:Key="desc_TaskbarPosition_intf">Changes the taskbar location on the screen, allowing you to place it at the bottom, top, left, or right edge. Note that the screen may flicker.</v:String>
<v:String x:Key="desc_CursorSelection_intf">Spremeni barvo ozadja pri izbiranju besedila ali predmetov s kazalcem v sistemu.</v:String>
<v:String x:Key="desc_Tooltip_intf">Spremeni barvo namigov v podprtih aplikacijah.</v:String>
<v:String x:Key="desc_NavigationItems_intf">Spremeni vidnost vgrajenih sistemskih elementov v navigacijskem podoknu, ki jih ni mogoče odpeti z običajnimi sredstvi.</v:String>
diff --git a/.Source/GTweak/Languages/th/Localize.xaml b/.Source/GTweak/Languages/th/Localize.xaml
index 139d28df..63aba53e 100644
--- a/.Source/GTweak/Languages/th/Localize.xaml
+++ b/.Source/GTweak/Languages/th/Localize.xaml
@@ -238,6 +238,12 @@
<v:String x:Key="FolderMusic_intf">เพลง</v:String>
<v:String x:Key="FolderVideo_intf">วิดีโอ</v:String>
+ <v:String x:Key="TaskbarPosition_intf">Taskbar location:</v:String>
+ <v:String x:Key="TaskbarPos_Bottom_intf">Bottom</v:String>
+ <v:String x:Key="TaskbarPos_Top_intf">Top</v:String>
+ <v:String x:Key="TaskbarPos_Left_intf">Left</v:String>
+ <v:String x:Key="TaskbarPos_Right_intf">Right</v:String>
+
<v:String x:Key="SystemButtonSize_intf">ขนาดมาตรฐานของปุ่มระบบ</v:String>
<v:String x:Key="CursorFlickerFrequency_intf">ความถี่การกระพริบของเคอร์เซอร์มาตรฐาน</v:String>
<v:String x:Key="ScrollbarSize_intf">ขนาดแถบเลื่อนมาตรฐาน</v:String>
@@ -266,6 +272,7 @@
<v:String x:Key="OpenQuickAccess_intf">เปิด «การเข้าถึงด่วน» แทน «เครื่องนี้»</v:String>
<v:String x:Key="AdaptiveBrightness_intf">การเปลี่ยนแปลงความสว่างที่เกิดขึ้นเอง</v:String>
+ <v:String x:Key="desc_TaskbarPosition_intf">Changes the taskbar location on the screen, allowing you to place it at the bottom, top, left, or right edge. Note that the screen may flicker.</v:String>
<v:String x:Key="desc_CursorSelection_intf">เปลี่ยนสีพื้นหลังเมื่อเลือกข้อความหรือวัตถุด้วยเคอร์เซอร์ในระบบ</v:String>
<v:String x:Key="desc_Tooltip_intf">เปลี่ยนสีของคำแนะนำเครื่องมือในแอปพลิเคชันที่รองรับ</v:String>
<v:String x:Key="desc_NavigationItems_intf">เปลี่ยนการมองเห็นของรายการระบบในตัวในบานหน้าต่างนำทางที่ไม่สามารถเลิกปักหมุดได้ด้วยวิธีปกติ</v:String>
diff --git a/.Source/GTweak/Languages/tr/Localize.xaml b/.Source/GTweak/Languages/tr/Localize.xaml
index 151aebf0..551ce336 100644
--- a/.Source/GTweak/Languages/tr/Localize.xaml
+++ b/.Source/GTweak/Languages/tr/Localize.xaml
@@ -238,6 +238,12 @@
<v:String x:Key="FolderMusic_intf">Müzik</v:String>
<v:String x:Key="FolderVideo_intf">Videolar</v:String>
+ <v:String x:Key="TaskbarPosition_intf">Taskbar location:</v:String>
+ <v:String x:Key="TaskbarPos_Bottom_intf">Bottom</v:String>
+ <v:String x:Key="TaskbarPos_Top_intf">Top</v:String>
+ <v:String x:Key="TaskbarPos_Left_intf">Left</v:String>
+ <v:String x:Key="TaskbarPos_Right_intf">Right</v:String>
+
<v:String x:Key="SystemButtonSize_intf">Sistem düğmelerinin standart boyutu</v:String>
<v:String x:Key="CursorFlickerFrequency_intf">Standart imleç yanıp sönme hızı</v:String>
<v:String x:Key="ScrollbarSize_intf">Standart kaydırma çubuğu boyutu</v:String>
@@ -266,6 +272,7 @@
<v:String x:Key="OpenQuickAccess_intf">Dosya Gezgini'ni "Bu Bilgisayar" konumunda aç</v:String>
<v:String x:Key="AdaptiveBrightness_intf">Otomatik parlaklık değişimleri</v:String>
+ <v:String x:Key="desc_TaskbarPosition_intf">Changes the taskbar location on the screen, allowing you to place it at the bottom, top, left, or right edge. Note that the screen may flicker.</v:String>
<v:String x:Key="desc_CursorSelection_intf">Sistemde metin veya nesne seçtiğinizde imleç seçim alanının arka plan rengini değiştirir.</v:String>
<v:String x:Key="desc_Tooltip_intf">Desteklenen uygulamalardaki bilgi baloncuklarının (ipuçlarının) rengini değiştirir.</v:String>
<v:String x:Key="desc_NavigationItems_intf">Dosya Gezgini gezinti bölmesinde bulunan ve normal yollarla kaldırılamayan yerleşik sistem öğelerinin görünürlüğünü değiştirir.</v:String>
diff --git a/.Source/GTweak/Languages/uk/Localize.xaml b/.Source/GTweak/Languages/uk/Localize.xaml
index 61819e84..f283553f 100644
--- a/.Source/GTweak/Languages/uk/Localize.xaml
+++ b/.Source/GTweak/Languages/uk/Localize.xaml
@@ -238,6 +238,12 @@
<v:String x:Key="FolderMusic_intf">Музика</v:String>
<v:String x:Key="FolderVideo_intf">Відео</v:String>
+ <v:String x:Key="TaskbarPosition_intf">Taskbar location:</v:String>
+ <v:String x:Key="TaskbarPos_Bottom_intf">Bottom</v:String>
+ <v:String x:Key="TaskbarPos_Top_intf">Top</v:String>
+ <v:String x:Key="TaskbarPos_Left_intf">Left</v:String>
+ <v:String x:Key="TaskbarPos_Right_intf">Right</v:String>
+
<v:String x:Key="SystemButtonSize_intf">Стандартний розмір системних кнопок</v:String>
<v:String x:Key="CursorFlickerFrequency_intf">Стандартна частота мерехтіння курсору</v:String>
<v:String x:Key="ScrollbarSize_intf">Стандартний розмір смуги прокручування</v:String>
@@ -266,6 +272,7 @@
<v:String x:Key="OpenQuickAccess_intf">Відкривати «Швидкий доступ» замість «Цей ПК»</v:String>
<v:String x:Key="AdaptiveBrightness_intf">Спонтанна зміна яскравості</v:String>
+ <v:String x:Key="desc_TaskbarPosition_intf">Changes the taskbar location on the screen, allowing you to place it at the bottom, top, left, or right edge. Note that the screen may flicker.</v:String>
<v:String x:Key="desc_CursorSelection_intf">Зміна кольору фону при виділенні тексту або об'єктів курсором у системі.</v:String>
<v:String x:Key="desc_Tooltip_intf">Зміна кольору спливаючих підказок у підтримуваних додатках.</v:String>
<v:String x:Key="desc_NavigationItems_intf">Змінює відображення вбудованих системних пунктів у панелі навігації, які не можна від’єднати звичайними способами.</v:String>
diff --git a/.Source/GTweak/Languages/zh-CN/Localize.xaml b/.Source/GTweak/Languages/zh-CN/Localize.xaml
index cdf19d7d..e638887c 100644
--- a/.Source/GTweak/Languages/zh-CN/Localize.xaml
+++ b/.Source/GTweak/Languages/zh-CN/Localize.xaml
@@ -238,6 +238,12 @@
<v:String x:Key="FolderMusic_intf">音乐</v:String>
<v:String x:Key="FolderVideo_intf">视频</v:String>
+ <v:String x:Key="TaskbarPosition_intf">Taskbar location:</v:String>
+ <v:String x:Key="TaskbarPos_Bottom_intf">Bottom</v:String>
+ <v:String x:Key="TaskbarPos_Top_intf">Top</v:String>
+ <v:String x:Key="TaskbarPos_Left_intf">Left</v:String>
+ <v:String x:Key="TaskbarPos_Right_intf">Right</v:String>
+
<v:String x:Key="SystemButtonSize_intf">系统窗口控制按钮标准尺寸</v:String>
<v:String x:Key="CursorFlickerFrequency_intf">加快文本光标闪烁频率</v:String>
<v:String x:Key="ScrollbarSize_intf">缩小传统滚动条的尺寸</v:String>
@@ -266,6 +272,7 @@
<v:String x:Key="OpenQuickAccess_intf">资源管理器默认打开“此电脑”</v:String>
<v:String x:Key="AdaptiveBrightness_intf">屏幕亮度自动调节 (CABC)</v:String>
+ <v:String x:Key="desc_TaskbarPosition_intf">Changes the taskbar location on the screen, allowing you to place it at the bottom, top, left, or right edge. Note that the screen may flicker.</v:String>
<v:String x:Key="desc_CursorSelection_intf">更改在系统中用光标选中文本或对象时的背景高亮颜色。</v:String>
<v:String x:Key="desc_Tooltip_intf">更改支持的应用程序中悬停提示框(Tooltip)的颜色。</v:String>
<v:String x:Key="desc_NavigationItems_intf">更改资源管理器导航窗格中内置系统项的显示状态——这些项目无法通过常规设置取消固定。</v:String>
diff --git a/.Source/GTweak/Languages/zh-TW/Localize.xaml b/.Source/GTweak/Languages/zh-TW/Localize.xaml
index b2ab484f..9226b2e7 100644
--- a/.Source/GTweak/Languages/zh-TW/Localize.xaml
+++ b/.Source/GTweak/Languages/zh-TW/Localize.xaml
@@ -238,6 +238,12 @@
<v:String x:Key="FolderMusic_intf">音樂</v:String>
<v:String x:Key="FolderVideo_intf">影片</v:String>
+ <v:String x:Key="TaskbarPosition_intf">Taskbar location:</v:String>
+ <v:String x:Key="TaskbarPos_Bottom_intf">Bottom</v:String>
+ <v:String x:Key="TaskbarPos_Top_intf">Top</v:String>
+ <v:String x:Key="TaskbarPos_Left_intf">Left</v:String>
+ <v:String x:Key="TaskbarPos_Right_intf">Right</v:String>
+
<v:String x:Key="SystemButtonSize_intf">系統按鈕標準尺寸</v:String>
<v:String x:Key="CursorFlickerFrequency_intf">標準游標閃爍頻率</v:String>
<v:String x:Key="ScrollbarSize_intf">標準捲動列尺寸</v:String>
@@ -266,6 +272,7 @@
<v:String x:Key="OpenQuickAccess_intf">開啟"快速存取"而非"本機"</v:String>
<v:String x:Key="AdaptiveBrightness_intf">亮度異常變化</v:String>
+ <v:String x:Key="desc_TaskbarPosition_intf">Changes the taskbar location on the screen, allowing you to place it at the bottom, top, left, or right edge. Note that the screen may flicker.</v:String>
<v:String x:Key="desc_CursorSelection_intf">調整在系統中使用游標選取文字或物件時的背景顏色。</v:String>
<v:String x:Key="desc_Tooltip_intf">調整受支援應用程式中工具提示的顏色。</v:String>
<v:String x:Key="desc_NavigationItems_intf">變更導覽窗格中內建系統項目的可見性,這些項目無法以一般方式解除釘選。</v:String>
diff --git a/.Source/GTweak/Modules/Maintenance/WinLicenseHandler.cs b/.Source/GTweak/Modules/Maintenance/WinLicenseHandler.cs
index 1b124823..6e3d25c6 100644
--- a/.Source/GTweak/Modules/Maintenance/WinLicenseHandler.cs
+++ b/.Source/GTweak/Modules/Maintenance/WinLicenseHandler.cs
@@ -21,7 +21,7 @@ namespace GTweak.Modules.Maintenance
{
internal static bool IsWindowsActivated = false;
- private static bool IsKeyExists(string pattern, byte words) => new Regex(pattern, RegexOptions.IgnoreCase | RegexOptions.CultureInvariant | RegexOptions.IgnorePatternWhitespace | RegexOptions.Compiled).Matches(HardwareData.OS.Name).Count == words;
+ private static bool IsKeyExists(string pattern, byte words) => new Regex(pattern, RegexOptions.IgnoreCase | RegexOptions.CultureInvariant | RegexOptions.IgnorePatternWhitespace | RegexOptions.Compiled).Matches(RegistryHelper.GetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "ProductName", string.Empty)).Count == words;
internal static async void LicenseStatus()
{
@@ -69,12 +69,16 @@ namespace GTweak.Modules.Maintenance
{
if (HardwareData.OS.IsWin10)
{
- await CommandExecutor.InvokeRunCommand("/c " + CommandExecutor.CleanCommand(string.Join(" & ", new[] { "assoc .vbs=VBSFile", "ftype VBSFile=\"%SystemRoot%\\System32\\WScript.exe\" \"%1\" %*" })));
+ CommandExecutor.RunCommandAsTrustedInstaller(@"/c reg add ""HKLM\SOFTWARE\Classes\.vbs"" /ve /d ""VBSFile"" /f");
+ CommandExecutor.RunCommandAsTrustedInstaller(@"/c reg add ""HKLM\SOFTWARE\Classes\VBSFile\Shell\Open\Command"" /ve /d ""%SystemRoot%\System32\WScript.exe ""%1"" %*"" /f");
+
+ await Task.Delay(1000);
}
await CommandExecutor.InvokeRunCommand($"/c slmgr.vbs //b /ipk {keyWinHWID}");
CommandExecutor.RunCommand($@"/c del /f /q {PathTargets.Folders.SystemDrive}ProgramData\Microsoft\Windows\ClipSVC\GenuineTicket\*.xml & del /f /q {PathTargets.Folders.SystemDrive}ProgramData\Microsoft\Windows\ClipSVC\Install\Migration\*.xml");
+
string originalGeo = RegistryHelper.GetValue(@"HKEY_CURRENT_USER\Control Panel\International\Geo", "Name", CultureInfo.InstalledUICulture.Name.Split('-')[1].ToUpperInvariant());
RegistryHelper.Write(Registry.CurrentUser, @"Control Panel\International\Geo", "Name", "US", RegistryValueKind.String);
@@ -86,8 +90,11 @@ namespace GTweak.Modules.Maintenance
XDocument xmlDoc = XDocument.Parse(Properties.Resources.Tickets);
XElement foundTicket = xmlDoc.Descendants("Ticket").FirstOrDefault(t => t.Element("product") != null && t.Element("product").Value.IndexOf(RegistryHelper.GetValue(@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ProductOptions", "OSProductPfn", string.Empty), StringComparison.OrdinalIgnoreCase) >= 0);
foundTicket ??= xmlDoc.Descendants("Ticket").FirstOrDefault(t => t.Element("product") != null && t.Element("product").Value == "KMS");
+
XDocument genuineXml = XDocument.Parse(foundTicket.Element("content")?.Value.Trim());
- genuineXml.Save(Path.Combine(PathTargets.Folders.SystemDrive, "ProgramData", "Microsoft", "Windows", "ClipSVC", "GenuineTicket", "GenuineTicket.xml"));
+ string ticketPath = Path.Combine(PathTargets.Folders.SystemDrive, "ProgramData", "Microsoft", "Windows", "ClipSVC", "GenuineTicket", "GenuineTicket.xml");
+ genuineXml.Save(ticketPath);
+
await Task.Delay(3000);
await CommandExecutor.InvokeRunCommand("clipup -v -o", true);
@@ -96,7 +103,6 @@ namespace GTweak.Modules.Maintenance
RegistryHelper.Write(Registry.CurrentUser, @"Control Panel\International\Geo", "Name", originalGeo, RegistryValueKind.String);
LicenseStatus();
-
await Task.Delay(2000);
if (IsWindowsActivated)
@@ -106,16 +112,14 @@ namespace GTweak.Modules.Maintenance
}
else
{
- await CommandExecutor.InvokeRunCommand($"/c slmgr.vbs //b /ipk {keysKMS}");
+ await CommandExecutor.InvokeRunCommand($"/c slmgr.vbs //b /ipk {keyWinKMS}");
await CommandExecutor.InvokeRunCommand("/c slmgr.vbs //b /skms kms.digiboy.ir");
await CommandExecutor.InvokeRunCommand("/c slmgr.vbs //b /ato");
LicenseStatus();
-
await Task.Delay(2000);
overlayWindow.Close();
-
NotificationManager.Info(IsWindowsActivated ? "success_activate_noty" : "error_activate_noty").WithDelay(300).Perform(IsWindowsActivated ? NotificationManager.AlertType.Restart : default);
}
}
diff --git a/.Source/GTweak/Modules/Tweaks/InterfaceTweaks.cs b/.Source/GTweak/Modules/Tweaks/InterfaceTweaks.cs
index 6ed337f4..81dab5e2 100644
--- a/.Source/GTweak/Modules/Tweaks/InterfaceTweaks.cs
+++ b/.Source/GTweak/Modules/Tweaks/InterfaceTweaks.cs
@@ -16,6 +16,8 @@ namespace GTweak.Modules.Tweaks
{
CursorSelection,
Tooltip,
+
+ [PostAction(shell: ExplorerManager.ShellType.Restart)]
TaskbarPosition
}
@@ -194,6 +196,43 @@ namespace GTweak.Modules.Tweaks
RegistryHelper.Write(Registry.Users, @"S-1-5-19\Control Panel\Colors", "InfoWindow", value, RegistryValueKind.String);
RegistryHelper.Write(Registry.Users, @"S-1-5-20\Control Panel\Colors", "InfoWindow", value, RegistryValueKind.String);
}
+ ),
+
+ [Picker.TaskbarPosition] = (
+ Check: () =>
+ {
+ if (HardwareData.OS.IsWin11)
+ {
+ return RegistryHelper.GetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "TaskbarLocation", "3");
+ }
+
+ using RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3");
+ if (key?.GetValue("Settings") is byte[] settings && settings.Length > 12)
+ {
+ return settings[12].ToString();
+ }
+
+ return "3";
+ },
+
+ Apply: (value) =>
+ {
+ int pos = int.Parse(value);
+
+ if (HardwareData.OS.IsWin11)
+ {
+ RegistryHelper.Write(Registry.CurrentUser, @"Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "TaskbarLocation", pos, RegistryValueKind.DWord);
+ }
+ else
+ {
+ using RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3", true);
+ if (key?.GetValue("Settings") is byte[] settings && settings.Length > 12)
+ {
+ settings[12] = (byte)pos;
+ RegistryHelper.Write(Registry.CurrentUser, @"Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3", "Settings", settings, RegistryValueKind.Binary);
+ }
+ }
+ }
)
};
@@ -1006,9 +1045,9 @@ namespace GTweak.Modules.Tweaks
internal void Apply(string controlName, string value)
{
- if (Enum.TryParse<Picker>(controlName, out var colorKey) && _pickerMappings.TryGetValue(colorKey, out var action))
+ if (Enum.TryParse<Picker>(controlName, out var pickerKey) && _pickerMappings.TryGetValue(pickerKey, out var pickerAction))
{
- Task.Run(() => action.Apply(value));
+ Task.Run(() => pickerAction.Apply(value));
}
}
diff --git a/.Source/GTweak/View/InterfaceView.xaml b/.Source/GTweak/View/InterfaceView.xaml
index 3edde4d7..b7053ffb 100644
--- a/.Source/GTweak/View/InterfaceView.xaml
+++ b/.Source/GTweak/View/InterfaceView.xaml
@@ -64,6 +64,11 @@
</CheckBox>
</uc:ExpandableBox>
</StackPanel>
+
+ <StackPanel Orientation="Horizontal" Height="45" MouseEnter="Tweak_MouseEnter" MouseLeave="Tweak_MouseLeave" Visibility="{Binding TaskbarPositionAvailable}" ToolTip="{DynamicResource desc_TaskbarPosition_intf}" ToolTipService.IsEnabled="False" Background="Transparent">
+ <TextBlock Style="{StaticResource TextDefault}" VerticalAlignment="Center" Text="{DynamicResource TaskbarPosition_intf}"/>
+ <uc:TaskbarPositionPicker x:Name="TaskbarPosition" Position="{Binding [TaskbarPosition].Value}" Margin="7,5,5,0" PositionPicked="TaskbarPosition_PositionPicked"/>
+ </StackPanel>
</StackPanel>
<StackPanel Orientation="Vertical" Margin="0,-10,0,-10">
@@ -184,11 +189,11 @@
<uc:ToggleButton x:Name="TipsSuggestions" Style="{StaticResource ToggleStyle}" State="{Binding [TipsSuggestions].State}" TextResource="{DynamicResource TipsSuggestions_intf}" Description="{DynamicResource desc_TipsSuggestions_intf}" />
<uc:ToggleButton x:Name="CompactExplorerMode" Visibility="{Binding Win11FeatureOnly}" Style="{StaticResource ToggleStyle}" State="{Binding [CompactExplorerMode].State}" TextResource="{DynamicResource CompactExplorerMode_intf}" Description="{DynamicResource desc_CompactExplorerMode_intf}" />
<uc:ToggleButton x:Name="CopilotRecall" Visibility="{Binding Win11FeatureOnly}" Style="{StaticResource ToggleStyle}" State="{Binding [CopilotRecall].State}" TextResource="{DynamicResource CopilotRecall_intf}" Description="{DynamicResource desc_CopilotRecall_intf}" />
- <uc:ToggleButton x:Name="TaskbarEndTask" Visibility="{Binding Win11FeatureOnly}" Style="{StaticResource ToggleStyle}" State="{Binding [TaskbarEndTask].State}" TextResource="{DynamicResource TaskbarEndTask_intf}" Description="{DynamicResource desc_TaskbarEndTask_intf}" />
+ <uc:ToggleButton x:Name="TaskbarEndTask" Visibility="{Binding TaskbarEndTaskAvailable}" Style="{StaticResource ToggleStyle}" State="{Binding [TaskbarEndTask].State}" TextResource="{DynamicResource TaskbarEndTask_intf}" Description="{DynamicResource desc_TaskbarEndTask_intf}" />
<uc:ToggleButton x:Name="SnapLayouts" Visibility="{Binding Win11FeatureOnly}" Style="{StaticResource ToggleStyle}" State="{Binding [SnapLayouts].State}" TextResource="{DynamicResource SnapLayouts_intf}" Description="{DynamicResource desc_SnapLayouts_intf}" />
<uc:ToggleButton x:Name="TaskbarIconsButtons" Visibility="{Binding Win11FeatureOnly}" Style="{StaticResource ToggleStyle}" State="{Binding [TaskbarIconsButtons].State}" TextResource="{DynamicResource TaskbarIconsButtons_intf}" Description="{DynamicResource desc_TaskbarIconsButtons_intf}" />
<uc:ToggleButton x:Name="PersonalizedAds" Visibility="{Binding Win11FeatureOnly}" Style="{StaticResource ToggleStyle}" State="{Binding [PersonalizedAds].State}" TextResource="{DynamicResource PersonalizedAds_intf}" Description="{DynamicResource desc_PersonalizedAds_intf}" />
- <uc:ToggleButton x:Name="RestoreFolderWindows" Visibility="{Binding Win11FeatureAvailable}" Style="{StaticResource ToggleStyle}" State="{Binding [RestoreFolderWindows].State}" TextResource="{DynamicResource RestoreFolderWindows_intf}" Description="{DynamicResource desc_RestoreFolderWindows_intf}" />
+ <uc:ToggleButton x:Name="RestoreFolderWindows" Style="{StaticResource ToggleStyle}" State="{Binding [RestoreFolderWindows].State}" TextResource="{DynamicResource RestoreFolderWindows_intf}" Description="{DynamicResource desc_RestoreFolderWindows_intf}" />
<uc:ToggleButton x:Name="TipsNotifications" Visibility="{Binding Win11FeatureOnly}" Style="{StaticResource ToggleStyle}" State="{Binding [TipsNotifications].State}" TextResource="{DynamicResource TipsNotifications_intf}" Description="{DynamicResource desc_TipsNotifications_intf}" />
<uc:ToggleButton x:Name="JpegWallpaperCompression" Style="{StaticResource ToggleStyle}" State="{Binding [JpegWallpaperCompression].State}" TextResource="{DynamicResource JpegWallpaperCompression_intf}" Description="{DynamicResource desc_JpegWallpaperCompression_intf}" />
<uc:ToggleButton x:Name="DesktopTooltips" Style="{StaticResource ToggleStyle}" State="{Binding [DesktopTooltips].State}" TextResource="{DynamicResource DesktopTooltips_intf}" Description="{DynamicResource desc_DesktopTooltips_intf}" />
diff --git a/.Source/GTweak/View/InterfaceView.xaml.cs b/.Source/GTweak/View/InterfaceView.xaml.cs
index 6758f490..85396a19 100644
--- a/.Source/GTweak/View/InterfaceView.xaml.cs
+++ b/.Source/GTweak/View/InterfaceView.xaml.cs
@@ -1,4 +1,5 @@
using System;
+using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
@@ -35,6 +36,24 @@ namespace GTweak.View
NotificationManager.Default().WithDelay(300).Logout();
}
+ private async void TaskbarPosition_PositionPicked(object sender, EventArgs e)
+ {
+ TaskbarPositionPicker picker = (TaskbarPositionPicker)sender;
+ string pickerName = picker.Name;
+ string positionValue = picker.Position.ToString();
+
+ JsonConfigManager.Write(JsonConfigManager.Section.Interface, pickerName, positionValue);
+
+ await Task.Delay(250);
+
+ ExplorerManager.Restart(async () =>
+ {
+ _intfTweaks.Apply(pickerName, positionValue);
+ await Task.Delay(200);
+ });
+ }
+
+
private void CheckBox_Click(object sender, RoutedEventArgs e)
{
CheckBox checkBox = (CheckBox)sender;
diff --git a/.Source/GTweak/View/UtilsView.xaml.cs b/.Source/GTweak/View/UtilsView.xaml.cs
index 93d59fcf..1d5c9e04 100644
--- a/.Source/GTweak/View/UtilsView.xaml.cs
+++ b/.Source/GTweak/View/UtilsView.xaml.cs
@@ -3,7 +3,6 @@ using System.IO;
using System.Windows.Controls;
using GTweak.Core.Interfaces;
using GTweak.Modules.Common;
-using GTweak.Modules.Configuration;
using GTweak.Modules.Maintenance;
using GTweak.Modules.Managers;
using GTweak.Windows;
@@ -33,14 +32,7 @@ namespace GTweak.View
}
else
{
- if (await new NetworkProvider().IsNetworkAvailable())
- {
- await WinLicenseHandler.StartActivation();
- }
- else
- {
- NotificationManager.Warn("network_activate_noty").Perform();
- }
+ await WinLicenseHandler.StartActivation();
}
}
diff --git a/.Source/GTweak/Windows/ExportWindow.xaml b/.Source/GTweak/Windows/ExportWindow.xaml
index 68e28687..a434bca9 100644
--- a/.Source/GTweak/Windows/ExportWindow.xaml
+++ b/.Source/GTweak/Windows/ExportWindow.xaml
@@ -56,7 +56,7 @@
<uc:FlowPanel Margin="10" HorizontalSpacing="10" VerticalSpacing="10" ContentAlignment="Stretch" HorizontalAlignment="Stretch" UseMasonryLayout="False" VerticalAlignment="Top">
- <HeaderedContentControl Style="{StaticResource ExportCard}" Header="{DynamicResource rbtn_conf_main}" Tag="{Binding Confidentiality.Count}" Visibility="{Binding Confidentiality.IsVisible, Converter={StaticResource BoolToVisConverter}}">
+ <HeaderedContentControl Style="{StaticResource ExportCard}" Header="{DynamicResource ConfidentialityPage}" Tag="{Binding Confidentiality.Count}" Visibility="{Binding Confidentiality.IsVisible, Converter={StaticResource BoolToVisConverter}}">
<ItemsControl ItemsSource="{Binding Confidentiality.Items}">
<ItemsControl.ItemTemplate>
<DataTemplate>
@@ -66,7 +66,7 @@
</ItemsControl>
</HeaderedContentControl>
- <HeaderedContentControl Style="{StaticResource ExportCard}" Header="{DynamicResource rbtn_int_main}" Tag="{Binding Interface.Count}" Visibility="{Binding Interface.IsVisible, Converter={StaticResource BoolToVisConverter}}">
+ <HeaderedContentControl Style="{StaticResource ExportCard}" Header="{DynamicResource InterfacePage}" Tag="{Binding Interface.Count}" Visibility="{Binding Interface.IsVisible, Converter={StaticResource BoolToVisConverter}}">
<ItemsControl ItemsSource="{Binding Interface.Items}">
<ItemsControl.ItemTemplate>
<DataTemplate>
@@ -76,7 +76,7 @@
</ItemsControl>
</HeaderedContentControl>
- <HeaderedContentControl Style="{StaticResource ExportCard}" Header="{DynamicResource rbtn_app_main}" Tag="{Binding Packages.Count}" Visibility="{Binding Packages.IsVisible, Converter={StaticResource BoolToVisConverter}}">
+ <HeaderedContentControl Style="{StaticResource ExportCard}" Header="{DynamicResource ApplicationsPage}" Tag="{Binding Packages.Count}" Visibility="{Binding Packages.IsVisible, Converter={StaticResource BoolToVisConverter}}">
<ItemsControl ItemsSource="{Binding Packages.Items}">
<ItemsControl.ItemTemplate>
<DataTemplate>
@@ -86,7 +86,7 @@
</ItemsControl>
</HeaderedContentControl>
- <HeaderedContentControl Style="{StaticResource ExportCard}" Header="{DynamicResource rbtn_svc_main}" Tag="{Binding Services.Count}" Visibility="{Binding Services.IsVisible, Converter={StaticResource BoolToVisConverter}}">
+ <HeaderedContentControl Style="{StaticResource ExportCard}" Header="{DynamicResource ServicesPage}" Tag="{Binding Services.Count}" Visibility="{Binding Services.IsVisible, Converter={StaticResource BoolToVisConverter}}">
<ItemsControl ItemsSource="{Binding Services.Items}">
<ItemsControl.ItemTemplate>
<DataTemplate>
@@ -96,7 +96,7 @@
</ItemsControl>
</HeaderedContentControl>
- <HeaderedContentControl Style="{StaticResource ExportCard}" Header="{DynamicResource rbtn_sys_main}" Tag="{Binding System.Count}" Visibility="{Binding System.IsVisible, Converter={StaticResource BoolToVisConverter}}">
+ <HeaderedContentControl Style="{StaticResource ExportCard}" Header="{DynamicResource SystemPage}" Tag="{Binding System.Count}" Visibility="{Binding System.IsVisible, Converter={StaticResource BoolToVisConverter}}">
<ItemsControl ItemsSource="{Binding System.Items}">
<ItemsControl.ItemTemplate>
<DataTemplate>