2022-11-23 19:57:09 +01:00
|
|
|
<ResourceDictionary
|
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2025-08-05 01:33:19 +02:00
|
|
|
xmlns:local="using:Microsoft.PowerToys.Settings.UI.Controls">
|
2021-04-05 10:52:44 +02:00
|
|
|
|
2025-08-05 01:33:19 +02:00
|
|
|
<Style BasedOn="{StaticResource DefaultKeyVisualStyle}" TargetType="local:KeyVisual" />
|
|
|
|
|
|
|
|
|
|
<Style x:Key="DefaultKeyVisualStyle" TargetType="local:KeyVisual">
|
|
|
|
|
<Setter Property="MinWidth" Value="16" />
|
|
|
|
|
<Setter Property="AutomationProperties.AccessibilityView" Value="Raw" />
|
|
|
|
|
<Setter Property="IsTabStop" Value="False" />
|
|
|
|
|
<Setter Property="MinHeight" Value="16" />
|
|
|
|
|
<Setter Property="Background" Value="{ThemeResource SubtleFillColorTransparentBrush}" />
|
|
|
|
|
<Setter Property="Foreground" Value="{ThemeResource TextFillColorPrimaryBrush}" />
|
|
|
|
|
<Setter Property="BorderBrush" Value="{ThemeResource ControlStrokeColorDefaultBrush}" />
|
|
|
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
|
|
|
<Setter Property="Padding" Value="4,4,4,4" />
|
|
|
|
|
<Setter Property="FontWeight" Value="Normal" />
|
|
|
|
|
<Setter Property="FontSize" Value="14" />
|
|
|
|
|
<Setter Property="CornerRadius" Value="2" />
|
|
|
|
|
<Setter Property="BackgroundSizing" Value="InnerBorderEdge" />
|
|
|
|
|
<Setter Property="HorizontalAlignment" Value="Left" />
|
2021-09-06 20:21:18 +02:00
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
2025-08-05 01:33:19 +02:00
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
2021-04-05 10:52:44 +02:00
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
2025-08-05 01:33:19 +02:00
|
|
|
<ControlTemplate TargetType="local:KeyVisual">
|
|
|
|
|
<Grid
|
|
|
|
|
x:Name="KeyHolder"
|
|
|
|
|
MinWidth="{TemplateBinding MinWidth}"
|
|
|
|
|
MinHeight="{TemplateBinding MinHeight}"
|
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
|
|
|
|
|
VerticalAlignment="{TemplateBinding VerticalAlignment}"
|
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
|
|
CornerRadius="{TemplateBinding CornerRadius}">
|
|
|
|
|
<Grid.BackgroundTransition>
|
|
|
|
|
<BrushTransition Duration="0:0:0.083" />
|
|
|
|
|
</Grid.BackgroundTransition>
|
|
|
|
|
<local:KeyCharPresenter
|
|
|
|
|
x:Name="KeyPresenter"
|
|
|
|
|
Margin="{TemplateBinding Padding}"
|
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
|
|
|
AutomationProperties.AccessibilityView="Raw"
|
|
|
|
|
Content="{TemplateBinding Content}"
|
|
|
|
|
FontSize="{TemplateBinding FontSize}"
|
|
|
|
|
FontWeight="{TemplateBinding FontWeight}"
|
|
|
|
|
Foreground="{TemplateBinding Foreground}" />
|
2021-09-06 20:21:18 +02:00
|
|
|
<VisualStateManager.VisualStateGroups>
|
|
|
|
|
<VisualStateGroup x:Name="CommonStates">
|
2022-11-23 19:57:09 +01:00
|
|
|
<VisualState x:Name="Normal" />
|
2021-09-06 20:21:18 +02:00
|
|
|
<VisualState x:Name="Disabled">
|
|
|
|
|
<VisualState.Setters>
|
2025-08-05 01:33:19 +02:00
|
|
|
<Setter Target="KeyHolder.Background" Value="{ThemeResource SubtleFillColorTransparentBrush}" />
|
|
|
|
|
<Setter Target="KeyHolder.BorderBrush" Value="{ThemeResource CardStrokeColorDefaultSolidBrush}" />
|
|
|
|
|
<Setter Target="KeyPresenter.Foreground" Value="{ThemeResource ControlStrokeColorDefaultBrush}" />
|
2021-09-06 20:21:18 +02:00
|
|
|
</VisualState.Setters>
|
|
|
|
|
</VisualState>
|
2025-08-05 01:33:19 +02:00
|
|
|
<VisualState x:Name="Invalid">
|
2021-09-06 20:21:18 +02:00
|
|
|
<VisualState.Setters>
|
2025-08-05 01:33:19 +02:00
|
|
|
<Setter Target="KeyHolder.Background" Value="{ThemeResource SystemFillColorCriticalBackgroundBrush}" />
|
|
|
|
|
<Setter Target="KeyHolder.BorderBrush" Value="{ThemeResource SystemFillColorCriticalBrush}" />
|
|
|
|
|
<Setter Target="KeyHolder.BorderThickness" Value="2" />
|
|
|
|
|
<Setter Target="KeyPresenter.Foreground" Value="{ThemeResource SystemFillColorCriticalBrush}" />
|
2021-09-06 20:21:18 +02:00
|
|
|
</VisualState.Setters>
|
|
|
|
|
</VisualState>
|
|
|
|
|
</VisualStateGroup>
|
|
|
|
|
</VisualStateManager.VisualStateGroups>
|
|
|
|
|
</Grid>
|
2021-04-05 10:52:44 +02:00
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
</Style>
|
|
|
|
|
|
2022-11-23 19:57:09 +01:00
|
|
|
<Style
|
2025-08-05 01:33:19 +02:00
|
|
|
x:Key="SubtleKeyVisualStyle"
|
|
|
|
|
BasedOn="{StaticResource DefaultKeyVisualStyle}"
|
|
|
|
|
TargetType="local:KeyVisual">
|
|
|
|
|
<Setter Property="Background" Value="{ThemeResource SubtleFillColorTransparentBrush}" />
|
|
|
|
|
<Setter Property="BorderBrush" Value="{ThemeResource SubtleFillColorTransparentBrush}" />
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate TargetType="local:KeyVisual">
|
|
|
|
|
<Grid
|
|
|
|
|
x:Name="KeyHolder"
|
|
|
|
|
MinWidth="{TemplateBinding MinWidth}"
|
|
|
|
|
MinHeight="{TemplateBinding MinHeight}"
|
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
|
|
|
|
|
VerticalAlignment="{TemplateBinding VerticalAlignment}"
|
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
|
|
CornerRadius="{TemplateBinding CornerRadius}">
|
|
|
|
|
<Grid.BackgroundTransition>
|
|
|
|
|
<BrushTransition Duration="0:0:0.083" />
|
|
|
|
|
</Grid.BackgroundTransition>
|
|
|
|
|
<local:KeyCharPresenter
|
|
|
|
|
x:Name="KeyPresenter"
|
|
|
|
|
Margin="{TemplateBinding Padding}"
|
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
|
|
|
AutomationProperties.AccessibilityView="Raw"
|
|
|
|
|
Content="{TemplateBinding Content}"
|
|
|
|
|
FontSize="{TemplateBinding FontSize}"
|
|
|
|
|
FontWeight="{TemplateBinding FontWeight}"
|
|
|
|
|
Foreground="{TemplateBinding Foreground}" />
|
|
|
|
|
<VisualStateManager.VisualStateGroups>
|
|
|
|
|
<VisualStateGroup x:Name="CommonStates">
|
|
|
|
|
<VisualState x:Name="Normal" />
|
|
|
|
|
<VisualState x:Name="Disabled">
|
|
|
|
|
<VisualState.Setters>
|
|
|
|
|
<Setter Target="KeyPresenter.Foreground" Value="{ThemeResource TextFillColorDisabledBrush}" />
|
|
|
|
|
</VisualState.Setters>
|
|
|
|
|
</VisualState>
|
|
|
|
|
<VisualState x:Name="Invalid">
|
|
|
|
|
<VisualState.Setters>
|
|
|
|
|
<Setter Target="KeyPresenter.Foreground" Value="{ThemeResource SystemFillColorCriticalBrush}" />
|
|
|
|
|
</VisualState.Setters>
|
|
|
|
|
</VisualState>
|
|
|
|
|
</VisualStateGroup>
|
|
|
|
|
</VisualStateManager.VisualStateGroups>
|
|
|
|
|
</Grid>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
2021-09-06 20:21:18 +02:00
|
|
|
</Style>
|
[Settings]Adding a Dashboard Panel (#29023)
* Dashboard: modifying page content + adding SW version button.
* Visual tweaks and minor viewmodel changes
* Updated spacing
* Adding Settings icon
* Settiing the Dashboard page as the default one. Adding functionality to switch to settings pages from the Dashboard page. Localizing texts.
* fixing csproj file
* Reimplementing Active modules handling, showing only the active modules (and not having invisible inactive modules).
* Removing unneccessary binding
* Fix text wrapping
* Adding Registry previewer launch, adding activation mode for FindMyMouse and QuickAccent, modify File Locksmith description.
* Spell checker fix typo
* Adding GPO-blocked state, modifying buttons: adding description, icon.
* Modifying dashboard button layout
* Use SettingsCard instead of button
* Restructuring the dashboard panel
* Removing togglebuttons from the left panel. Showing only active modules. Adding key remappings (to KBM)
* Removing settings buttons, removing descriptions, icons from buttons. Add update of remapped keys, shortcuts.
* Refactoring dashboard
* Making list always visible and fixing scrolling behavior
* Adding background gradient to cards
* Removing keyboard manager's key mappings, minor changes in texts, fixing enabled state when GPO-enabled.
* Use ListView instead of ItemsRepeater
* Updates
* removing right panel with all modules. Extending "left" panel with toggleswitches, showing all modules.
* Separate lists
* Adding Flyout with key remappings for KBM module, adding IsLocked property, icons
* Visual tweaks
* Tweaks
* Fixing lock icon margin
* Minor fixes.
* Removing unused resources
* Make Dashboard default when coming from the OOBE General
* Removed the Previous, Next Layout buttons from FancyZones. Added activation information
---------
Co-authored-by: Niels Laute <niels.laute@live.nl>
2023-10-20 14:23:25 +02:00
|
|
|
|
|
|
|
|
<Style
|
2025-08-05 01:33:19 +02:00
|
|
|
x:Key="AccentKeyVisualStyle"
|
|
|
|
|
BasedOn="{StaticResource DefaultKeyVisualStyle}"
|
|
|
|
|
TargetType="local:KeyVisual">
|
[Settings]Adding a Dashboard Panel (#29023)
* Dashboard: modifying page content + adding SW version button.
* Visual tweaks and minor viewmodel changes
* Updated spacing
* Adding Settings icon
* Settiing the Dashboard page as the default one. Adding functionality to switch to settings pages from the Dashboard page. Localizing texts.
* fixing csproj file
* Reimplementing Active modules handling, showing only the active modules (and not having invisible inactive modules).
* Removing unneccessary binding
* Fix text wrapping
* Adding Registry previewer launch, adding activation mode for FindMyMouse and QuickAccent, modify File Locksmith description.
* Spell checker fix typo
* Adding GPO-blocked state, modifying buttons: adding description, icon.
* Modifying dashboard button layout
* Use SettingsCard instead of button
* Restructuring the dashboard panel
* Removing togglebuttons from the left panel. Showing only active modules. Adding key remappings (to KBM)
* Removing settings buttons, removing descriptions, icons from buttons. Add update of remapped keys, shortcuts.
* Refactoring dashboard
* Making list always visible and fixing scrolling behavior
* Adding background gradient to cards
* Removing keyboard manager's key mappings, minor changes in texts, fixing enabled state when GPO-enabled.
* Use ListView instead of ItemsRepeater
* Updates
* removing right panel with all modules. Extending "left" panel with toggleswitches, showing all modules.
* Separate lists
* Adding Flyout with key remappings for KBM module, adding IsLocked property, icons
* Visual tweaks
* Tweaks
* Fixing lock icon margin
* Minor fixes.
* Removing unused resources
* Make Dashboard default when coming from the OOBE General
* Removed the Previous, Next Layout buttons from FancyZones. Added activation information
---------
Co-authored-by: Niels Laute <niels.laute@live.nl>
2023-10-20 14:23:25 +02:00
|
|
|
|
2025-08-05 01:33:19 +02:00
|
|
|
<Setter Property="Background" Value="{ThemeResource AccentFillColorDefaultBrush}" />
|
|
|
|
|
<Setter Property="Foreground" Value="{ThemeResource TextOnAccentFillColorPrimaryBrush}" />
|
|
|
|
|
<Setter Property="BorderBrush" Value="{ThemeResource AccentControlElevationBorderBrush}" />
|
|
|
|
|
<Setter Property="BackgroundSizing" Value="OuterBorderEdge" />
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate TargetType="local:KeyVisual">
|
|
|
|
|
<Grid
|
|
|
|
|
x:Name="KeyHolder"
|
|
|
|
|
MinWidth="{TemplateBinding MinWidth}"
|
|
|
|
|
MinHeight="{TemplateBinding MinHeight}"
|
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
|
|
|
|
|
VerticalAlignment="{TemplateBinding VerticalAlignment}"
|
|
|
|
|
AutomationProperties.AccessibilityView="Raw"
|
|
|
|
|
Background="{TemplateBinding Background}"
|
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
|
|
CornerRadius="{TemplateBinding CornerRadius}">
|
|
|
|
|
<Grid.BackgroundTransition>
|
|
|
|
|
<BrushTransition Duration="0:0:0.083" />
|
|
|
|
|
</Grid.BackgroundTransition>
|
|
|
|
|
<local:KeyCharPresenter
|
|
|
|
|
x:Name="KeyPresenter"
|
|
|
|
|
Margin="{TemplateBinding Padding}"
|
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
|
|
|
Content="{TemplateBinding Content}"
|
|
|
|
|
FontSize="{TemplateBinding FontSize}"
|
|
|
|
|
FontWeight="{TemplateBinding FontWeight}"
|
|
|
|
|
Foreground="{TemplateBinding Foreground}" />
|
|
|
|
|
<VisualStateManager.VisualStateGroups>
|
|
|
|
|
<VisualStateGroup x:Name="CommonStates">
|
|
|
|
|
<VisualState x:Name="Normal" />
|
|
|
|
|
<VisualState x:Name="Disabled">
|
|
|
|
|
<VisualState.Setters>
|
|
|
|
|
<Setter Target="KeyHolder.Background" Value="{ThemeResource AccentButtonBackgroundDisabled}" />
|
|
|
|
|
<Setter Target="KeyHolder.BorderBrush" Value="{ThemeResource AccentButtonBorderBrushDisabled}" />
|
|
|
|
|
<Setter Target="KeyPresenter.Foreground" Value="{ThemeResource AccentButtonForegroundDisabled}" />
|
|
|
|
|
</VisualState.Setters>
|
|
|
|
|
</VisualState>
|
|
|
|
|
<VisualState x:Name="Invalid">
|
|
|
|
|
<VisualState.Setters>
|
|
|
|
|
<Setter Target="KeyHolder.Background" Value="{ThemeResource SystemFillColorCriticalBackgroundBrush}" />
|
|
|
|
|
<Setter Target="KeyHolder.BorderBrush" Value="{ThemeResource SystemFillColorCriticalBrush}" />
|
|
|
|
|
<Setter Target="KeyHolder.BorderThickness" Value="2" />
|
|
|
|
|
<Setter Target="KeyPresenter.Foreground" Value="{ThemeResource SystemFillColorCriticalBrush}" />
|
|
|
|
|
</VisualState.Setters>
|
|
|
|
|
</VisualState>
|
|
|
|
|
</VisualStateGroup>
|
|
|
|
|
</VisualStateManager.VisualStateGroups>
|
|
|
|
|
</Grid>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
[Settings]Adding a Dashboard Panel (#29023)
* Dashboard: modifying page content + adding SW version button.
* Visual tweaks and minor viewmodel changes
* Updated spacing
* Adding Settings icon
* Settiing the Dashboard page as the default one. Adding functionality to switch to settings pages from the Dashboard page. Localizing texts.
* fixing csproj file
* Reimplementing Active modules handling, showing only the active modules (and not having invisible inactive modules).
* Removing unneccessary binding
* Fix text wrapping
* Adding Registry previewer launch, adding activation mode for FindMyMouse and QuickAccent, modify File Locksmith description.
* Spell checker fix typo
* Adding GPO-blocked state, modifying buttons: adding description, icon.
* Modifying dashboard button layout
* Use SettingsCard instead of button
* Restructuring the dashboard panel
* Removing togglebuttons from the left panel. Showing only active modules. Adding key remappings (to KBM)
* Removing settings buttons, removing descriptions, icons from buttons. Add update of remapped keys, shortcuts.
* Refactoring dashboard
* Making list always visible and fixing scrolling behavior
* Adding background gradient to cards
* Removing keyboard manager's key mappings, minor changes in texts, fixing enabled state when GPO-enabled.
* Use ListView instead of ItemsRepeater
* Updates
* removing right panel with all modules. Extending "left" panel with toggleswitches, showing all modules.
* Separate lists
* Adding Flyout with key remappings for KBM module, adding IsLocked property, icons
* Visual tweaks
* Tweaks
* Fixing lock icon margin
* Minor fixes.
* Removing unused resources
* Make Dashboard default when coming from the OOBE General
* Removed the Previous, Next Layout buttons from FancyZones. Added activation information
---------
Co-authored-by: Niels Laute <niels.laute@live.nl>
2023-10-20 14:23:25 +02:00
|
|
|
</Style>
|
2025-08-20 09:31:52 +08:00
|
|
|
</ResourceDictionary>
|