You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Theme: move hard-coded colours into tokens, prepare a light or high-contrast variant #680
There are 114 hard-coded colour values in .axaml outside Tokens.axaml. That count excludes #123 issue references in comments.
File
Count
Theme/Styles.axaml
39
Views/CoMessprotokollView.axaml
15
Views/MasterDataEditorView.axaml
12
Views/EtbView.axaml
7
Views/RolesView.axaml
6
Views/TasksView.axaml, Views/ForcesView.axaml
4 each
ScbaView, HomeView, FilesView
3 each
12 more views
1–2 each
The most common values:
Value
Uses
Token with the same value?
#0F141D
25
none (closest: AppBgColor2#10141C)
#0C1119
25
none
#241608
10
AmberWashColor
#F87171
8
ErrorColor
#FFFFFF
7
none
#B3070A10
7
none (scrim)
#2A1013
3
ErrorWashColor
#FF0000, #92D050, #FFC000
3 / 3 / 1
none (CO-Messprotokoll status colours)
C# has hex colours only for the CO-Messprotokoll:
CoMessprotokollViewModel.cs uses the status colours as string literals.
Documents/Sections/CoMessprotokollSection.cs duplicates the Amber, SignalHot and Signal tokens for the PDF. The PDF is not themed, so that part can stay.
Plan
Tokens first, no visual change. Move every hard-coded colour into Tokens.axaml, reusing the existing token where the value matches. Give #0F141D/#0C1119 (panel and grid backgrounds) and the scrim their own tokens. A before/after render of every view should be pixel-identical.
ThemeDictionaries. Move the tokens under Dark, and switch views from StaticResource to DynamicResource where a variant has to swap at runtime.
A light or high-contrast variant, plus a setting to pick it. This needs a palette decision, ideally checked in a vehicle in daylight.
Activity
fix(lagemeldung): paint hints and the Buchstabier-Tafel with TextSeco…