This repository was archived by the owner on Apr 12, 2026. It is now read-only.
forked from Stephanzion/YandexMusicBetaMod
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAppMain.axaml
More file actions
105 lines (93 loc) · 4.54 KB
/
AppMain.axaml
File metadata and controls
105 lines (93 loc) · 4.54 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
<Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:YandexMusicPatcherGui"
x:Class="YandexMusicPatcherGui.AppMain"
RequestedThemeVariant="Dark">
<Application.Styles>
<Style Selector="Button">
<Setter Property="Foreground" Value="White" />
<Setter Property="Padding" Value="10,5" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="FontSize" Value="11" />
<Setter Property="Template">
<ControlTemplate>
<Grid>
<Border x:Name="BlurBackground"
CornerRadius="4"
BorderThickness="1"
BorderBrush="#55FFFFFF"
Background="#22FFFFFF" />
<ContentPresenter HorizontalAlignment="Center"
VerticalAlignment="Center"
Margin="4,2"
Content="{TemplateBinding Content}"
Foreground="{TemplateBinding Foreground}" />
</Grid>
</ControlTemplate>
</Setter>
</Style>
<Style Selector="Button:pointerover /template/ Border#BlurBackground">
<Setter Property="Background" Value="#33FFFFFF" />
</Style>
<Style Selector="Button:pressed /template/ Border#BlurBackground">
<Setter Property="Background" Value="#55FFFFFF" />
</Style>
<Style Selector="Button:disabled">
<Setter Property="Opacity" Value="0.5" />
</Style>
<Style Selector="CheckBox">
<Setter Property="Foreground" Value="White" />
<Setter Property="Margin" Value="0,4,0,4" />
</Style>
<Style Selector="TextBox">
<Setter Property="Background" Value="#222" />
<Setter Property="Foreground" Value="White" />
<Setter Property="BorderBrush" Value="#555" />
<Setter Property="BorderThickness" Value="1" />
</Style>
<Style Selector="TextBlock">
<Setter Property="Foreground" Value="White" />
</Style>
<Style Selector="ProgressBar">
<Setter Property="Height" Value="64" />
<Setter Property="Foreground" Value="#FFFFFF" />
<Setter Property="Background" Value="#22FFFFFF" />
<Setter Property="BorderBrush" Value="#55FFFFFF" />
<Setter Property="BorderThickness" Value="0" />
</Style>
<Style Selector="ToolTip">
<Setter Property="Background" Value="#333" />
<Setter Property="Foreground" Value="White" />
<Setter Property="BorderBrush" Value="#555" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="Padding" Value="3" />
<Setter Property="CornerRadius" Value="10" />
</Style>
<Style Selector="ToggleSwitch">
<Setter Property="Foreground" Value="White" />
<Setter Property="Template">
<ControlTemplate>
<Grid ColumnDefinitions="*,Auto">
<ContentPresenter Content="{TemplateBinding Content}" VerticalAlignment="Center" />
<Grid Grid.Column="1" Name="PART_SwitchRoot" VerticalAlignment="Center"
HorizontalAlignment="Right" Margin="10,0,0,0">
<Border Name="PART_Background" Background="#33FFFFFF" CornerRadius="10" Width="44"
Height="20" />
<Panel Name="PART_MovingKnobs" HorizontalAlignment="Left" VerticalAlignment="Center">
<Border Background="White" CornerRadius="8" Width="16" Height="16" Margin="2" />
</Panel>
</Grid>
</Grid>
</ControlTemplate>
</Setter>
</Style>
<Style Selector="ToggleSwitch:checked /template/ Border#PART_Background">
<Setter Property="Background" Value="#66FFFFFF" />
</Style>
<Style Selector="ToggleSwitch:checked /template/ Panel#PART_MovingKnobs">
<Setter Property="HorizontalAlignment" Value="Right" />
</Style>
</Application.Styles>
<Application.Resources>
</Application.Resources>
</Application>