Aggiunta esportazione dati in JSON/XML oltre a CSV, con nome file personalizzabile (prefisso, suffisso, formato data, anteprima). Nuove impostazioni per esportazione e preview dinamica. Gestione sorgente corse cavalli da API o CSV Punters, con aggregazione automatica. Migliorati stili DataGrid e numerazione righe. Rimossa pagina info, stili globali consolidati, ComboBox più leggibili. Migliorata gestione errori e messaggi utente.
250 lines
12 KiB
XML
250 lines
12 KiB
XML
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
|
|
<!-- =========================================================
|
|
CATPPUCCIN MOCHA PALETTE (shared)
|
|
========================================================= -->
|
|
<Color x:Key="CBase">#1E1E2E</Color>
|
|
<Color x:Key="CMantle">#181825</Color>
|
|
<Color x:Key="CCrust">#11111B</Color>
|
|
<Color x:Key="CSurface0">#313244</Color>
|
|
<Color x:Key="CSurface1">#45475A</Color>
|
|
<Color x:Key="CSurface2">#585B70</Color>
|
|
<Color x:Key="COverlay0">#6C7086</Color>
|
|
<Color x:Key="CText">#CDD6F4</Color>
|
|
<Color x:Key="CSubtext0">#A6ADC8</Color>
|
|
<Color x:Key="CSubtext1">#BAC2DE</Color>
|
|
<Color x:Key="CBlue">#89B4FA</Color>
|
|
<Color x:Key="CGreen">#A6E3A1</Color>
|
|
<Color x:Key="CRed">#F38BA8</Color>
|
|
<Color x:Key="CPeach">#FAB387</Color>
|
|
<Color x:Key="CLavender">#B4BEFE</Color>
|
|
|
|
<SolidColorBrush x:Key="BrBase" Color="{StaticResource CBase}"/>
|
|
<SolidColorBrush x:Key="BrMantle" Color="{StaticResource CMantle}"/>
|
|
<SolidColorBrush x:Key="BrSurface0" Color="{StaticResource CSurface0}"/>
|
|
<SolidColorBrush x:Key="BrSurface1" Color="{StaticResource CSurface1}"/>
|
|
<SolidColorBrush x:Key="BrSurface2" Color="{StaticResource CSurface2}"/>
|
|
<SolidColorBrush x:Key="BrOverlay0" Color="{StaticResource COverlay0}"/>
|
|
<SolidColorBrush x:Key="BrText" Color="{StaticResource CText}"/>
|
|
<SolidColorBrush x:Key="BrSubtext0" Color="{StaticResource CSubtext0}"/>
|
|
<SolidColorBrush x:Key="BrBlue" Color="{StaticResource CBlue}"/>
|
|
<SolidColorBrush x:Key="BrGreen" Color="{StaticResource CGreen}"/>
|
|
<SolidColorBrush x:Key="BrRed" Color="{StaticResource CRed}"/>
|
|
<SolidColorBrush x:Key="BrPeach" Color="{StaticResource CPeach}"/>
|
|
<SolidColorBrush x:Key="BrLavender" Color="{StaticResource CLavender}"/>
|
|
|
|
<!-- Acrylic-like background (semi-transparent fallback) -->
|
|
<SolidColorBrush x:Key="AcrylicBackgroundBrush" Color="#0F000000"/>
|
|
|
|
<!-- Subtle shadow effect for elevation -->
|
|
<DropShadowEffect x:Key="SubtleDropShadow" BlurRadius="12" ShadowDepth="2" Color="#50000000"/>
|
|
|
|
<!-- NAV BUTTON STYLE (icon-only sidebar) -->
|
|
<Style x:Key="NavBtn" TargetType="RadioButton">
|
|
<Setter Property="Width" Value="48"/>
|
|
<Setter Property="Height" Value="48"/>
|
|
<Setter Property="Margin" Value="6,4"/>
|
|
<Setter Property="Cursor" Value="Hand"/>
|
|
<Setter Property="Foreground" Value="{StaticResource BrSubtext0}"/>
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="RadioButton">
|
|
<Grid>
|
|
<Border x:Name="Bg" CornerRadius="10" Background="{TemplateBinding Background}"/>
|
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="Bg" Property="Background" Value="#28283A"/>
|
|
</Trigger>
|
|
<Trigger Property="IsChecked" Value="True">
|
|
<Setter TargetName="Bg" Property="Background" Value="{StaticResource BrBlue}"/>
|
|
<Setter Property="Foreground" Value="#181825"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!-- ACCENT BUTTON -->
|
|
<Style x:Key="AccentBtn" TargetType="Button">
|
|
<Setter Property="Foreground" Value="#181825"/>
|
|
<Setter Property="FontFamily" Value="Segoe UI Semibold"/>
|
|
<Setter Property="FontSize" Value="13"/>
|
|
<Setter Property="Padding" Value="18,7"/>
|
|
<Setter Property="Cursor" Value="Hand"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border x:Name="Bd" CornerRadius="8"
|
|
Background="{TemplateBinding Background}"
|
|
Padding="{TemplateBinding Padding}">
|
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="Bd" Property="Opacity" Value="0.85"/>
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
<Setter TargetName="Bd" Property="Opacity" Value="0.40"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!-- FLAT TEXTBOX -->
|
|
<Style x:Key="FlatTb" TargetType="TextBox">
|
|
<Setter Property="Background" Value="{StaticResource BrSurface0}"/>
|
|
<Setter Property="Foreground" Value="{StaticResource BrText}"/>
|
|
<Setter Property="CaretBrush" Value="{StaticResource BrText}"/>
|
|
<Setter Property="BorderBrush" Value="{StaticResource BrSurface1}"/>
|
|
<Setter Property="BorderThickness" Value="1"/>
|
|
<Setter Property="Padding" Value="10,7"/>
|
|
<Setter Property="FontSize" Value="13"/>
|
|
<Setter Property="FontFamily" Value="Segoe UI"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="TextBox">
|
|
<Border x:Name="Bd" CornerRadius="6"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
Padding="{TemplateBinding Padding}">
|
|
<ScrollViewer x:Name="PART_ContentHost"/>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsFocused" Value="True">
|
|
<Setter TargetName="Bd" Property="BorderBrush" Value="{StaticResource BrBlue}"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!-- PASSWORD BOX -->
|
|
<Style x:Key="FlatPb" TargetType="PasswordBox">
|
|
<Setter Property="Background" Value="{StaticResource BrSurface0}"/>
|
|
<Setter Property="Foreground" Value="{StaticResource BrText}"/>
|
|
<Setter Property="CaretBrush" Value="{StaticResource BrText}"/>
|
|
<Setter Property="BorderBrush" Value="{StaticResource BrSurface1}"/>
|
|
<Setter Property="BorderThickness" Value="1"/>
|
|
<Setter Property="Padding" Value="10,7"/>
|
|
<Setter Property="FontSize" Value="13"/>
|
|
<Setter Property="FontFamily" Value="Segoe UI"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="PasswordBox">
|
|
<Border x:Name="Bd" CornerRadius="6"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
Padding="{TemplateBinding Padding}">
|
|
<ScrollViewer x:Name="PART_ContentHost"/>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsFocused" Value="True">
|
|
<Setter TargetName="Bd" Property="BorderBrush" Value="{StaticResource BrBlue}"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!-- PROGRESS BAR -->
|
|
<Style x:Key="ModernPb" TargetType="ProgressBar">
|
|
<Setter Property="Height" Value="4"/>
|
|
<Setter Property="Background" Value="{StaticResource BrSurface0}"/>
|
|
<Setter Property="Foreground" Value="{StaticResource BrBlue}"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="ProgressBar">
|
|
<Grid>
|
|
<Border CornerRadius="2" Background="{TemplateBinding Background}"/>
|
|
<Border x:Name="PART_Indicator" CornerRadius="2"
|
|
Background="{TemplateBinding Foreground}"
|
|
HorizontalAlignment="Left"/>
|
|
<Border x:Name="PART_Track"/>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!-- DATAGRID -->
|
|
<Style x:Key="ModernDg" TargetType="DataGrid">
|
|
<Setter Property="Background" Value="#282A3A"/>
|
|
<Setter Property="Foreground" Value="{StaticResource BrText}"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="RowBackground" Value="#282A3A"/>
|
|
<Setter Property="AlternatingRowBackground" Value="#2D2F42"/>
|
|
<Setter Property="GridLinesVisibility" Value="Horizontal"/>
|
|
<Setter Property="HorizontalGridLinesBrush" Value="#37394E"/>
|
|
<Setter Property="HeadersVisibility" Value="Column"/>
|
|
<Setter Property="RowHeaderWidth" Value="0"/>
|
|
<Setter Property="AutoGenerateColumns" Value="True"/>
|
|
<Setter Property="IsReadOnly" Value="True"/>
|
|
<Setter Property="SelectionMode" Value="Single"/>
|
|
<Setter Property="CanUserAddRows" Value="False"/>
|
|
<Setter Property="CanUserDeleteRows" Value="False"/>
|
|
<Setter Property="CanUserResizeRows" Value="False"/>
|
|
<Setter Property="FontFamily" Value="Segoe UI"/>
|
|
<Setter Property="FontSize" Value="13"/>
|
|
</Style>
|
|
|
|
<Style TargetType="DataGridColumnHeader">
|
|
<Setter Property="Background" Value="#23243A"/>
|
|
<Setter Property="Foreground" Value="{StaticResource BrBlue}"/>
|
|
<Setter Property="FontFamily" Value="Segoe UI Semibold"/>
|
|
<Setter Property="FontSize" Value="13"/>
|
|
<Setter Property="Padding" Value="10,8"/>
|
|
<Setter Property="BorderBrush" Value="#37394E"/>
|
|
<Setter Property="BorderThickness" Value="0,0,0,1"/>
|
|
</Style>
|
|
|
|
<Style TargetType="DataGridCell">
|
|
<Setter Property="Padding" Value="8,6"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="DataGridCell">
|
|
<Border Padding="{TemplateBinding Padding}" Background="{TemplateBinding Background}">
|
|
<ContentPresenter VerticalAlignment="Center"/>
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Style.Triggers>
|
|
<Trigger Property="IsSelected" Value="True">
|
|
<Setter Property="Background" Value="#3C3F58"/>
|
|
<Setter Property="Foreground" Value="{StaticResource BrBlue}"/>
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
|
|
<Style TargetType="DataGridRow">
|
|
<Setter Property="Margin" Value="0"/>
|
|
<Style.Triggers>
|
|
<Trigger Property="IsSelected" Value="True">
|
|
<Setter Property="Background" Value="#3C3F58"/>
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
|
|
<!-- Card style for lists / rows -->
|
|
<Style x:Key="CardStyle" TargetType="Border">
|
|
<Setter Property="CornerRadius" Value="8"/>
|
|
<Setter Property="Background" Value="#23232A"/>
|
|
<Setter Property="Padding" Value="12"/>
|
|
<Setter Property="Margin" Value="6"/>
|
|
</Style>
|
|
|
|
</ResourceDictionary>
|