diff options
author | Daniel Bertalan <dani@danielbertalan.dev> | 2021-05-28 21:26:39 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-06-04 09:02:43 +0100 |
commit | acbd1d14d0ca8ea063a9acaec988913557acd22b (patch) | |
tree | c5b38b2d961a6e0dc96bce594159e8af9710ca4c /Userland/Applications/Terminal/TerminalSettingsWindow.gml | |
parent | 99033876ec6fc7484d7967d6cbd64f79669c21f7 (diff) | |
download | serenity-acbd1d14d0ca8ea063a9acaec988913557acd22b.zip |
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.
Diffstat (limited to 'Userland/Applications/Terminal/TerminalSettingsWindow.gml')
-rw-r--r-- | Userland/Applications/Terminal/TerminalSettingsWindow.gml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Userland/Applications/Terminal/TerminalSettingsWindow.gml b/Userland/Applications/Terminal/TerminalSettingsWindow.gml index 07b8400c56..6c906fd463 100644 --- a/Userland/Applications/Terminal/TerminalSettingsWindow.gml +++ b/Userland/Applications/Terminal/TerminalSettingsWindow.gml @@ -60,4 +60,17 @@ orientation: "Horizontal" } } + + @GUI::GroupBox { + title: "Color scheme" + shrink_to_fit: true + + layout: @GUI::VerticalBoxLayout { + margins: [6, 16, 6, 6] + } + + @GUI::ComboBox { + name: "color_scheme_combo" + } + } } |