diff options
| author | Ac_K <Acoustik666@gmail.com> | 2022-06-23 20:59:02 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-23 15:59:02 -0300 |
| commit | 8aff17a93c27dea7339c20f9cf73535e110ffb72 (patch) | |
| tree | 9f51f16f61a538099aa388a73a88a5f988ad76f2 /Ryujinx.Ava/Assets/Styles | |
| parent | f2a41b7a1cad027cc1f1f8f687cda6ab42030eb9 (diff) | |
UI: Some Avalonia cleanup (#3358)
Diffstat (limited to 'Ryujinx.Ava/Assets/Styles')
| -rw-r--r-- | Ryujinx.Ava/Assets/Styles/BaseDark.xaml | 14 | ||||
| -rw-r--r-- | Ryujinx.Ava/Assets/Styles/BaseLight.xaml | 14 | ||||
| -rw-r--r-- | Ryujinx.Ava/Assets/Styles/Styles.xaml | 34 |
3 files changed, 33 insertions, 29 deletions
diff --git a/Ryujinx.Ava/Assets/Styles/BaseDark.xaml b/Ryujinx.Ava/Assets/Styles/BaseDark.xaml index b80cb11f..e32c3d08 100644 --- a/Ryujinx.Ava/Assets/Styles/BaseDark.xaml +++ b/Ryujinx.Ava/Assets/Styles/BaseDark.xaml @@ -1,9 +1,7 @@ -<Styles - xmlns="https://github.com/avaloniaui" - xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> +<Styles xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <StyleInclude Source="avares://Ryujinx.Ava/Assets/Styles/Styles.xaml" /> <Design.PreviewWith> - <Border Padding="20" Height="2000"> + <Border Height="2000" Padding="20"> <StackPanel Spacing="5"> <TextBlock Text="Code Font Family" /> <Grid RowDefinitions="*,Auto"> @@ -27,8 +25,12 @@ Name="btnRem" HorizontalAlignment="Right" Content="Add" /> - <TextBox Width="100" VerticalAlignment="Center" Text="Rrrrr" Watermark="Hello" - UseFloatingWatermark="True" /> + <TextBox + Width="100" + VerticalAlignment="Center" + Text="Rrrrr" + UseFloatingWatermark="True" + Watermark="Hello" /> <CheckBox>Test Check</CheckBox> </StackPanel> </Grid> diff --git a/Ryujinx.Ava/Assets/Styles/BaseLight.xaml b/Ryujinx.Ava/Assets/Styles/BaseLight.xaml index c2739895..1d1e4fae 100644 --- a/Ryujinx.Ava/Assets/Styles/BaseLight.xaml +++ b/Ryujinx.Ava/Assets/Styles/BaseLight.xaml @@ -1,9 +1,7 @@ -<Styles - xmlns="https://github.com/avaloniaui" - xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> +<Styles xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <StyleInclude Source="avares://Ryujinx.Ava/Assets/Styles/Styles.xaml" /> <Design.PreviewWith> - <Border Padding="20" Height="2000"> + <Border Height="2000" Padding="20"> <StackPanel Spacing="5"> <TextBlock Text="Code Font Family" /> <Grid RowDefinitions="*,Auto"> @@ -27,8 +25,12 @@ Name="btnRem" HorizontalAlignment="Right" Content="Add" /> - <TextBox Width="100" VerticalAlignment="Center" Text="Rrrrr" Watermark="Hello" - UseFloatingWatermark="True" /> + <TextBox + Width="100" + VerticalAlignment="Center" + Text="Rrrrr" + UseFloatingWatermark="True" + Watermark="Hello" /> <CheckBox>Test Check</CheckBox> </StackPanel> </Grid> diff --git a/Ryujinx.Ava/Assets/Styles/Styles.xaml b/Ryujinx.Ava/Assets/Styles/Styles.xaml index 422e6fa4..5ab0a861 100644 --- a/Ryujinx.Ava/Assets/Styles/Styles.xaml +++ b/Ryujinx.Ava/Assets/Styles/Styles.xaml @@ -1,10 +1,10 @@ <Styles xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:ui="clr-namespace:FluentAvalonia.UI.Controls;assembly=FluentAvalonia" - xmlns:sys="clr-namespace:System;assembly=netstandard"> + xmlns:sys="clr-namespace:System;assembly=netstandard" + xmlns:ui="clr-namespace:FluentAvalonia.UI.Controls;assembly=FluentAvalonia"> <Design.PreviewWith> - <Border Padding="20" Height="2000"> + <Border Height="2000" Padding="20"> <StackPanel Spacing="5"> <TextBlock Text="Code Font Family" /> <Grid RowDefinitions="*,Auto"> @@ -22,15 +22,19 @@ <StackPanel Orientation="Horizontal"> <ToggleButton Name="btnAdd" - HorizontalAlignment="Right" Height="28" + HorizontalAlignment="Right" Content="Addy" /> <Button Name="btnRem" HorizontalAlignment="Right" Content="Add" /> - <TextBox Width="100" VerticalAlignment="Center" Text="Rrrrr" Watermark="Hello" - UseFloatingWatermark="True" /> + <TextBox + Width="100" + VerticalAlignment="Center" + Text="Rrrrr" + UseFloatingWatermark="True" + Watermark="Hello" /> <CheckBox>Test Check</CheckBox> </StackPanel> </Grid> @@ -62,13 +66,10 @@ <Style Selector="Image.huge"> <Setter Property="Width" Value="120" /> </Style> - <Style Selector="RadioButton"> - <Setter Property="VerticalContentAlignment" Value="Center" /> - </Style> - <Style Selector="#TitleBarHost > Image"> + <Style Selector="#TitleBarHost > Image"> <Setter Property="Margin" Value="10" /> </Style> - <Style Selector="#TitleBarHost > Label"> + <Style Selector="#TitleBarHost > Label"> <Setter Property="Margin" Value="5" /> <Setter Property="FontSize" Value="14" /> </Style> @@ -225,12 +226,12 @@ <StaticResource x:Key="ListViewItemBackgroundPointerOver" ResourceKey="SystemAccentColorDark2" /> <StaticResource x:Key="ListViewItemBackgroundSelectedPressed" ResourceKey="ThemeAccentColorBrush" /> <StaticResource x:Key="ListViewItemBackgroundSelectedPointerOver" ResourceKey="SystemAccentColorDark2" /> - <SolidColorBrush x:Key="DataGridGridLinesBrush" - Color="{DynamicResource SystemBaseMediumLowColor}" - Opacity="0.4" /> + <SolidColorBrush + x:Key="DataGridGridLinesBrush" + Opacity="0.4" + Color="{DynamicResource SystemBaseMediumLowColor}" /> <SolidColorBrush x:Key="DataGridSelectionBackgroundBrush" Color="{DynamicResource DataGridSelectionColor}" /> - <SolidColorBrush x:Key="MenuFlyoutPresenterBorderBrush" - Color="{DynamicResource MenuFlyoutPresenterBorderColor}" /> + <SolidColorBrush x:Key="MenuFlyoutPresenterBorderBrush" Color="{DynamicResource MenuFlyoutPresenterBorderColor}" /> <SolidColorBrush x:Key="ThemeAccentColorBrush" Color="{DynamicResource SystemAccentColor}" /> <SolidColorBrush x:Key="ListBoxBackground" Color="{DynamicResource ThemeContentBackgroundColor}" /> <SolidColorBrush x:Key="ThemeForegroundBrush" Color="{DynamicResource ThemeForegroundColor}" /> @@ -241,7 +242,6 @@ <SolidColorBrush x:Key="SplitButtonBackgroundCheckedDisabled" Color="#00E81123" /> <Thickness x:Key="PageMargin">40 0 40 0</Thickness> <Thickness x:Key="Margin">0 5 0 5</Thickness> - <Thickness x:Key="TextMargin">0 4 0 0</Thickness> <Thickness x:Key="MenuItemPadding">5 0 5 0</Thickness> <Color x:Key="MenuFlyoutPresenterBorderColor">#00000000</Color> <Color x:Key="SystemAccentColor">#FF00C3E3</Color> |
