1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:17:44 +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:
Andreas Kling 2023-03-03 10:39:37 +01:00
parent df0bf51441
commit 880504e51d

View file

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