mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:07:45 +00:00
TerminalSettings: Spruce up the "View" tab a bit
- Use sentence style capitalization for CheckBox and GroupBox titles. - Move the terminal font to the top. - Split the cursor settings into two GroupBoxes (one for the shape, and one for the blinking behavior).
This commit is contained in:
parent
df0bf51441
commit
880504e51d
1 changed files with 44 additions and 33 deletions
|
@ -6,23 +6,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
@GUI::GroupBox {
|
@GUI::GroupBox {
|
||||||
title: "Background Opacity"
|
title: "Terminal font"
|
||||||
preferred_height: "fit"
|
|
||||||
layout: @GUI::VerticalBoxLayout {
|
|
||||||
margins: [8]
|
|
||||||
spacing: 8
|
|
||||||
}
|
|
||||||
|
|
||||||
@GUI::HorizontalOpacitySlider {
|
|
||||||
name: "background_opacity_slider"
|
|
||||||
min: 0
|
|
||||||
max: 255
|
|
||||||
orientation: "Horizontal"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@GUI::GroupBox {
|
|
||||||
title: "Terminal Font"
|
|
||||||
preferred_height: "fit"
|
preferred_height: "fit"
|
||||||
layout: @GUI::VerticalBoxLayout {
|
layout: @GUI::VerticalBoxLayout {
|
||||||
margins: [8]
|
margins: [8]
|
||||||
|
@ -59,30 +43,57 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
@GUI::GroupBox {
|
@GUI::GroupBox {
|
||||||
title: "Cursor Settings"
|
title: "Background opacity"
|
||||||
preferred_height: "fit"
|
preferred_height: "fit"
|
||||||
layout: @GUI::VerticalBoxLayout {
|
layout: @GUI::VerticalBoxLayout {
|
||||||
margins: [8]
|
margins: [8]
|
||||||
|
spacing: 8
|
||||||
}
|
}
|
||||||
|
|
||||||
@GUI::RadioButton {
|
@GUI::HorizontalOpacitySlider {
|
||||||
name: "terminal_cursor_block"
|
name: "background_opacity_slider"
|
||||||
text: "Block cursor"
|
min: 0
|
||||||
|
max: 255
|
||||||
|
orientation: "Horizontal"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@GUI::Widget {
|
||||||
|
preferred_height: "shrink"
|
||||||
|
layout: @GUI::HorizontalBoxLayout {}
|
||||||
|
|
||||||
|
@GUI::GroupBox {
|
||||||
|
title: "Cursor shape"
|
||||||
|
layout: @GUI::VerticalBoxLayout {
|
||||||
|
margins: [8]
|
||||||
|
}
|
||||||
|
|
||||||
|
@GUI::RadioButton {
|
||||||
|
name: "terminal_cursor_block"
|
||||||
|
text: "Block"
|
||||||
|
}
|
||||||
|
|
||||||
|
@GUI::RadioButton {
|
||||||
|
name: "terminal_cursor_underline"
|
||||||
|
text: "Underscore"
|
||||||
|
}
|
||||||
|
|
||||||
|
@GUI::RadioButton {
|
||||||
|
name: "terminal_cursor_bar"
|
||||||
|
text: "Vertical bar"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@GUI::RadioButton {
|
@GUI::GroupBox {
|
||||||
name: "terminal_cursor_underline"
|
title: "Cursor behavior"
|
||||||
text: "Underline cursor"
|
layout: @GUI::VerticalBoxLayout {
|
||||||
}
|
margins: [8]
|
||||||
|
}
|
||||||
|
|
||||||
@GUI::RadioButton {
|
@GUI::CheckBox {
|
||||||
name: "terminal_cursor_bar"
|
name: "terminal_cursor_blinking"
|
||||||
text: "Bar cursor"
|
text: "Blink cursor"
|
||||||
}
|
}
|
||||||
|
|
||||||
@GUI::CheckBox {
|
|
||||||
name: "terminal_cursor_blinking"
|
|
||||||
text: "Blinking cursor"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue