summaryrefslogtreecommitdiff
path: root/Base
diff options
context:
space:
mode:
authorDaniel Bertalan <dani@danielbertalan.dev>2021-05-28 21:26:39 +0200
committerLinus Groh <mail@linusgroh.de>2021-06-04 09:02:43 +0100
commitacbd1d14d0ca8ea063a9acaec988913557acd22b (patch)
treec5b38b2d961a6e0dc96bce594159e8af9710ca4c /Base
parent99033876ec6fc7484d7967d6cbd64f79669c21f7 (diff)
downloadserenity-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 'Base')
-rw-r--r--Base/home/anon/.config/Terminal.ini1
-rw-r--r--Base/res/terminal-colors/Default.ini23
2 files changed, 24 insertions, 0 deletions
diff --git a/Base/home/anon/.config/Terminal.ini b/Base/home/anon/.config/Terminal.ini
index 3cdf124fb5..25a254a2db 100644
--- a/Base/home/anon/.config/Terminal.ini
+++ b/Base/home/anon/.config/Terminal.ini
@@ -3,3 +3,4 @@ Command=
[Window]
Opacity=255
Bell=Visible
+ColorScheme=Default
diff --git a/Base/res/terminal-colors/Default.ini b/Base/res/terminal-colors/Default.ini
new file mode 100644
index 0000000000..e5a9b73860
--- /dev/null
+++ b/Base/res/terminal-colors/Default.ini
@@ -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