Files
NebulaLauncher/Nebula.Launcher/Assets/Style.axaml

116 lines
4.5 KiB
Plaintext
Raw Normal View History

2025-06-20 16:27:42 +03:00
<Styles xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
2025-06-19 21:12:42 +03:00
xmlns:pages="clr-namespace:Nebula.Launcher.ViewModels.Pages">
2025-06-20 16:27:42 +03:00
<!-- Base Window Style -->
2024-12-22 16:38:47 +03:00
<Style Selector="Window">
2025-01-23 20:43:52 +03:00
<Setter Property="Background" Value="{StaticResource DefaultBackground}" />
2024-12-22 16:38:47 +03:00
</Style>
2025-06-20 16:27:42 +03:00
<!-- Common Border Style -->
2024-12-22 16:38:47 +03:00
<Style Selector="Border">
2025-01-22 21:06:05 +03:00
<Setter Property="CornerRadius" Value="10" />
2024-12-22 16:38:47 +03:00
</Style>
2025-06-20 16:27:42 +03:00
<!-- Common Label Style -->
2024-12-22 16:38:47 +03:00
<Style Selector="Label">
<Setter Property="Foreground" Value="#f7f7ff" />
</Style>
2025-06-20 16:27:42 +03:00
<!-- Common ItemsControl Style -->
2025-01-20 16:35:48 +03:00
<Style Selector="ItemsControl">
2025-01-21 20:44:36 +03:00
<Setter Property="Background" Value="Transparent" />
2025-01-20 16:35:48 +03:00
</Style>
2025-06-20 16:27:42 +03:00
<!-- General Button Style -->
2024-12-22 16:38:47 +03:00
<Style Selector="Button">
<Setter Property="BorderBrush" Value="#343334" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="Padding" Value="5" />
<Setter Property="CornerRadius" Value="10" />
2025-01-21 20:44:36 +03:00
<Setter Property="Background" Value="Transparent" />
2024-12-22 16:38:47 +03:00
</Style>
2025-06-20 16:27:42 +03:00
<!-- Button State Overrides -->
2024-12-22 16:38:47 +03:00
<Style Selector="Button:pressed">
2025-01-21 20:44:36 +03:00
<Setter Property="RenderTransform" Value="{x:Null}" />
<Setter Property="BorderThickness" Value="0,0,0,2" />
<Setter Property="Background" Value="Transparent" />
2024-12-22 16:38:47 +03:00
</Style>
2025-01-20 16:35:48 +03:00
<Style Selector="Button:pointerover">
2025-01-21 20:44:36 +03:00
<Setter Property="RenderTransform" Value="{x:Null}" />
2025-01-22 21:06:05 +03:00
<Setter Property="BorderThickness" Value="0,0,0,0" />
2024-12-22 16:38:47 +03:00
</Style>
2025-06-20 16:27:42 +03:00
<!-- ViewSelectButton Specialization -->
2024-12-22 16:38:47 +03:00
<Style Selector="Button.ViewSelectButton">
<Setter Property="CornerRadius" Value="0,8,8,0" />
<Setter Property="Margin" Value="0,0,0,5" />
<Setter Property="Padding" Value="8" />
</Style>
<Style Selector="Button.ViewSelectButton:pressed">
<Setter Property="BorderThickness" Value="0,0,0,0" />
</Style>
2025-06-20 16:27:42 +03:00
<!-- TextBox Styles -->
2024-12-22 16:38:47 +03:00
<Style Selector="TextBox">
<Setter Property="Foreground" Value="#f7f7ff" />
<Setter Property="SelectionForegroundBrush" Value="#f7f7ff" />
2025-06-20 16:27:42 +03:00
<Setter Property="BorderThickness" Value="0" />
2024-12-22 16:38:47 +03:00
<Setter Property="BorderBrush" Value="#f7f7ff" />
2025-01-22 21:06:05 +03:00
<Setter Property="Background" Value="Transparent" />
2024-12-22 16:38:47 +03:00
</Style>
2025-06-20 16:27:42 +03:00
<Style Selector="TextBox:focus /template/ Border#PART_BorderElement">
<Setter Property="BorderBrush" Value="White" />
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderThickness" Value="0,0,0,1" />
</Style>
<!-- ListBoxItem Styles -->
2025-01-23 20:43:52 +03:00
<Style Selector="ListBoxItem /template/ ContentPresenter">
2024-12-22 16:38:47 +03:00
<Setter Property="CornerRadius" Value="0,8,8,0" />
<Setter Property="Margin" Value="0,0,0,5" />
<Setter Property="Padding" Value="8" />
2025-01-21 20:44:36 +03:00
<Setter Property="Background" Value="Transparent" />
2024-12-22 16:38:47 +03:00
</Style>
2025-01-14 22:10:16 +03:00
2025-01-23 20:43:52 +03:00
<Style Selector="ListBoxItem:selected /template/ ContentPresenter">
<Setter Property="CornerRadius" Value="0,8,8,0" />
2025-02-02 10:57:29 +03:00
<Setter Property="Background">
2025-06-20 16:27:42 +03:00
<Setter.Value>
<LinearGradientBrush EndPoint="100%,50%" StartPoint="0%,50%">
<GradientStop Color="#ae4c47" Offset="0.0" />
<GradientStop Color="#D95F59" Offset="0.2" />
<GradientStop Color="#D95F59" Offset="1.0" />
</LinearGradientBrush>
</Setter.Value>
2025-02-02 10:57:29 +03:00
</Setter>
2025-01-23 20:43:52 +03:00
<Setter Property="BoxShadow" Value="0 0 15 1 #1212" />
</Style>
2025-06-20 16:27:42 +03:00
2025-01-23 20:43:52 +03:00
<Style Selector="ListBoxItem:pointerover">
<Setter Property="CornerRadius" Value="0,8,8,0" />
<Setter Property="Margin" Value="0,0,5,0" />
2025-01-22 21:06:05 +03:00
</Style>
2025-06-20 16:27:42 +03:00
2025-01-23 20:43:52 +03:00
<Style Selector="ListBoxItem:pressed /template/ ContentPresenter">
<Setter Property="CornerRadius" Value="0,8,8,0" />
<Setter Property="Background" Value="{StaticResource DefaultSelected}" />
2024-12-22 21:38:19 +03:00
</Style>
2025-01-14 22:10:16 +03:00
2025-06-20 16:27:42 +03:00
<!-- Combined ConfigBorder Styles -->
<Style Selector="pages|ComplexUnitConfigControl.ConfigBorder,
pages|ArrayUnitConfigControl.ConfigBorder,
pages|StringUnitConfigControl.ConfigBorder,
pages|IntUnitConfigControl.ConfigBorder,
pages|FloatUnitConfigControl.ConfigBorder">
2025-06-28 14:05:19 +03:00
<Setter Property="Background" Value="#33333355" />
<Setter Property="CornerRadius" Value="0"/>
<Setter Property="BorderThickness" Value="1,0,0,2" />
<Setter Property="BorderBrush" Value="#3f3f3f5f" />
2025-06-20 16:27:42 +03:00
</Style>
2025-01-14 22:10:16 +03:00
</Styles>