diff --git a/docs/development-guidelines/UIStylingGuidelines.md b/docs/development-guidelines/UIStylingGuidelines.md index 66e8454c6f..740ac18128 100644 --- a/docs/development-guidelines/UIStylingGuidelines.md +++ b/docs/development-guidelines/UIStylingGuidelines.md @@ -29,15 +29,20 @@ Each setter element identifies the property that will be changed by name, and th !!! example - ```xml - - ``` + +``` The Avalonia UI style selector syntax is analogous to that used by CSS (cascading style sheets). +!!! warning "If selectors are not made specific enough, ToolTips and Context menu contents will also be affected" + +Selectors should either use the `x:Name`, a Class or the hierarchical path of the control to be styled, +to avoid affecting other controls of the same type. + ### Example This is an example of how a style is written and applied to a `Control` element, with a style class to help selection: diff --git a/src/NexusMods.App.UI/Controls/Spine/Buttons/Icon/IconButton.axaml b/src/NexusMods.App.UI/Controls/Spine/Buttons/Icon/IconButton.axaml index 5f68e0b0d6..21cedaa6b0 100644 --- a/src/NexusMods.App.UI/Controls/Spine/Buttons/Icon/IconButton.axaml +++ b/src/NexusMods.App.UI/Controls/Spine/Buttons/Icon/IconButton.axaml @@ -11,6 +11,7 @@ xmlns:reactiveUi="http://reactiveui.net" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:icons="clr-namespace:NexusMods.Icons;assembly=NexusMods.Icons"> + @@ -26,17 +27,16 @@ - - + + diff --git a/src/NexusMods.App.UI/Controls/Spine/Buttons/Image/ImageButton.axaml b/src/NexusMods.App.UI/Controls/Spine/Buttons/Image/ImageButton.axaml index 6fecc16ce1..3454110cd9 100644 --- a/src/NexusMods.App.UI/Controls/Spine/Buttons/Image/ImageButton.axaml +++ b/src/NexusMods.App.UI/Controls/Spine/Buttons/Image/ImageButton.axaml @@ -1,6 +1,6 @@  - diff --git a/src/Themes/NexusMods.Themes.NexusFluentDark/Resources/Palette/Colors/ElementColors.axaml b/src/Themes/NexusMods.Themes.NexusFluentDark/Resources/Palette/Colors/ElementColors.axaml index b4e10de6b9..be9d53a799 100644 --- a/src/Themes/NexusMods.Themes.NexusFluentDark/Resources/Palette/Colors/ElementColors.axaml +++ b/src/Themes/NexusMods.Themes.NexusFluentDark/Resources/Palette/Colors/ElementColors.axaml @@ -27,10 +27,14 @@ - + + + + + diff --git a/src/Themes/NexusMods.Themes.NexusFluentDark/Styles/Controls/Button/SpineButtonStyles.axaml b/src/Themes/NexusMods.Themes.NexusFluentDark/Styles/Controls/Button/SpineButtonStyles.axaml index 36740225f8..8465273901 100644 --- a/src/Themes/NexusMods.Themes.NexusFluentDark/Styles/Controls/Button/SpineButtonStyles.axaml +++ b/src/Themes/NexusMods.Themes.NexusFluentDark/Styles/Controls/Button/SpineButtonStyles.axaml @@ -8,31 +8,27 @@