mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:57:35 +00:00
LibVT+Terminal: Add color scheme support
This commit introduces color scheme support to Terminal. These are found in `/res/terminal_colors` and the default color scheme can be set in `~/.config/Terminal.ini`. Furthermore, a combo box is added for setting the color scheme at runtime. The previously used default color scheme has been added to `/res/terminal-colors/Default.ini`. To make the implementation more compatible with other color schemes, `TerminalWidget` now supports overriding the default foreground and background colors.
This commit is contained in:
parent
99033876ec
commit
acbd1d14d0
6 changed files with 128 additions and 5 deletions
|
@ -3,3 +3,4 @@ Command=
|
|||
[Window]
|
||||
Opacity=255
|
||||
Bell=Visible
|
||||
ColorScheme=Default
|
||||
|
|
23
Base/res/terminal-colors/Default.ini
Normal file
23
Base/res/terminal-colors/Default.ini
Normal file
|
@ -0,0 +1,23 @@
|
|||
[Primary]
|
||||
Background=#000000
|
||||
Foreground=#ffffff
|
||||
|
||||
[Normal]
|
||||
Black=#000000
|
||||
Red=#cc0000
|
||||
Green=#3e9a06
|
||||
Yellow=#c4a000
|
||||
Blue=#3465a4
|
||||
Magenta=#75507b
|
||||
Cyan=#06989a
|
||||
White=#eeeec
|
||||
|
||||
[Bright]
|
||||
Black=#555753
|
||||
Red=#ef2929
|
||||
Green=#8ae234
|
||||
Yellow=#fce94f
|
||||
Blue=#729fcf
|
||||
Magenta=#ad7fa8
|
||||
Cyan=#34e2e2
|
||||
White=#ffffff
|
Loading…
Add table
Add a link
Reference in a new issue