2022-10-23 11:02:31 +13:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2023-08-12 12:33:11 +12:00
|
|
|
<!-- Copyright (c) 2022-2023 Peter Kirmeier -->
|
2022-10-23 11:02:31 +13:00
|
|
|
<Application
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2023-08-14 12:16:47 +12:00
|
|
|
xmlns:stm="clr-namespace:SystemTrayMenu"
|
2023-08-12 12:33:11 +12:00
|
|
|
x:Class="SystemTrayMenu.App" ShutdownMode="OnExplicitShutdown">
|
|
|
|
|
|
|
|
<Application.Resources>
|
|
|
|
<BitmapImage x:Key="ApplicationImage" UriSource="../Resources/SystemTrayMenu.png" />
|
|
|
|
|
|
|
|
<BitmapImage x:Key="ApplicationIconImage" UriSource="../Resources/SystemTrayMenu.ico" />
|
|
|
|
<BitmapImage x:Key="LinkArrowIconImage" UriSource="../Resources/LinkArrow.ico" />
|
|
|
|
<BitmapImage x:Key="LoadingIconImage" UriSource="../Resources/Loading.ico" />
|
|
|
|
<BitmapImage x:Key="NotFoundIconImage" UriSource="../Resources/NotFound.ico" />
|
2023-08-13 06:23:30 +12:00
|
|
|
|
2023-08-14 12:16:47 +12:00
|
|
|
<SolidColorBrush x:Key="ButtonHoverColor" Color="Gray" Opacity="0.5"/>
|
|
|
|
|
|
|
|
<Style TargetType="{x:Type Window}">
|
|
|
|
<Setter Property="Foreground" Value="{x:Static stm:MenuDefines.ColorForeground}" />
|
|
|
|
<Setter Property="Background" Value="{x:Static stm:MenuDefines.ColorBackground}" />
|
|
|
|
</Style>
|
|
|
|
<Style TargetType="{x:Type TabItem}">
|
|
|
|
<!-- not working for selected TabIdem yet, so we keep default colors -->
|
|
|
|
<!--Setter Property="Foreground" Value="{x:Static stm:MenuDefines.ColorForeground}" /-->
|
|
|
|
<!--Setter Property="Background" Value="{x:Static stm:MenuDefines.ColorBackground}" /-->
|
|
|
|
</Style>
|
|
|
|
<Style TargetType="{x:Type TabControl}">
|
|
|
|
<Setter Property="Background" Value="Transparent" />
|
|
|
|
</Style>
|
|
|
|
<Style TargetType="{x:Type TextBlock}">
|
|
|
|
<!--not used yet as several controls are using it but overwriting colors let them look bad -->
|
|
|
|
<!--Setter Property="Foreground" Value="{x:Static stm:MenuDefines.ColorForeground}" /-->
|
|
|
|
<!--Setter Property="Background" Value="{x:Static stm:MenuDefines.ColorBackground}" /-->
|
|
|
|
</Style>
|
|
|
|
<Style TargetType="{x:Type Label}">
|
|
|
|
<Setter Property="Foreground" Value="{x:Static stm:MenuDefines.ColorForeground}" />
|
|
|
|
</Style>
|
|
|
|
<Style TargetType="{x:Type GroupBox}">
|
|
|
|
<Setter Property="Margin" Value="2" />
|
|
|
|
<Setter Property="Padding" Value="2" />
|
|
|
|
<Setter Property="Foreground" Value="{x:Static stm:MenuDefines.ColorForeground}" />
|
|
|
|
</Style>
|
2023-08-13 06:23:30 +12:00
|
|
|
<Style TargetType="{x:Type TextBox}">
|
2023-08-14 03:13:26 +12:00
|
|
|
<!-- Please update HotkeySelector as well -->
|
2023-08-13 06:23:30 +12:00
|
|
|
<Setter Property="Height" Value="21" />
|
2023-08-14 12:16:47 +12:00
|
|
|
<Setter Property="Foreground" Value="{x:Static stm:MenuDefines.ColorForeground}" />
|
|
|
|
<Setter Property="Background" Value="{x:Static stm:MenuDefines.ColorBackground}" />
|
|
|
|
</Style>
|
|
|
|
<Style TargetType="{x:Type RichTextBox}">
|
|
|
|
<Setter Property="Foreground" Value="{x:Static stm:MenuDefines.ColorForeground}" />
|
|
|
|
<Setter Property="Background" Value="{x:Static stm:MenuDefines.ColorBackground}" />
|
2023-08-13 06:23:30 +12:00
|
|
|
</Style>
|
2023-08-14 03:13:26 +12:00
|
|
|
<Style TargetType="{x:Type CheckBox}">
|
|
|
|
<Setter Property="Margin" Value="3" />
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
2023-08-14 12:16:47 +12:00
|
|
|
<Setter Property="Foreground" Value="{x:Static stm:MenuDefines.ColorForeground}" />
|
|
|
|
</Style>
|
|
|
|
<Style TargetType="{x:Type ComboBox}">
|
|
|
|
<!-- not working for selected TabIdem yet, so we keep default colors -->
|
|
|
|
<!--Setter Property="Foreground" Value="{x:Static stm:MenuDefines.ColorForeground}" /-->
|
|
|
|
<!--Setter Property="Background" Value="{x:Static stm:MenuDefines.ColorBackground}" /-->
|
|
|
|
</Style>
|
|
|
|
<Style TargetType="{x:Type ListView}">
|
|
|
|
<Setter Property="Foreground" Value="{x:Static stm:MenuDefines.ColorForeground}" />
|
|
|
|
<Setter Property="Background" Value="{x:Static stm:MenuDefines.ColorBackground}" />
|
2023-08-14 03:13:26 +12:00
|
|
|
</Style>
|
|
|
|
<Style TargetType="{x:Type RadioButton}">
|
|
|
|
<Setter Property="Margin" Value="3" />
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
2023-08-14 12:16:47 +12:00
|
|
|
<Setter Property="Foreground" Value="{x:Static stm:MenuDefines.ColorForeground}" />
|
2023-08-14 03:13:26 +12:00
|
|
|
</Style>
|
|
|
|
<Style TargetType="{x:Type Button}">
|
|
|
|
<Setter Property="MinWidth" Value="76" />
|
2023-08-14 12:16:47 +12:00
|
|
|
<Setter Property="Foreground" Value="{x:Static stm:MenuDefines.ColorForeground}" />
|
|
|
|
<!-- TODO: Find better solution instead of re-implementing the control template of a button,
|
|
|
|
only to manage changing the mouse hover border color. -->
|
|
|
|
<Setter Property="BorderBrush" Value="{StaticResource ButtonHoverColor}" />
|
|
|
|
<Setter Property="Background" Value="Transparent" />
|
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type Button}">
|
|
|
|
<Border x:Name="Border" Margin="2" Padding="7,5" BorderThickness="1" BorderBrush="{TemplateBinding BorderBrush}">
|
|
|
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
|
</Border>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
|
|
<Setter Property="BorderBrush" Value="{x:Static stm:MenuDefines.ColorSelectedItemBorder}" TargetName="Border" />
|
|
|
|
<Setter Property="Background" Value="{StaticResource ButtonHoverColor}" TargetName="Border" />
|
|
|
|
<Setter Property="Opacity" Value="0.9" TargetName="Border" />
|
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
2023-08-14 03:13:26 +12:00
|
|
|
</Style>
|
2023-08-12 12:33:11 +12:00
|
|
|
</Application.Resources>
|
|
|
|
|
|
|
|
</Application>
|