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>
|
2024-05-21 23:07:51 +01:00
|
|
|
<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">
|
2024-05-21 23:07:51 +01:00
|
|
|
<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">
|
2024-05-21 23:07:51 +01:00
|
|
|
<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">
|
2024-05-21 23:07:51 +01:00
|
|
|
<Setter Property="Background" Value="{StaticResource SPT_Background_Light}" />
|
2024-05-01 10:31:55 -04:00
|
|
|
<Setter Property="FontWeight" Value="SemiBold" />
|
2024-05-21 23:07:51 +01:00
|
|
|
<Setter Property="Foreground" Value="{StaticResource SPT_Brush_Lighter}" />
|
2024-05-01 10:31:55 -04:00
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style Selector="TextBox:focus">
|
2024-05-21 23:07:51 +01:00
|
|
|
<Setter Property="Foreground" Value="{StaticResource SPT_Brush_Lighter}" />
|
2024-05-01 10:31:55 -04:00
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style Selector="TextBox:pointerover">
|
2024-05-21 23:07:51 +01:00
|
|
|
<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" />
|
2024-05-21 23:07:51 +01:00
|
|
|
<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">
|
2024-05-21 23:07:51 +01:00
|
|
|
<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">
|
2024-05-21 23:07:51 +01:00
|
|
|
<Setter Property="Foreground" Value="{StaticResource SPT_Foreground_Light}" />
|
2024-05-01 10:31:55 -04:00
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style Selector="Label.yellow">
|
2024-05-21 23:07:51 +01:00
|
|
|
<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">
|
2024-05-21 23:07:51 +01:00
|
|
|
<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%">
|
2024-05-21 23:07:51 +01:00
|
|
|
<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">
|
2024-05-21 23:07:51 +01:00
|
|
|
<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">
|
2024-05-21 23:07:51 +01:00
|
|
|
<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">
|
2024-05-21 23:07:51 +01:00
|
|
|
<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">
|
2024-05-21 23:07:51 +01:00
|
|
|
<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" />
|
2024-05-21 23:07:51 +01:00
|
|
|
<Setter Property="BorderBrush" Value="{StaticResource SPT_Brush_DarkGrayBlue}" />
|
2024-05-01 10:31:55 -04:00
|
|
|
</Style>
|
|
|
|
|
|
|
|
<!-- Button yellow -->
|
|
|
|
<Style Selector="Button.yellow">
|
2024-05-21 23:07:51 +01:00
|
|
|
<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" />
|
2024-05-21 23:07:51 +01:00
|
|
|
<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">
|
2024-05-21 23:07:51 +01:00
|
|
|
<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" />
|
2024-05-21 23:07:51 +01:00
|
|
|
<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">
|
2024-05-21 23:07:51 +01:00
|
|
|
<Setter Property="Foreground" Value="{StaticResource SPT_Brush_Lighter}" />
|
2024-05-01 10:31:55 -04:00
|
|
|
<Setter Property="Background" Value="Transparent" />
|
2024-05-21 23:07:51 +01:00
|
|
|
<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">
|
2024-05-21 23:07:51 +01:00
|
|
|
<Setter Property="TextBlock.Foreground" Value="{StaticResource SPT_Brush_Yellow}" />
|
2024-05-01 10:31:55 -04:00
|
|
|
<Setter Property="Background" Value="Transparent" />
|
2024-05-21 23:07:51 +01:00
|
|
|
<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">
|
2024-05-21 23:07:51 +01:00
|
|
|
<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">
|
2024-05-21 23:07:51 +01:00
|
|
|
<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">
|
2024-05-21 23:07:51 +01:00
|
|
|
<Setter Property="Foreground" Value="{StaticResource SPT_Brush_Yellow}" />
|
2023-08-25 23:46:11 -04:00
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style Selector="Button.link:pressed TextBlock">
|
2024-05-21 23:07:51 +01:00
|
|
|
<Setter Property="Foreground" Value="{StaticResource SPT_Brush_DarkGrayBlue}" />
|
2023-08-25 23:46:11 -04:00
|
|
|
</Style>
|
|
|
|
|
|
|
|
<Style Selector="Button.link:pointerover /template/ ContentPresenter">
|
2024-05-21 23:07:51 +01:00
|
|
|
<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">
|
2024-05-21 23:07:51 +01:00
|
|
|
<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">
|
2024-05-21 23:07:51 +01:00
|
|
|
<Setter Property="Foreground" Value="{StaticResource SPT_Brush_Lighter}" />
|
2024-05-01 10:31:55 -04:00
|
|
|
<Setter Property="Background" Value="Transparent" />
|
2024-05-21 23:07:51 +01:00
|
|
|
<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">
|
2024-05-21 23:07:51 +01:00
|
|
|
<Setter Property="TextBlock.Foreground" Value="{StaticResource SPT_Brush_Yellow}" />
|
2024-05-01 10:31:55 -04:00
|
|
|
<Setter Property="Background" Value="Transparent" />
|
2024-05-21 23:07:51 +01:00
|
|
|
<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">
|
2024-05-21 23:07:51 +01:00
|
|
|
<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" />
|
2024-05-21 23:07:51 +01:00
|
|
|
<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">
|
2024-05-21 23:07:51 +01:00
|
|
|
<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>
|