297 lines
13 KiB
Plaintext
Raw Normal View History

2023-05-11 23:11:39 -04:00
<Styles xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
2024-05-01 10:31:55 -04:00
xmlns:cc="using:SPTInstaller.CustomControls">
<Design.PreviewWith>
<StackPanel Spacing="5" Background="{StaticResource SPT_Background_Dark}">
2024-05-01 10:31:55 -04:00
<Button Classes="icon" x:Name="testBtn">
<Path Data="{StaticResource Bug}"
Fill="{Binding ElementName=testBtn, Path=Foreground}" />
2024-02-06 18:59:39 -05:00
</Button>
2024-05-01 10:31:55 -04:00
<TextBox Text="Some cool text here" Margin="5" />
<TextBox Watermark="This is a watermark" Margin="5" />
2024-07-04 12:25:19 -04:00
<CheckBox Content="sldkflskdf" />
2024-05-01 10:31:55 -04:00
</StackPanel>
</Design.PreviewWith>
<!-- Add Styles Here -->
<!-- TitleBar Styles -->
<Style Selector="cc|TitleBar">
<Setter Property="Background" Value="{StaticResource SPT_Background_Dark}" />
<Setter Property="Foreground" Value="{StaticResource SPT_Foreground_Light}" />
<Setter Property="ButtonForeground" Value="{StaticResource SPT_Brush_DarkGrayBlue}" />
2024-05-01 10:31:55 -04:00
</Style>
<Style Selector="cc|TitleBar.versiontag">
<Setter Property="BorderBrush" Value="{StaticResource SPT_Brush_Yellow}" />
2024-05-01 10:31:55 -04:00
<Setter Property="BorderThickness" Value="0 0 0 2" />
</Style>
<!-- TextBox Styles -->
<!-- SourceRef: https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Themes.Fluent/Controls/TextBox.xaml -->
<Style Selector="TextBox">
<Setter Property="Background" Value="{StaticResource SPT_Background_Light}" />
2024-05-01 10:31:55 -04:00
<Setter Property="FontWeight" Value="SemiBold" />
<Setter Property="Foreground" Value="{StaticResource SPT_Brush_Lighter}" />
2024-05-01 10:31:55 -04:00
</Style>
<Style Selector="TextBox:focus">
<Setter Property="Foreground" Value="{StaticResource SPT_Brush_Lighter}" />
2024-05-01 10:31:55 -04:00
</Style>
<Style Selector="TextBox:pointerover">
<Setter Property="Foreground" Value="{StaticResource SPT_Brush_Lighter}" />
2024-05-01 10:31:55 -04:00
</Style>
<Style Selector="TextBox:pointerover /template/ Border#PART_BorderElement">
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderBrush" Value="DimGray" />
</Style>
<Style
Selector="TextBox:pointerover /template/ TextBlock#PART_Watermark, TextBox:focus /template/ TextBlock#PART_FloatingWatermark">
<Setter Property="Foreground" Value="DimGray" />
</Style>
<Style
Selector="TextBox:focus /template/ TextBlock#PART_Watermark, TextBox:focus /template/ TextBlock#PART_FloatingWatermark">
<Setter Property="Foreground" Value="DimGray" />
</Style>
<Style
Selector="TextBox /template/ TextBlock#PART_Watermark, TextBox:focus /template/ TextBlock#PART_FloatingWatermark">
<Setter Property="Foreground" Value="White" />
</Style>
<Style Selector="TextBox:focus /template/ Border#PART_BorderElement">
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderBrush" Value="{StaticResource SPT_Brush_Yellow}" />
2024-05-01 10:31:55 -04:00
<Setter Property="BorderThickness" Value="1" />
</Style>
2023-05-11 23:11:39 -04:00
2023-07-29 14:26:45 -04:00
<!-- TextBlock Styles -->
<Style Selector="TextBlock">
<Setter Property="Foreground" Value="{StaticResource SPT_Foreground_Light}" />
2024-05-01 10:31:55 -04:00
</Style>
<!-- Label Styles -->
<!-- SourceRef: https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Themes.Fluent/Controls/Label.xaml -->
<Style Selector="Label">
<Setter Property="Foreground" Value="{StaticResource SPT_Foreground_Light}" />
2024-05-01 10:31:55 -04:00
</Style>
<Style Selector="Label.yellow">
<Setter Property="Foreground" Value="{StaticResource SPT_Brush_Yellow}" />
2024-05-01 10:31:55 -04:00
</Style>
<Style Selector="Label.dark">
<Setter Property="Foreground" Value="DimGray" />
</Style>
<Style Selector="Label.versionMismatch">
<Setter Property="Foreground" Value="OrangeRed" />
</Style>
<!-- ProgressBar Styles -->
<!-- SourceRef: https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Themes.Fluent/Controls/ProgressBar.xaml -->
<Style Selector="ProgressBar">
<Setter Property="Foreground" Value="{StaticResource SPT_Brush_Yellow}" />
<Setter Property="Background" Value="{StaticResource SPT_Brush_DarkGrayBlue}" />
2024-05-01 10:31:55 -04:00
</Style>
<Style Selector="ProgressBar.error">
<Setter Property="Foreground" Value="Red" />
<Style.Animations>
<Animation Duration="0:0:0.5" FillMode="Forward">
<KeyFrame Cue="0%">
<Setter Property="Foreground" Value="{StaticResource SPT_Brush_Yellow}" />
2024-05-01 10:31:55 -04:00
<Setter Property="Value" Value="0" />
</KeyFrame>
<KeyFrame Cue="100%">
<Setter Property="Foreground" Value="Red" />
<Setter Property="Value" Value="100" />
</KeyFrame>
</Animation>
</Style.Animations>
</Style>
<!-- Seperator Styles -->
<!-- SourceRef: https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Themes.Fluent/Controls/Separator.xaml -->
<Style Selector="Separator">
<Setter Property="Background" Value="{StaticResource SPT_Background_Dark}" />
2024-05-01 10:31:55 -04:00
</Style>
<!-- Button Styles -->
<!-- SourceRef: https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Themes.Fluent/Controls/Button.xaml -->
<Style Selector="Button">
<Setter Property="Background" Value="{StaticResource SPT_Brush_DarkGrayBlue}" />
<Setter Property="Foreground" Value="{StaticResource SPT_White}" />
2024-05-01 10:31:55 -04:00
</Style>
<Style Selector="Button:pointerover /template/ ContentPresenter">
<Setter Property="Background" Value="{StaticResource SPT_LightGrayBlue}" />
<Setter Property="BorderBrush" Value="{StaticResource SPT_LightGrayBlue}" />
<Setter Property="Foreground" Value="{StaticResource SPT_White}" />
2024-05-01 10:31:55 -04:00
<Setter Property="BorderThickness" Value="1" />
</Style>
<Style Selector="Button:pressed /template/ ContentPresenter">
<Setter Property="Background" Value="{StaticResource SPT_Brush_Yellow}" />
2024-05-01 10:31:55 -04:00
</Style>
<Style Selector="Button:disabled /template/ ContentPresenter">
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderBrush" Value="{StaticResource SPT_Brush_DarkGrayBlue}" />
2024-05-01 10:31:55 -04:00
</Style>
<!-- Button yellow -->
<Style Selector="Button.yellow">
<Setter Property="Background" Value="{StaticResource SPT_Brush_Yellow}" />
<Setter Property="Foreground" Value="{StaticResource SPT_Background_Dark}" />
2024-05-01 10:31:55 -04:00
<Setter Property="FontWeight" Value="SemiBold" />
</Style>
<Style Selector="Button.yellow:pointerover">
<Setter Property="FontWeight" Value="SemiBold" />
</Style>
<Style Selector="Button.yellow:pointerover /template/ ContentPresenter">
<Setter Property="Background" Value="Gold" />
<Setter Property="BorderBrush" Value="{StaticResource SPT_Brush_DarkGrayBlue}" />
<Setter Property="Foreground" Value="{StaticResource SPT_Background_Dark}" />
2024-05-01 10:31:55 -04:00
<Setter Property="BorderThickness" Value="1" />
</Style>
<Style Selector="Button.yellow:pressed /template/ ContentPresenter">
<Setter Property="Background" Value="{StaticResource SPT_Brush_Lighter}" />
2024-05-01 10:31:55 -04:00
</Style>
<Style Selector="Button.yellow:disabled /template/ ContentPresenter">
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderBrush" Value="{StaticResource SPT_Brush_DarkGrayBlue}" />
2024-05-01 10:31:55 -04:00
</Style>
2023-05-11 23:11:39 -04:00
2023-07-30 16:15:52 -04:00
<!-- Button outlined Style -->
<Style Selector="Button.outlined">
<Setter Property="Foreground" Value="{StaticResource SPT_Brush_Lighter}" />
2024-05-01 10:31:55 -04:00
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderBrush" Value="{StaticResource SPT_Brush_DarkGrayBlue}" />
2024-05-01 10:31:55 -04:00
<Setter Property="BorderThickness" Value="2" />
2023-07-30 16:15:52 -04:00
</Style>
<Style Selector="Button.outlined:pointerover /template/ ContentPresenter">
<Setter Property="TextBlock.Foreground" Value="{StaticResource SPT_Brush_Yellow}" />
2024-05-01 10:31:55 -04:00
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderBrush" Value="{StaticResource SPT_Brush_Yellow}" />
2024-05-01 10:31:55 -04:00
<Setter Property="BorderThickness" Value="2" />
2023-07-30 16:15:52 -04:00
</Style>
<Style Selector="Button.outlined:pressed /template/ ContentPresenter">
<Setter Property="TextBlock.Foreground" Value="{StaticResource SPT_Brush_DarkGrayBlue}" />
2024-05-01 10:31:55 -04:00
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderBrush" Value="Transparent" />
<Setter Property="BorderThickness" Value="0" />
2023-07-30 16:15:52 -04:00
</Style>
2023-08-25 23:46:11 -04:00
<!-- Button Link Style -->
<Style Selector="Button.link">
<Setter Property="Foreground" Value="{StaticResource SPT_Brush_Lighter}" />
2024-05-01 10:31:55 -04:00
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderBrush" Value="Transparent" />
<Setter Property="BorderThickness" Value="0 0 0 1" />
2023-08-25 23:46:11 -04:00
<Setter Property="ContentTemplate">
<Setter.Value>
<DataTemplate>
2024-05-01 10:31:55 -04:00
<TextBlock Text="{Binding $parent[Button].Content}" TextDecorations="Underline" />
2023-08-25 23:46:11 -04:00
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
<Style Selector="Button.link:pointerover TextBlock">
<Setter Property="Foreground" Value="{StaticResource SPT_Brush_Yellow}" />
2023-08-25 23:46:11 -04:00
</Style>
<Style Selector="Button.link:pressed TextBlock">
<Setter Property="Foreground" Value="{StaticResource SPT_Brush_DarkGrayBlue}" />
2023-08-25 23:46:11 -04:00
</Style>
<Style Selector="Button.link:pointerover /template/ ContentPresenter">
<Setter Property="TextBlock.Foreground" Value="{StaticResource SPT_Brush_Yellow}" />
2024-05-01 10:31:55 -04:00
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderBrush" Value="Transparent" />
<Setter Property="BorderThickness" Value="0 0 0 1" />
2023-08-25 23:46:11 -04:00
</Style>
<Style Selector="Button.link:pressed /template/ ContentPresenter">
<Setter Property="TextBlock.Foreground" Value="{StaticResource SPT_Brush_DarkGrayBlue}" />
2024-05-01 10:31:55 -04:00
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderBrush" Value="Transparent" />
<Setter Property="BorderThickness" Value="0 0 0 1" />
2023-08-25 23:46:11 -04:00
</Style>
<!-- Button outlinedTLCorner Style -->
2024-05-01 10:31:55 -04:00
<Style Selector="Button.outlinedTLCorner">
<Setter Property="Foreground" Value="{StaticResource SPT_Brush_Lighter}" />
2024-05-01 10:31:55 -04:00
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderBrush" Value="{StaticResource SPT_Brush_DarkGrayBlue}" />
2024-05-01 10:31:55 -04:00
<Setter Property="BorderThickness" Value="2 2 0 0" />
</Style>
<Style Selector="Button.outlinedTLCorner:pointerover /template/ ContentPresenter">
<Setter Property="TextBlock.Foreground" Value="{StaticResource SPT_Brush_Yellow}" />
2024-05-01 10:31:55 -04:00
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderBrush" Value="{StaticResource SPT_Brush_Yellow}" />
2024-05-01 10:31:55 -04:00
<Setter Property="BorderThickness" Value="2 2 0 0" />
</Style>
<Style Selector="Button.outlinedTLCorner:pressed /template/ ContentPresenter">
<Setter Property="TextBlock.Foreground" Value="{StaticResource SPT_Brush_DarkGrayBlue}" />
2024-05-01 10:31:55 -04:00
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderBrush" Value="Transparent" />
<Setter Property="BorderThickness" Value="0" />
</Style>
2024-02-06 18:59:39 -05:00
<!-- Button icon Style -->
<Style Selector="Button.icon">
2024-05-01 10:31:55 -04:00
<Setter Property="Background" Value="Transparent" />
<Setter Property="Foreground" Value="White" />
2024-02-06 18:59:39 -05:00
</Style>
<Style Selector="Button.icon:pointerover">
2024-05-01 10:31:55 -04:00
<Setter Property="Background" Value="Transparent" />
<Setter Property="Foreground" Value="{StaticResource SPT_Brush_Yellow}" />
2024-02-06 18:59:39 -05:00
</Style>
<Style Selector="Button.icon:pointerover /template/ ContentPresenter">
2024-05-01 10:31:55 -04:00
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderBrush" Value="Transparent" />
2024-02-06 18:59:39 -05:00
</Style>
<Style Selector="Button.icon:pressed">
<Setter Property="Foreground" Value="{StaticResource SPT_DarkGrayBlue}"></Setter>
2024-02-06 18:59:39 -05:00
</Style>
2024-07-04 12:25:19 -04:00
<!-- Checkbox Styles -->
<Style Selector="CheckBox">
<Setter Property="Foreground" Value="White"/>
<Style.Resources>
<SolidColorBrush x:Key="CheckBoxCheckBackgroundStrokeUnchecked" Color="DimGray"/>
</Style.Resources>
</Style>
<Style Selector="CheckBox:pointerover /template/ ContentPresenter#ContentPresenter">
<Setter Property="Foreground" Value="White"/>
</Style>
<Style Selector="CheckBox:checked /template/ ContentPresenter#ContentPresenter">
<Setter Property="Foreground" Value="White"/>
</Style>
<Style Selector="CheckBox:pointerover /template/ Border#NormalRectangle">
<Setter Property="BorderBrush" Value="{StaticResource SPT_Yellow}"/>
</Style>
<Style Selector="CheckBox:checked /template/ Border#NormalRectangle">
<Setter Property="BorderBrush" Value="{StaticResource SPT_Yellow}"/>
<Setter Property="Background" Value="{StaticResource SPT_DarkGrayBlue}"/>
</Style>
<Style Selector="CheckBox:checked /template/ Path#CheckGlyph">
<Setter Property="Fill" Value="{StaticResource SPT_Yellow}"/>
</Style>
2023-05-11 23:11:39 -04:00
</Styles>