This repository has been archived on 2025-01-01. You can view files and clone it, but cannot push or open issues or pull requests.
ShiftOS_TheReturn/ShiftOS.Wpf/App.xaml
2017-01-08 09:57:10 -05:00

60 lines
3 KiB
XML

<Application x:Class="ShiftOS.Wpf.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:ShiftOS.Wpf"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
StartupUri="Desktop.xaml"
Startup="Application_Startup"
Exit="Application_Exit">
<Application.Resources>
<SolidColorBrush x:Key="desktoppanelbg" Color="Gray"></SolidColorBrush>
<sys:Double x:Key="desktoppanelheight">24</sys:Double>
<VerticalAlignment x:Key="desktoppanelpos">Bottom</VerticalAlignment>
<ObjectDataProvider x:Key="desktopbackground" ObjectType="{x:Type local:SkinFrontend}" MethodName="GetDesktopBrush"></ObjectDataProvider>
<Binding ElementName="This" Source="{StaticResource desktopbackground}" Path="" UpdateSourceTrigger="PropertyChanged" x:Key="desktopbackgroundbind"></Binding>
<Style x:Key="ShiftedListBox" TargetType="ListBox">
<Setter Property="Padding" Value="5"/>
<Setter Property="Background" Value="{DynamicResource TerminalBG}"/>
<Setter Property="Foreground" Value="{DynamicResource TerminalFG}"/>
</Style>
<Style TargetType="WrapPanel" x:Key="Toolbar">
<Setter Property="Background" Value="{DynamicResource MenuBG}"></Setter>
</Style>
<Style TargetType="Button" x:Key="ToolbarButton">
<Style.Triggers>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Background" Value="{DynamicResource MenuItemPressed}"></Setter>
<Setter Property="Foreground" Value="{DynamicResource MenuItemPressedText}"></Setter>
</Trigger>
</Style.Triggers>
<Setter Property="Width" Value="Auto"></Setter>
<Setter Property="Height" Value="Auto"></Setter>
<Setter Property="BorderThickness" Value="0"></Setter>
<Setter Property="FocusVisualStyle">
<Setter.Value>
<Style TargetType="Button">
<Setter Property="Background" Value="{DynamicResource MenuItemHover}"></Setter>
<Setter Property="Foreground" Value="{DynamicResource MenuItemHoverText}"></Setter>
</Style>
</Setter.Value>
</Setter>
<Setter Property="Visibility" Value="Visible"></Setter>
<Setter Property="Margin" Value="3"></Setter>
<Setter Property="Background" Value="{DynamicResource MenuItem}"></Setter>
<Setter Property="Foreground" Value="{DynamicResource MenuItemText}"></Setter>
</Style>
<Style TargetType="ListBox">
<Setter Property="Background" Value="{DynamicResource TerminalBG}"></Setter>
<Setter Property="Foreground" Value="{DynamicResource TerminalFG}"></Setter>
</Style>
</Application.Resources>
</Application>