1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 08:27:45 +00:00

TerminalSettings: Spruce up the "Terminal" tab a bit

- Use sentence style capitalization for CheckBox and GroupBox titles
- Remove excessive explanation of bell mode.
- Put a "lines" label after the scrollback history length input instead
  of saying "(Lines)" in the GroupBox title.
- Tweak bell mode titles to make them self explanatory.
- Tweak language for exit confirmation.
This commit is contained in:
Andreas Kling 2023-03-03 10:41:47 +01:00
parent 880504e51d
commit 3823f77d20

View file

@ -6,16 +6,43 @@
} }
@GUI::GroupBox { @GUI::GroupBox {
title: "Bell Mode" title: "Scrollback"
preferred_height: "fit" preferred_height: "fit"
layout: @GUI::VerticalBoxLayout { layout: @GUI::VerticalBoxLayout {
margins: [8] margins: [8]
spacing: 8 spacing: 8
} }
@GUI::Label { @GUI::Widget {
text: "This setting controls the terminal's indication of an ANSI 0x07 bell (\\a)." preferred_height: "shrink"
text_alignment: "TopLeft" layout: @GUI::HorizontalBoxLayout {}
@GUI::SpinBox {
name: "history_size_spinbox"
min: 0
max: 40960
orientation: "Horizontal"
preferred_width: 100
}
@GUI::Label {
text: "lines"
autosize: true
}
}
@GUI::CheckBox {
name: "terminal_show_scrollbar"
text: "Show terminal scrollbar"
}
}
@GUI::GroupBox {
title: "Bell mode"
preferred_height: "fit"
layout: @GUI::VerticalBoxLayout {
margins: [8]
spacing: 8
} }
@GUI::Widget { @GUI::Widget {
@ -26,12 +53,12 @@
@GUI::RadioButton { @GUI::RadioButton {
name: "beep_bell_radio" name: "beep_bell_radio"
text: "System beep" text: "Audible bell"
} }
@GUI::RadioButton { @GUI::RadioButton {
name: "visual_bell_radio" name: "visual_bell_radio"
text: "Visual bell" text: "Visible bell"
} }
@GUI::RadioButton { @GUI::RadioButton {
@ -42,27 +69,7 @@
} }
@GUI::GroupBox { @GUI::GroupBox {
title: "Scrollback Size (Lines)" title: "Exit behavior"
preferred_height: "fit"
layout: @GUI::VerticalBoxLayout {
margins: [8]
}
@GUI::CheckBox {
name: "terminal_show_scrollbar"
text: "Show scrollbar"
}
@GUI::SpinBox {
name: "history_size_spinbox"
min: 0
max: 40960
orientation: "Horizontal"
}
}
@GUI::GroupBox {
title: "Exit Behaviour"
preferred_height: "fit" preferred_height: "fit"
layout: @GUI::VerticalBoxLayout { layout: @GUI::VerticalBoxLayout {
margins: [8] margins: [8]
@ -70,7 +77,7 @@
@GUI::CheckBox { @GUI::CheckBox {
name: "terminal_confirm_close" name: "terminal_confirm_close"
text: "Ask before closing if processes are running in the terminal" text: "Confirm exit when process is active"
} }
} }
} }