Skip to content

[MacOS] Fix dark-mode invisible MenuItem icons#566

Merged
Anna Malchow-Perryman (apman) merged 6 commits into
masterfrom
agents/menuitem-svg-fill-consistency-check
Jun 26, 2026
Merged

[MacOS] Fix dark-mode invisible MenuItem icons#566
Anna Malchow-Perryman (apman) merged 6 commits into
masterfrom
agents/menuitem-svg-fill-consistency-check

Conversation

@apman

@apman Anna Malchow-Perryman (apman) commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Prompted by icon colouring issues in RDM I decided to remove the inconsistent approaches between themes for setting the fill colour, and noticed that the MacOS mechanism (using a converter) was actually broken, rendering dark-mode icons largely invisible!

This fixes the dark-mode colours and brings MacOS in line with DevExpress & Linux using a much simpler fill colour logic.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes MenuItem SVG icon coloring on macOS (notably in dark mode) by removing the non-reactive binding+converter approach and switching to DynamicResource-backed CSS string resources, aligning the macOS theme with the simpler CSS-string pattern already used by the DevExpress and Linux themes.

Changes:

  • macOS: Replace converter-based SVG fill styling with SvgMenuItem*Css DynamicResources, including a pointer-over variant.
  • macOS: Add light/dark SvgMenuItemDefaultCss, SvgMenuItemPointerOverCss, and SvgMenuItemDisabledCss resources and remove now-unused icon color/brush resources.
  • DevExpress & Linux: Remove unused SVG icon color/brush resources and remove now-outdated explanatory comment blocks in GlobalStyles.

Reviewed changes

Copilot reviewed 6 out of 35 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/Devolutions.AvaloniaTheme.MacOS/GlobalStyles.axaml Switch MenuItem SVG styling to DynamicResource CSS strings and add pointer-over styling.
src/Devolutions.AvaloniaTheme.MacOS/Accents/ThemeResources.axaml Introduce theme-variant CSS string resources for MenuItem SVG fills; remove unused icon brush/color resources.
src/Devolutions.AvaloniaTheme.Linux/GlobalStyles.axaml Remove outdated header commentary related to the prior icon-coloring approach.
src/Devolutions.AvaloniaTheme.Linux/Accents/ThemeResources.axaml Remove unused SVG icon color/brush resources (CSS resources remain).
src/Devolutions.AvaloniaTheme.DevExpress/GlobalStyles.axaml Remove outdated header commentary related to the prior icon-coloring approach.
src/Devolutions.AvaloniaTheme.DevExpress/Accents/ThemeResources.axaml Remove unused SVG icon color/brush resources (CSS resources remain).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@apman Anna Malchow-Perryman (apman) changed the title [MacOS] Fix dark-mode MenuItem icons & refactor for consistency [MacOS] Fix dark-mode invisible MenuItem icons Jun 26, 2026
@apman Anna Malchow-Perryman (apman) merged commit 3e16328 into master Jun 26, 2026
1 check passed
@apman Anna Malchow-Perryman (apman) deleted the agents/menuitem-svg-fill-consistency-check branch June 26, 2026 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants