mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-12 13:28:33 +00:00
UI - Fix visual regressions that occured after updating Avalonia at some point
This commit is contained in:
parent
cfdcbe44c9
commit
14c7940a21
@ -10,7 +10,7 @@
|
||||
x:DataType="propertyInput:BrushPropertyInputViewModel">
|
||||
|
||||
<UserControl.Styles>
|
||||
<Style Selector="ComboBox.brush /template/ ContentControl#ContentPresenter">
|
||||
<Style Selector="ComboBox.brush /template/ ContentPresenter#ContentPresenter">
|
||||
<Setter Property="ContentTemplate">
|
||||
<Setter.Value>
|
||||
<DataTemplate DataType="{x:Type layerBrushes:LayerBrushDescriptor}">
|
||||
|
||||
@ -65,7 +65,7 @@
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Row="1" Grid.Column="1" VerticalAlignment="Center">
|
||||
<StackPanel.Styles>
|
||||
<Style Selector="ComboBox.layoutProvider /template/ ContentControl#ContentPresenter">
|
||||
<Style Selector="ComboBox.layoutProvider /template/ ContentPresenter#ContentPresenter">
|
||||
<Setter Property="ContentTemplate">
|
||||
<Setter.Value>
|
||||
<DataTemplate x:DataType="layoutProviders:ILayoutProviderViewModel">
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Row="1" Grid.Column="1" VerticalAlignment="Center" Spacing="5">
|
||||
<StackPanel.Styles>
|
||||
<Style Selector="ComboBox.layoutProvider /template/ ContentControl#ContentPresenter">
|
||||
<Style Selector="ComboBox.layoutProvider /template/ ContentPresenter#ContentPresenter">
|
||||
<Setter Property="ContentTemplate">
|
||||
<Setter.Value>
|
||||
<DataTemplate x:DataType="models:InstalledEntry">
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
x:Class="Artemis.UI.Screens.ProfileEditor.DisplayCondition.DisplayConditionScriptView"
|
||||
x:DataType="displayCondition:DisplayConditionScriptViewModel">
|
||||
<UserControl.Styles>
|
||||
<Style Selector="ComboBox.condition-type /template/ ContentControl#ContentPresenter">
|
||||
<Style Selector="ComboBox.condition-type /template/ ContentPresenter#ContentPresenter">
|
||||
<Setter Property="ContentTemplate">
|
||||
<Setter.Value>
|
||||
<DataTemplate DataType="{x:Type displayCondition:ConditionTypeViewModel}">
|
||||
@ -35,7 +35,13 @@
|
||||
<TextBlock Text="{CompiledBinding Description}" Foreground="{DynamicResource TextFillColorSecondaryBrush}" TextWrapping="Wrap" MaxWidth="350" />
|
||||
</StackPanel>
|
||||
</DataTemplate>
|
||||
|
||||
</ComboBox.ItemTemplate>
|
||||
<ComboBox.SelectionBoxItemTemplate>
|
||||
<DataTemplate DataType="{x:Type displayCondition:ConditionTypeViewModel}">
|
||||
<TextBlock Text="{CompiledBinding Name}" TextWrapping="Wrap" MaxWidth="350" />
|
||||
</DataTemplate>
|
||||
</ComboBox.SelectionBoxItemTemplate>
|
||||
</ComboBox>
|
||||
<ContentControl Grid.Row="2" Content="{CompiledBinding ConditionViewModel}" />
|
||||
</Grid>
|
||||
|
||||
@ -267,7 +267,7 @@
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Row="0" Grid.Column="1" VerticalAlignment="Center">
|
||||
<StackPanel.Styles>
|
||||
<Style Selector="ComboBox.brush /template/ ContentControl#ContentPresenter">
|
||||
<Style Selector="ComboBox.brush /template/ ContentPresenter#ContentPresenter">
|
||||
<Setter Property="ContentTemplate">
|
||||
<Setter.Value>
|
||||
<DataTemplate DataType="{x:Type layerBrushes:LayerBrushDescriptor}">
|
||||
|
||||
@ -38,6 +38,14 @@
|
||||
<Setter Property="VerticalScrollBarVisibility" Value="Disabled"></Setter>
|
||||
</Style>
|
||||
|
||||
<!-- Workaround for https://github.com/amwx/FluentAvalonia/issues/648 -->
|
||||
<Style Selector="controls|FontIcon">
|
||||
<Setter Property="Width" Value="24" />
|
||||
</Style>
|
||||
<Style Selector="controls|SymbolIcon">
|
||||
<Setter Property="Width" Value="24" />
|
||||
</Style>
|
||||
|
||||
<Styles.Resources>
|
||||
<ResourceDictionary>
|
||||
<FontFamily x:Key="RobotoMono">avares://Artemis.UI/Assets/Fonts#Roboto Mono</FontFamily>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user