-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.xaml
More file actions
111 lines (101 loc) · 4.59 KB
/
App.xaml
File metadata and controls
111 lines (101 loc) · 4.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<Application x:Class="DeepLocal.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Application.Resources>
<!-- Palette -->
<SolidColorBrush x:Key="Bg" Color="#0b0c10"/>
<SolidColorBrush x:Key="Header" Color="#0f172a"/>
<SolidColorBrush x:Key="CardBg" Color="#141722"/>
<SolidColorBrush x:Key="Fg" Color="#e8eaf0"/>
<SolidColorBrush x:Key="Muted" Color="#aeb3c2"/>
<!-- Accenti -->
<SolidColorBrush x:Key="AccentGreen" Color="#19C37D"/>
<SolidColorBrush x:Key="AccentGreenBorder" Color="#14A36A"/>
<!-- Stili base -->
<Style TargetType="Window">
<Setter Property="Background" Value="{StaticResource Bg}"/>
<Setter Property="Foreground" Value="{StaticResource Fg}"/>
<Setter Property="FontFamily" Value="Segoe UI"/>
<Setter Property="FontSize" Value="14"/>
</Style>
<Style TargetType="Button">
<Setter Property="Margin" Value="6"/>
<Setter Property="Padding" Value="10,6"/>
</Style>
<Style TargetType="ComboBox">
<Setter Property="Margin" Value="6"/>
<Setter Property="MinWidth" Value="160"/>
</Style>
<Style TargetType="TextBox">
<Setter Property="Margin" Value="10"/>
<Setter Property="Background" Value="#0b1020"/>
<Setter Property="Foreground" Value="{StaticResource Fg}"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="AcceptsReturn" Value="True"/>
<Setter Property="TextWrapping" Value="Wrap"/>
<Setter Property="VerticalScrollBarVisibility" Value="Auto"/>
<Setter Property="HorizontalScrollBarVisibility" Value="Disabled"/>
</Style>
<!-- Card -->
<Style x:Key="Card" TargetType="Border">
<Setter Property="Background" Value="{StaticResource CardBg}"/>
<Setter Property="CornerRadius" Value="12"/>
<Setter Property="Padding" Value="8"/>
<Setter Property="Margin" Value="0,16,0,0"/>
<Setter Property="SnapsToDevicePixels" Value="True"/>
</Style>
<!-- Pulsanti rotondi (base, small, green) -->
<Style x:Key="RoundButton" TargetType="Button">
<Setter Property="Width" Value="40"/>
<Setter Property="Height" Value="40"/>
<Setter Property="FontSize" Value="16"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="Background" Value="{StaticResource CardBg}"/>
<Setter Property="Foreground" Value="{StaticResource Fg}"/>
<Setter Property="BorderBrush" Value="#243047"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="20">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="RoundButtonSmall" TargetType="Button" BasedOn="{StaticResource RoundButton}">
<Setter Property="Width" Value="32"/>
<Setter Property="Height" Value="32"/>
<Setter Property="FontSize" Value="14"/>
</Style>
<Style x:Key="RoundButtonGreen" TargetType="Button" BasedOn="{StaticResource RoundButton}">
<Setter Property="Background" Value="{StaticResource AccentGreen}"/>
<Setter Property="BorderBrush" Value="{StaticResource AccentGreenBorder}"/>
<Setter Property="Foreground" Value="White"/>
</Style>
<!-- Pulsante “pill” (se ti serve altrove) -->
<Style x:Key="PillButton" TargetType="Button">
<Setter Property="Background" Value="#D0D3DA"/>
<Setter Property="Foreground" Value="#111318"/>
<Setter Property="BorderBrush" Value="#B6BBC7"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Padding" Value="20,10"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="10">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Application.Resources>
</Application>