PowerToys/Wox/Themes/Default.xaml

139 lines
6.7 KiB
Plaintext
Raw Normal View History

2014-01-26 17:47:58 +08:00
<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">
2014-03-15 00:17:37 +08:00
<Style x:Key="BaseQueryBoxStyle" TargetType="{x:Type TextBox}">
2014-02-21 23:43:52 +08:00
<Setter Property="BorderThickness" Value="0" />
2014-03-15 22:01:35 +08:00
<Setter Property="FontSize" Value="28" />
2014-03-15 17:47:06 +08:00
<Setter Property="FontFamily" Value="Arial" />
2014-02-21 23:43:52 +08:00
<Setter Property="FontWeight" Value="Medium" />
<Setter Property="Height" Value="46" />
<Setter Property="Background" Value="#616161" />
<Setter Property="Foreground" Value="#E3E0E3" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Stylus.IsFlicksEnabled" Value="False" />
2014-03-19 22:17:01 +08:00
<Setter Property="FontFamily" Value="Arial, Serif" />
</Style>
2014-03-15 00:17:37 +08:00
<Style x:Key="BaseWindowBorderStyle" TargetType="{x:Type Border}">
<Setter Property="BorderThickness" Value="0" />
<Setter Property="CornerRadius" Value="0" />
2014-03-15 00:17:37 +08:00
<Setter Property="Background" Value="#424242"></Setter>
<Setter Property="Padding" Value="8 10 8 8" />
</Style>
<Style x:Key="BaseWindowStyle" TargetType="{x:Type Window}">
2014-12-10 09:50:55 +08:00
<Setter Property="Width" Value="800" />
</Style>
2014-03-15 00:17:37 +08:00
<Style x:Key="BasePendingLineStyle" TargetType="{x:Type Line}">
2014-01-26 17:47:58 +08:00
<Setter Property="Stroke" Value="Blue" />
</Style>
<!-- Item Style -->
2014-03-15 00:17:37 +08:00
<Style x:Key="BaseItemTitleStyle" TargetType="{x:Type TextBlock}">
2014-01-26 17:47:58 +08:00
<Setter Property="Foreground" Value="#FFFFF8" />
2014-02-21 23:43:52 +08:00
<Setter Property="FontSize" Value="16" />
<Setter Property="FontWeight" Value="Medium" />
2014-03-19 22:17:01 +08:00
<Setter Property="FontFamily" Value="Arial, Serif" />
</Style>
2014-03-15 00:17:37 +08:00
<Style x:Key="BaseItemSubTitleStyle" TargetType="{x:Type TextBlock}" >
2014-01-26 17:47:58 +08:00
<Setter Property="Foreground" Value="#D9D9D4" />
2014-03-19 22:17:01 +08:00
<Setter Property="FontFamily" Value="Arial, Serif" />
</Style>
2014-03-15 00:17:37 +08:00
<Style x:Key="BaseItemTitleSelectedStyle" TargetType="{x:Type TextBlock}" >
2014-02-21 23:43:52 +08:00
<Setter Property="Foreground" Value="#FFFFF8" />
<Setter Property="FontSize" Value="16" />
<Setter Property="FontWeight" Value="Medium" />
2014-02-21 18:59:47 +08:00
</Style>
2014-03-15 00:17:37 +08:00
<Style x:Key="BaseItemSubTitleSelectedStyle" TargetType="{x:Type TextBlock}" >
2014-02-21 23:43:52 +08:00
<Setter Property="Foreground" Value="#D9D9D4" />
2014-02-21 18:59:47 +08:00
</Style>
2014-02-20 21:46:23 +08:00
2014-03-15 00:17:37 +08:00
<Style x:Key="BaseListboxStyle" TargetType="{x:Type ListBox}">
2014-02-20 21:46:23 +08:00
<Setter Property="BorderBrush" Value="Transparent"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/>
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ListBox">
2014-03-09 17:01:39 +08:00
<ScrollViewer Focusable="false" Template="{DynamicResource ScrollViewerControlTemplate}">
<VirtualizingStackPanel IsItemsHost="True" />
</ScrollViewer>
2014-02-20 21:46:23 +08:00
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
2014-01-26 17:47:58 +08:00
<!-- ScrollViewer Style -->
<ControlTemplate x:Key="ScrollViewerControlTemplate" TargetType="{x:Type ScrollViewer}">
<Grid x:Name="Grid" Background="{TemplateBinding Background}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<!--content in the left of ScrollViewer, just default-->
<ScrollContentPresenter x:Name="PART_ScrollContentPresenter"
CanContentScroll="{TemplateBinding CanContentScroll}"
CanHorizontallyScroll="False"
CanVerticallyScroll="False"
ContentTemplate="{TemplateBinding ContentTemplate}"
Content="{TemplateBinding Content}"
Grid.Column="0"
Margin="{TemplateBinding Padding}"
Grid.Row="0" />
<!--Scrollbar in thr rigth of ScrollViewer-->
<ScrollBar x:Name="PART_VerticalScrollBar"
AutomationProperties.AutomationId="VerticalScrollBar"
Cursor="Arrow"
Grid.Column="1"
Margin="3 0 0 0"
Maximum="{TemplateBinding ScrollableHeight}"
Minimum="0"
Grid.Row="0"
Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}"
Value="{Binding VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}"
ViewportSize="{TemplateBinding ViewportHeight}"
Style="{DynamicResource ScrollBarStyle}" />
</Grid>
</ControlTemplate>
<!-- button style in the middle of the scrollbar -->
2014-03-15 00:17:37 +08:00
<Style x:Key="BaseThumbStyle" TargetType="{x:Type Thumb}">
2014-01-26 17:47:58 +08:00
<Setter Property="SnapsToDevicePixels" Value="True"/>
<Setter Property="OverridesDefaultStyle" Value="true"/>
<Setter Property="IsTabStop" Value="false"/>
<Setter Property="Focusable" Value="false"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Thumb}">
<Border CornerRadius="2" DockPanel.Dock="Right" Background="#616161" BorderBrush="Transparent" BorderThickness="0" />
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
2014-03-15 00:17:37 +08:00
<Style x:Key="BaseScrollBarStyle" TargetType="{x:Type ScrollBar}">
2014-01-26 17:47:58 +08:00
<Setter Property="Stylus.IsPressAndHoldEnabled" Value="false" />
<Setter Property="Stylus.IsFlicksEnabled" Value="false" />
<!-- must set min width -->
<Setter Property="MinWidth" Value="0"/>
<Setter Property="Width" Value="5"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ScrollBar}">
<DockPanel>
<Track x:Name="PART_Track" IsDirectionReversed="true" DockPanel.Dock="Right">
<Track.Thumb>
<Thumb Style="{DynamicResource ThumbStyle}"/>
</Track.Thumb>
</Track>
</DockPanel>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
2014-03-09 17:01:39 +08:00
</ResourceDictionary>