mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 04:07:40 +02:00
Add Aero theme
This commit is contained in:
@@ -56,7 +56,7 @@ namespace Wox.Helper
|
|||||||
|
|
||||||
if (ret1 == 0)
|
if (ret1 == 0)
|
||||||
{
|
{
|
||||||
Margins m = new Margins { Bottom = 0, Left = 0, Right = 0, Top = 0 };
|
Margins m = new Margins { Bottom = 0, Left = 0, Right = 1, Top = 1 };
|
||||||
int ret2 = DwmExtendFrameIntoClientArea(helper.Handle, ref m);
|
int ret2 = DwmExtendFrameIntoClientArea(helper.Handle, ref m);
|
||||||
return ret2 == 0;
|
return ret2 == 0;
|
||||||
}
|
}
|
||||||
|
|||||||
52
Wox/Themes/Aero Dark.xaml
Normal file
52
Wox/Themes/Aero Dark.xaml
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||||
|
<ResourceDictionary.MergedDictionaries>
|
||||||
|
<ResourceDictionary Source="Default.xaml"></ResourceDictionary>
|
||||||
|
</ResourceDictionary.MergedDictionaries>
|
||||||
|
<Style x:Key="QueryBoxStyle" BasedOn="{StaticResource BaseQueryBoxStyle}" TargetType="{x:Type TextBox}">
|
||||||
|
<Setter Property="Background" Value="#00ffffff"/>
|
||||||
|
<Setter Property="Foreground" Value="#000000" />
|
||||||
|
<Style.Resources>
|
||||||
|
<Style TargetType="ScrollViewer" >
|
||||||
|
<Setter Property="BitmapEffect">
|
||||||
|
<Setter.Value>
|
||||||
|
<OuterGlowBitmapEffect GlowColor="#ffffff" Opacity="0.6" GlowSize="3"/>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
</Style.Resources>
|
||||||
|
</Style>
|
||||||
|
<Style x:Key="WindowBorderStyle" BasedOn="{StaticResource BaseWindowBorderStyle}" TargetType="{x:Type Border}">
|
||||||
|
<Setter Property="Background" Value="#00000000"></Setter>
|
||||||
|
</Style>
|
||||||
|
<Style x:Key="WindowStyle" TargetType="{x:Type Window}" BasedOn="{StaticResource BaseWindowStyle}" >
|
||||||
|
</Style>
|
||||||
|
<Style x:Key="PendingLineStyle" BasedOn="{StaticResource BasePendingLineStyle}" TargetType="{x:Type Line}" >
|
||||||
|
</Style>
|
||||||
|
<Style x:Key="ItemTitleStyle" BasedOn="{StaticResource BaseItemTitleStyle}" TargetType="{x:Type TextBlock}" >
|
||||||
|
<Setter Property="Foreground" Value="#000000"></Setter>
|
||||||
|
<Setter Property="BitmapEffect">
|
||||||
|
<Setter.Value>
|
||||||
|
<OuterGlowBitmapEffect GlowColor="#ffffff" Opacity="0.6" GlowSize="3"/>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
<Style x:Key="ItemSubTitleStyle" BasedOn="{StaticResource BaseItemSubTitleStyle}" TargetType="{x:Type TextBlock}" >
|
||||||
|
<Setter Property="Foreground" Value="#3d3d3d"></Setter>
|
||||||
|
<Setter Property="BitmapEffect">
|
||||||
|
<Setter.Value>
|
||||||
|
<OuterGlowBitmapEffect GlowColor="#ffffff" Opacity="0.6" GlowSize="3"/>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
<Style x:Key="ItemTitleSelectedStyle" BasedOn="{StaticResource BaseItemTitleSelectedStyle}" TargetType="{x:Type TextBlock}">
|
||||||
|
<Setter Property="Foreground" Value="#000000" />
|
||||||
|
</Style>
|
||||||
|
<Style x:Key="ItemSubTitleSelectedStyle" BasedOn="{StaticResource BaseItemSubTitleSelectedStyle}" TargetType="{x:Type TextBlock}">
|
||||||
|
<Setter Property="Foreground" Value="#3d3d3d" />
|
||||||
|
</Style>
|
||||||
|
<Color x:Key="ItemSelectedBackgroundColor">#77ffffff</Color>
|
||||||
|
<Style x:Key="ThumbStyle" BasedOn="{StaticResource BaseThumbStyle}" TargetType="{x:Type Thumb}">
|
||||||
|
</Style>
|
||||||
|
<Style x:Key="ScrollBarStyle" BasedOn="{StaticResource BaseScrollBarStyle}" TargetType="{x:Type ScrollBar}">
|
||||||
|
</Style>
|
||||||
|
</ResourceDictionary>
|
||||||
52
Wox/Themes/Aero Light.xaml
Normal file
52
Wox/Themes/Aero Light.xaml
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||||
|
<ResourceDictionary.MergedDictionaries>
|
||||||
|
<ResourceDictionary Source="Default.xaml"></ResourceDictionary>
|
||||||
|
</ResourceDictionary.MergedDictionaries>
|
||||||
|
<Style x:Key="QueryBoxStyle" BasedOn="{StaticResource BaseQueryBoxStyle}" TargetType="{x:Type TextBox}">
|
||||||
|
<Setter Property="Background" Value="#00000000"/>
|
||||||
|
<Setter Property="Foreground" Value="#f5f5f5" />
|
||||||
|
<Style.Resources>
|
||||||
|
<Style TargetType="ScrollViewer" >
|
||||||
|
<Setter Property="BitmapEffect">
|
||||||
|
<Setter.Value>
|
||||||
|
<OuterGlowBitmapEffect GlowColor="#000" Opacity="0.6" GlowSize="3"/>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
</Style.Resources>
|
||||||
|
</Style>
|
||||||
|
<Style x:Key="WindowBorderStyle" BasedOn="{StaticResource BaseWindowBorderStyle}" TargetType="{x:Type Border}">
|
||||||
|
<Setter Property="Background" Value="#00000000"></Setter>
|
||||||
|
</Style>
|
||||||
|
<Style x:Key="WindowStyle" TargetType="{x:Type Window}" BasedOn="{StaticResource BaseWindowStyle}" >
|
||||||
|
</Style>
|
||||||
|
<Style x:Key="PendingLineStyle" BasedOn="{StaticResource BasePendingLineStyle}" TargetType="{x:Type Line}" >
|
||||||
|
</Style>
|
||||||
|
<Style x:Key="ItemTitleStyle" BasedOn="{StaticResource BaseItemTitleStyle}" TargetType="{x:Type TextBlock}" >
|
||||||
|
<Setter Property="Foreground" Value="#f5f5f5"></Setter>
|
||||||
|
<Setter Property="BitmapEffect">
|
||||||
|
<Setter.Value>
|
||||||
|
<OuterGlowBitmapEffect GlowColor="#000" Opacity="0.6" GlowSize="3"/>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
<Style x:Key="ItemSubTitleStyle" BasedOn="{StaticResource BaseItemSubTitleStyle}" TargetType="{x:Type TextBlock}" >
|
||||||
|
<Setter Property="Foreground" Value="#c2c2c2"></Setter>
|
||||||
|
<Setter Property="BitmapEffect">
|
||||||
|
<Setter.Value>
|
||||||
|
<OuterGlowBitmapEffect GlowColor="#000" Opacity="0.6" GlowSize="3"/>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
<Style x:Key="ItemTitleSelectedStyle" BasedOn="{StaticResource BaseItemTitleSelectedStyle}" TargetType="{x:Type TextBlock}">
|
||||||
|
<Setter Property="Foreground" Value="#f5f5f5" />
|
||||||
|
</Style>
|
||||||
|
<Style x:Key="ItemSubTitleSelectedStyle" BasedOn="{StaticResource BaseItemSubTitleSelectedStyle}" TargetType="{x:Type TextBlock}">
|
||||||
|
<Setter Property="Foreground" Value="#c2c2c2" />
|
||||||
|
</Style>
|
||||||
|
<Color x:Key="ItemSelectedBackgroundColor">#77000000</Color>
|
||||||
|
<Style x:Key="ThumbStyle" BasedOn="{StaticResource BaseThumbStyle}" TargetType="{x:Type Thumb}">
|
||||||
|
</Style>
|
||||||
|
<Style x:Key="ScrollBarStyle" BasedOn="{StaticResource BaseScrollBarStyle}" TargetType="{x:Type ScrollBar}">
|
||||||
|
</Style>
|
||||||
|
</ResourceDictionary>
|
||||||
33
Wox/Themes/Metro Server.xaml
Normal file
33
Wox/Themes/Metro Server.xaml
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||||
|
<ResourceDictionary.MergedDictionaries>
|
||||||
|
<ResourceDictionary Source="Default.xaml"></ResourceDictionary>
|
||||||
|
</ResourceDictionary.MergedDictionaries>
|
||||||
|
<Style x:Key="QueryBoxStyle" BasedOn="{StaticResource BaseQueryBoxStyle}" TargetType="{x:Type TextBox}">
|
||||||
|
<Setter Property="Background" Value="#ffffff"/>
|
||||||
|
<Setter Property="Foreground" Value="#000000" />
|
||||||
|
</Style>
|
||||||
|
<Style x:Key="WindowBorderStyle" BasedOn="{StaticResource BaseWindowBorderStyle}" TargetType="{x:Type Border}">
|
||||||
|
<Setter Property="Background" Value="#001e4e"></Setter>
|
||||||
|
</Style>
|
||||||
|
<Style x:Key="WindowStyle" TargetType="{x:Type Window}" BasedOn="{StaticResource BaseWindowStyle}" >
|
||||||
|
</Style>
|
||||||
|
<Style x:Key="PendingLineStyle" BasedOn="{StaticResource BasePendingLineStyle}" TargetType="{x:Type Line}" >
|
||||||
|
</Style>
|
||||||
|
<Style x:Key="ItemTitleStyle" BasedOn="{StaticResource BaseItemTitleStyle}" TargetType="{x:Type TextBlock}" >
|
||||||
|
<Setter Property="Foreground" Value="#f5f5f5"></Setter>
|
||||||
|
</Style>
|
||||||
|
<Style x:Key="ItemSubTitleStyle" BasedOn="{StaticResource BaseItemSubTitleStyle}" TargetType="{x:Type TextBlock}" >
|
||||||
|
<Setter Property="Foreground" Value="#c2c2c2"></Setter>
|
||||||
|
</Style>
|
||||||
|
<Style x:Key="ItemTitleSelectedStyle" BasedOn="{StaticResource BaseItemTitleSelectedStyle}" TargetType="{x:Type TextBlock}">
|
||||||
|
<Setter Property="Foreground" Value="#f5f5f5" />
|
||||||
|
</Style>
|
||||||
|
<Style x:Key="ItemSubTitleSelectedStyle" BasedOn="{StaticResource BaseItemSubTitleSelectedStyle}" TargetType="{x:Type TextBlock}">
|
||||||
|
<Setter Property="Foreground" Value="#c2c2c2" />
|
||||||
|
</Style>
|
||||||
|
<Color x:Key="ItemSelectedBackgroundColor">#006ac1</Color>
|
||||||
|
<Style x:Key="ThumbStyle" BasedOn="{StaticResource BaseThumbStyle}" TargetType="{x:Type Thumb}">
|
||||||
|
</Style>
|
||||||
|
<Style x:Key="ScrollBarStyle" BasedOn="{StaticResource BaseScrollBarStyle}" TargetType="{x:Type ScrollBar}">
|
||||||
|
</Style>
|
||||||
|
</ResourceDictionary>
|
||||||
Reference in New Issue
Block a user