64ed432c0c
- Aggiunto EgtWPFLibDarkDictionary.xaml per il cambio tema e adattamento delle altre classi
68 lines
3.4 KiB
XML
68 lines
3.4 KiB
XML
<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">
|
|
|
|
<!--Variabili impostate da codice-->
|
|
<system:Double x:Key="EgtKeyboard_FontSize">22</system:Double>
|
|
<system:Double x:Key="EgtCalculator_FontSize">22</system:Double>
|
|
<system:Double x:Key="EgtCalculator_IconWidth">65</system:Double>
|
|
|
|
<!--Image-->
|
|
|
|
<!--Style dell'immagine all'interno di un Button-->
|
|
<Style x:Key="ButtonIcon" TargetType="{x:Type Image}" >
|
|
<Setter Property="HorizontalAlignment" Value="Center"/>
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
<Setter Property="Width" Value="{DynamicResource EgtCalculator_IconWidth}"/>
|
|
<Setter Property="Height" Value="{DynamicResource EgtCalculator_IconWidth}"/>
|
|
</Style>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________ -->
|
|
|
|
<!--EgtMsgBox-->
|
|
<Style x:Key="EgtMsgBox_Border" TargetType="{x:Type Border}" />
|
|
<Style x:Key="EgtMsgBox_Button" TargetType="{x:Type Button}" />
|
|
<system:Double x:Key="EgtMsgBox_TitleFontSize">22</system:Double>
|
|
<system:Double x:Key="EgtMsgBox_TextFontSize">22</system:Double>
|
|
|
|
<!--Border di default (utilizzato se non ne viene assegnato uno dal programma)-->
|
|
<Style x:Key="EgtMsgBox_DefaultBorder" TargetType="{x:Type Border}">
|
|
<Setter Property="Background" Value="LightGray"/>
|
|
<Setter Property="BorderBrush" Value="Gray"/>
|
|
<Setter Property="BorderThickness" Value="1"/>
|
|
</Style>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________ -->
|
|
|
|
<SolidColorBrush x:Key="EgtWPFLib_Yellow" Color="#FFFFCE5B" />
|
|
|
|
<!--Template che permette di andare a capo-->
|
|
<DataTemplate x:Key="ToggleButton_DataTemplate_Wrap">
|
|
<TextBlock TextWrapping="Wrap" Text="{Binding}" />
|
|
</DataTemplate>
|
|
|
|
<Style x:Key="EgtWPFLib_ToggleButton" TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource {x:Type ToggleButton}}">
|
|
<Setter Property="ContentTemplate" Value="{StaticResource ToggleButton_DataTemplate_Wrap}" />
|
|
<Style.Triggers>
|
|
<Trigger Property="IsChecked" Value="True">
|
|
<Setter Property="ToggleButton.Background" Value="{StaticResource EgtWPFLib_Yellow}" />
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
|
|
<!-- ______________________________________________________________________________________________________________________ -->
|
|
|
|
<SolidColorBrush x:Key="EgtWPFLib_KeyboardBackground" Color="#FF535862" />
|
|
<SolidColorBrush x:Key="EgtWPFLib_KeyboardButtonColor" Color="#636974" />
|
|
<SolidColorBrush x:Key="EgtWPFLib_KeyboardTextColor" Color="White" />
|
|
<SolidColorBrush x:Key="EgtWPFLib_KeyboardBorderBrush" Color="#FF909090" />
|
|
<BitmapImage x:Key="DeleteArrowImg" UriSource="/Resources/Negative/NumericKeyboardArrow.png"/>
|
|
<BitmapImage x:Key="XImg" UriSource="/Resources/Negative/X.png"/>
|
|
<BitmapImage x:Key="VImg" UriSource="/Resources/Negative/V.png"/>
|
|
|
|
<SolidColorBrush x:Key="EgtMsgBox_Background" Color="#FF535862"/>
|
|
<SolidColorBrush x:Key="EgtMsgBox_BorderBrush" Color="Gray"/>
|
|
|
|
</ResourceDictionary>
|