1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-29 06:27:44 +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:
Daniel Bertalan 2021-05-28 21:26:39 +02:00 committed by Linus Groh
parent 99033876ec
commit acbd1d14d0
6 changed files with 128 additions and 5 deletions

View file

@ -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"
}
}
}