mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 18:26:39 +02:00
[Run] XamlStyler formatting (#30011)
* XamlStyler formatting * remove unused theme files * fix formatting
This commit is contained in:
committed by
GitHub
parent
b3804a9f38
commit
9e03386eb3
@@ -10,6 +10,7 @@
|
||||
xmlns:vm="clr-namespace:PowerLauncher.ViewModel"
|
||||
Title="PowerToys Run"
|
||||
Width="640"
|
||||
MinHeight="0"
|
||||
d:DataContext="{d:DesignInstance vm:MainViewModel}"
|
||||
ui:ExtendsContentIntoTitleBar="True"
|
||||
AllowDrop="True"
|
||||
@@ -27,8 +28,7 @@
|
||||
Visibility="{Binding MainWindowVisibility, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
WindowStartupLocation="Manual"
|
||||
WindowStyle="None"
|
||||
mc:Ignorable="d"
|
||||
MinHeight="0">
|
||||
mc:Ignorable="d">
|
||||
|
||||
<Grid x:Name="RootGrid" MouseDown="OnMouseDown">
|
||||
<!-- We set the background here because the Acrylic can be too translucent / background too bright on Light theme -->
|
||||
|
||||
@@ -1,111 +0,0 @@
|
||||
{
|
||||
"DefaultValues": {
|
||||
"Theme.IsHighContrast": "false"
|
||||
},
|
||||
"BaseColorSchemes": [
|
||||
{
|
||||
"Name": "Dark",
|
||||
"Values": {
|
||||
"PrimaryAccentColor": "Black",
|
||||
"SystemBaseMediumLowColor": "#FF818181",
|
||||
"SystemChromeLow": "#FF171717",
|
||||
"TextControlPlaceholderForeground": "#FF818181",
|
||||
"TextBox.Static.Border": "Transparent",
|
||||
"TextBox.MouseOver.Border": "Transparent",
|
||||
"TextBox.Focus.Border": "Transparent",
|
||||
"ButtonBackgroundPointerOver": "#30FFFFFF",
|
||||
"ButtonBorderPointerOver": "#61FFFFFF",
|
||||
"ButtonBackgroundPressed": "#30FFFFFF",
|
||||
"ButtonBorderPressed": "#61FFFFFF",
|
||||
"ListViewItemBackgroundPointerOver": "#FF363636",
|
||||
"ControlTextBrushKey": "White",
|
||||
"SecondaryTextForeground": "#FFa1a1a1",
|
||||
"InactiveSelectionHighlightBrushKey": "White",
|
||||
"DialogBorderBrush": "#FF373737",
|
||||
"ScrollBarThumbBackground": "#FF7a7a7a",
|
||||
"ScrollBarThumbPointerOver": "#FF767676",
|
||||
"ScrollBarThumbPointerPressed": "#FFa4a4a4",
|
||||
"ScrollBarBackgroundPointerOver": "#FF1b1b1b",
|
||||
"ScrollBarLineButtonForeground": "#FFcdcdcd",
|
||||
"ScrollBarLineButtonForegroundPointerOver": "#FFcdcdcd",
|
||||
"ScrollBarLineButtonForegroundPointerPressed": "#FF171717",
|
||||
"ScrollBarLineButtonBackground": "Transparent",
|
||||
"ScrollBarLineButtonBackgroundPointerOver": "#FF313131",
|
||||
"ScrollBarLineButtonBackgroundPointerPressed": "#FFa4a4a4",
|
||||
"ToolTipBorderBrushKey": "#5B000000",
|
||||
"ToolTipForegroundBrushKey": "#FFFFFFFF",
|
||||
"ToolTipBackgroundBrushKey": "#FF2B2B2B"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "Light",
|
||||
"Values": {
|
||||
"PrimaryAccentColor": "White",
|
||||
"SystemBaseMediumLowColor": "#66000000",
|
||||
"SystemChromeLow": "#FFF2F2F2",
|
||||
"TextControlPlaceholderForeground": "#FF5b5b5b",
|
||||
"TextBox.Static.Border": "Transparent",
|
||||
"TextBox.MouseOver.Border": "Transparent",
|
||||
"TextBox.Focus.Border": "Transparent",
|
||||
"ButtonBackgroundPointerOver": "#2E000000",
|
||||
"ButtonBorderPointerOver": "#61000000",
|
||||
"ButtonBackgroundPressed": "#30000000",
|
||||
"ButtonBorderPressed": "#61000000",
|
||||
"ListViewItemBackgroundPointerOver": "#FFd2d2d2",
|
||||
"ControlTextBrushKey": "Black",
|
||||
"SecondaryTextForeground": "#FF434343",
|
||||
"InactiveSelectionHighlightBrushKey": "Black",
|
||||
"DialogBorderBrush": "#FFf7f7f7",
|
||||
"ScrollBarThumbBackground": "#FF7a7a7a",
|
||||
"ScrollBarThumbPointerOver": "#FFa0a0a0",
|
||||
"ScrollBarThumbPointerPressed": "#FF747474",
|
||||
"ScrollBarBackgroundPointerOver": "#FFf0f0f0",
|
||||
"ScrollBarLineButtonForeground": "#FF1d1d1d",
|
||||
"ScrollBarLineButtonForegroundPointerOver": "#FF1d1d1d",
|
||||
"ScrollBarLineButtonForegroundPointerPressed": "#FFf3f3f3",
|
||||
"ScrollBarLineButtonBackground": "Transparent",
|
||||
"ScrollBarLineButtonBackgroundPointerOver": "#FFd2d2d2",
|
||||
"ScrollBarLineButtonBackgroundPointerPressed": "#FF5d5d5d",
|
||||
"ToolTipBorderBrushKey": "#FFD0D0D0",
|
||||
"ToolTipForegroundBrushKey": "#FF000000",
|
||||
"ToolTipBackgroundBrushKey": "#FFFBFBFB"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "HighContrast",
|
||||
"Values": {
|
||||
"Theme.IsHighContrast": "true",
|
||||
"PrimaryAccentColor": "White",
|
||||
"SystemBaseMediumLowColor": "#ffff00",
|
||||
"SystemChromeLow": "Black",
|
||||
"TextControlPlaceholderForeground": "#FF008000",
|
||||
"TextBox.Static.Border": "Transparent",
|
||||
"TextBox.MouseOver.Border": "Transparent",
|
||||
"TextBox.Focus.Border": "Transparent",
|
||||
"ButtonBackgroundPointerOver": "Black",
|
||||
"ButtonBorderPointerOver": "White",
|
||||
"ButtonBackgroundPressed": "White",
|
||||
"ButtonBorderPressed": "White",
|
||||
"ListViewItemBackgroundPointerOver": "#FF003300",
|
||||
"ControlTextBrushKey": "#FFffff00",
|
||||
"SecondaryTextForeground": "#FF008000",
|
||||
"InactiveSelectionHighlightBrushKey": "#FFFFFFFF",
|
||||
"DialogBorderBrush": "#FF373737",
|
||||
"ScrollBarThumbBackground": "White",
|
||||
"ScrollBarThumbPointerOver": "#FF008000",
|
||||
"ScrollBarThumbPointerPressed": "#FF008000",
|
||||
"ScrollBarBackgroundPointerOver": "#FF000000",
|
||||
"ScrollBarLineButtonForeground": "#FFFFFFFF",
|
||||
"ScrollBarLineButtonForegroundPointerOver": "#FFFFFFFF",
|
||||
"ScrollBarLineButtonForegroundPointerPressed": "#FFFFFFFF",
|
||||
"ScrollBarLineButtonBackground": "Black",
|
||||
"ScrollBarLineButtonBackgroundPointerOver": "#FF000000",
|
||||
"ScrollBarLineButtonBackgroundPointerPressed": "#FF000000",
|
||||
"ToolTipBorderBrushKey": "#5B000000",
|
||||
"ToolTipForegroundBrushKey": "#FFFFFFFF",
|
||||
"ToolTipBackgroundBrushKey": "#FF2B2B2B"
|
||||
}
|
||||
}
|
||||
],
|
||||
"ColorSchemes": []
|
||||
}
|
||||
@@ -1,50 +0,0 @@
|
||||
<ResourceDictionary 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:options="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options"
|
||||
xmlns:system="clr-namespace:System;assembly=System.Runtime"
|
||||
mc:Ignorable="options">
|
||||
|
||||
<!-- Metadata -->
|
||||
<system:String x:Key="Theme.Name">{{ThemeName}}</system:String>
|
||||
<system:String x:Key="Theme.Origin">PowerToysRun</system:String>
|
||||
<system:String x:Key="Theme.DisplayName">{{ThemeDisplayName}}</system:String>
|
||||
<system:String x:Key="Theme.BaseColorScheme">{{BaseColorScheme}}</system:String>
|
||||
<system:String x:Key="Theme.ColorScheme">{{ColorScheme}}</system:String>
|
||||
<Color x:Key="Theme.PrimaryAccentColor">{{PrimaryAccentColor}}</Color>
|
||||
<system:Boolean x:Key="Theme.IsHighContrast">{{IsHighContrast}}</system:Boolean>
|
||||
|
||||
<Color x:Key="SystemBaseMediumLowColor">{{SystemBaseMediumLowColor}}</Color>
|
||||
<SolidColorBrush x:Key="SystemChromeLow" Color="{{SystemChromeLow}}" options:Freeze="True" />
|
||||
<SolidColorBrush x:Key="TextControlPlaceholderForeground" Color="{{TextControlPlaceholderForeground}}" />
|
||||
<SolidColorBrush x:Key="TextBox.Static.Border" Color="{{TextBox.Static.Border}}"/>
|
||||
<SolidColorBrush x:Key="TextBox.MouseOver.Border" Color="{{TextBox.MouseOver.Border}}"/>
|
||||
<SolidColorBrush x:Key="TextBox.Focus.Border" Color="{{TextBox.Focus.Border}}"/>
|
||||
<SolidColorBrush x:Key="ButtonBackgroundPointerOver" Color="{{ButtonBackgroundPointerOver}}" />
|
||||
<SolidColorBrush x:Key="ButtonBorderPointerOver" Color="{{ButtonBorderPointerOver}}" />
|
||||
<SolidColorBrush x:Key="ButtonBackgroundPressed" Color="{{ButtonBackgroundPressed}}" />
|
||||
<SolidColorBrush x:Key="ButtonBorderPressed" Color="{{ButtonBorderPressed}}" />
|
||||
<SolidColorBrush x:Key="ListViewItemBackgroundPointerOver" Color="{{ListViewItemBackgroundPointerOver}}" />
|
||||
<SolidColorBrush x:Key="ControlTextBrushKey" Color="{{ControlTextBrushKey}}" />
|
||||
<SolidColorBrush x:Key="SecondaryTextForeground" Color="{{SecondaryTextForeground}}" />
|
||||
<SolidColorBrush x:Key="InactiveSelectionHighlightBrushKey" Color="{{InactiveSelectionHighlightBrushKey}}" />
|
||||
<SolidColorBrush x:Key="DialogBorderBrush" Color="{{DialogBorderBrush}}" />
|
||||
|
||||
<SolidColorBrush x:Key="ScrollBarThumbBackground" Color="{{ScrollBarThumbBackground}}" />
|
||||
<Color x:Key="ScrollBarThumbPointerOver">{{ScrollBarThumbPointerOver}}</Color>
|
||||
<Color x:Key="ScrollBarThumbPointerPressed">{{ScrollBarThumbPointerPressed}}</Color>
|
||||
|
||||
<Color x:Key="ScrollBarBackgroundPointerOver">{{ScrollBarBackgroundPointerOver}}</Color>
|
||||
|
||||
<SolidColorBrush x:Key="ScrollBarLineButtonForeground" Color="{{ScrollBarLineButtonForeground}}" />
|
||||
<Color x:Key="ScrollBarLineButtonForegroundPointerOver">{{ScrollBarLineButtonForegroundPointerOver}}</Color>
|
||||
<Color x:Key="ScrollBarLineButtonForegroundPointerPressed">{{ScrollBarLineButtonForegroundPointerPressed}}</Color>
|
||||
|
||||
<SolidColorBrush x:Key="ScrollBarLineButtonBackground" Color="{{ScrollBarLineButtonBackground}}"/>
|
||||
<Color x:Key="ScrollBarLineButtonBackgroundPointerOver">{{ScrollBarLineButtonBackgroundPointerOver}}</Color>
|
||||
<Color x:Key="ScrollBarLineButtonBackgroundPointerPressed">{{ScrollBarLineButtonBackgroundPointerPressed}}</Color>
|
||||
|
||||
<SolidColorBrush x:Key="ToolTipBorderBrushKey" Color="{{ToolTipBorderBrushKey}}" />
|
||||
<SolidColorBrush x:Key="ToolTipForegroundBrushKey" Color="{{ToolTipForegroundBrushKey}}" />
|
||||
<SolidColorBrush x:Key="ToolTipBackgroundBrushKey" Color="{{ToolTipBackgroundBrushKey}}" />
|
||||
</ResourceDictionary>
|
||||
Reference in New Issue
Block a user