Add theme support for customizable colors#801
Conversation
|
@microsoft-github-policy-service agree |
|
Unfortunately, I'm not sure if we can merge this. My vision was to introduce a CSS-like language for theming of the application. I briefly mention this here: Lines 86 to 87 in 7c0b3d1 A while ago I had started a prototype in this branch: https://github.com/microsoft/edit/tree/dev/lhecker/css |
|
I honestly just need a way to customize colors, don't care about the implementation details. Your CSS plan definitely sounds more robust. |
|
It needs to have also ability to theme the menu bar and status bar and the file open dialog... etc Whole interface needs to theme for achieving the best result when you want it to match and blend together with all your other TUI apps. |
Add theme support for customizable colors, format: RGB/RGBA
Example config
{ "theme": { "black": "#000000", "red": "#FF0000FF", "green": "#00FF00", "yellow": "#FFFF00FF", "blue": "#204DBE", "magenta": "#FF00FFFF", "cyan": "#00A7B2", "white": "#FFFFFFFF", "brightBlack": "#808080", "brightRed": "#FF3E30FF", "brightGreen": "#58EA51", "brightYellow": "#FFC944FF", "brightBlue": "#2F6AFF", "brightMagenta": "#FC74FFFF", "brightCyan": "#00E1F0", "brightWhite": "#FFFFFFFF", "background": "#0C0C0C", "foreground": "#00FF00FF", "lineNumber": "#FF00FF", "lineHighlight": "#00FF00FF" } }Scope
This is a lightweight change with no new dependencies.
The changes are limited to:
Validation
cargo test -q
Notes
Only tested on Windows 11 with cargo 1.86.0
Screenshot