App.axaml comment claims the Simple theme has no Dark dictionary; audit dark-mode overrides
Follow-up from #4150 (fix for #4146).
Stale comment
The comment above the theme dictionaries in ILSpy/App.axaml (around lines 35-40) says:
The Simple theme itself ships no Dark resource dictionary, so chrome painted by Simple (menu, scrollbars, tree, status bar) stays Light regardless of the user's theme choice. Intentional, partial dark mode targeting only the surfaces a reader spends most time looking at.
That is no longer true for the Avalonia version we are on (12.1.2). Avalonia.Themes.Simple/Accents/Base.xaml has ResourceDictionary.ThemeDictionaries with a Default and a Dark entry, and most Theme*Color / Theme*Brush keys vary between them (e.g. ThemeForegroundColor #FF000000 vs #FFDEDEDE, ThemeControlHighlightMidColor #FFD0D0D0 vs #FF828282).
What Simple does not vary per variant are the keys defined outside those dictionaries:
ThemeForegroundLowColor/ThemeForegroundLowBrush(#FF808080)ThemeAccentColor,ThemeAccentColor2/3/4and their brushes (#CC/99/66/33119EDA)
Those fixed keys are what caused #4146 (fixed #808080 text on the Dark #828282 hover fill).
To do
- Rewrite the comment so it describes what Simple 12.1.2 actually provides and which keys stay fixed.
- Audit which of our
ILSpy.*overrides and restyles exist only because of the old assumption and could now lean on Simple's own Dark dictionary instead. - Audit other Simple-themed controls that use the variant-independent keys (
ThemeForegroundLowBrush,ThemeAccentBrush*) for the same kind of dark-mode contrast problem as #4146.
Assisted-by: Claude:claude-fable-5-1:Claude Code
Source: icsharpcode/ILSpy