mirror of
https://github.com/RGBCube/serenity
synced 2025-05-18 14:15:08 +00:00

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.
76 lines
1.5 KiB
Text
76 lines
1.5 KiB
Text
@GUI::Widget {
|
|
fill_with_background_color: true
|
|
|
|
layout: @GUI::VerticalBoxLayout {
|
|
margins: [4, 4, 4, 4]
|
|
}
|
|
|
|
@GUI::GroupBox {
|
|
title: "Bell mode"
|
|
shrink_to_fit: true
|
|
|
|
layout: @GUI::VerticalBoxLayout {
|
|
margins: [6, 16, 6, 6]
|
|
}
|
|
|
|
@GUI::RadioButton {
|
|
name: "beep_bell_radio"
|
|
text: "System beep"
|
|
}
|
|
|
|
@GUI::RadioButton {
|
|
name: "visual_bell_radio"
|
|
text: "Visual bell"
|
|
}
|
|
|
|
@GUI::RadioButton {
|
|
name: "no_bell_radio"
|
|
text: "No bell"
|
|
}
|
|
}
|
|
|
|
@GUI::GroupBox {
|
|
title: "Background opacity"
|
|
shrink_to_fit: true
|
|
|
|
layout: @GUI::VerticalBoxLayout {
|
|
margins: [6, 16, 6, 6]
|
|
}
|
|
|
|
@GUI::OpacitySlider {
|
|
name: "background_opacity_slider"
|
|
min: 0
|
|
max: 255
|
|
orientation: "Horizontal"
|
|
}
|
|
}
|
|
|
|
@GUI::GroupBox {
|
|
title: "Scrollback size (lines)"
|
|
shrink_to_fit: true
|
|
|
|
layout: @GUI::VerticalBoxLayout {
|
|
margins: [6, 16, 6, 6]
|
|
}
|
|
|
|
@GUI::SpinBox {
|
|
name: "history_size_spinbox"
|
|
min: 0
|
|
max: 40960
|
|
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"
|
|
}
|
|
}
|
|
}
|