mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-08 20:32:56 +03:00
1ff48a3ca4
The settings for Terminal are extracted into their own application, TerminalSettings, which is reachable over the normal Settings menu as well as the same place in the Terminal menu. The font settings are moved into these settings as well, which are now split up into the "Terminal" and "View" tabs. The font settings themselves receive an option to override the selected font with the system default on the user side. The live update behavior of all of the terminal settings is retained. The layout of the new TerminalSettings is based around the other Settings applications, but pixel-perfectness is missing in some places. It's a bit fiddly and I'd like to have some better GUI::Label auto-size behavior, but oh well :^)
83 lines
1.7 KiB
Plaintext
83 lines
1.7 KiB
Plaintext
@GUI::Widget {
|
|
fill_with_background_color: true
|
|
|
|
layout: @GUI::VerticalBoxLayout {
|
|
margins: [10]
|
|
spacing: 5
|
|
}
|
|
|
|
@GUI::GroupBox {
|
|
title: "Background Opacity"
|
|
fixed_height: 70
|
|
|
|
layout: @GUI::VerticalBoxLayout {
|
|
margins: [16, 8, 8]
|
|
spacing: 16
|
|
}
|
|
|
|
@GUI::OpacitySlider {
|
|
name: "background_opacity_slider"
|
|
min: 0
|
|
max: 255
|
|
orientation: "Horizontal"
|
|
}
|
|
}
|
|
|
|
@GUI::GroupBox {
|
|
title: "Terminal Font"
|
|
fixed_height: 100
|
|
|
|
layout: @GUI::VerticalBoxLayout {
|
|
margins: [16, 8, 8]
|
|
spacing: 16
|
|
}
|
|
|
|
@GUI::CheckBox {
|
|
name: "terminal_font_defaulted"
|
|
text: "Use system default"
|
|
}
|
|
|
|
@GUI::Widget {
|
|
shrink_to_fit: true
|
|
name: "terminal_font_selection"
|
|
|
|
layout: @GUI::HorizontalBoxLayout {
|
|
spacing: 6
|
|
}
|
|
|
|
@GUI::Frame {
|
|
background_role: "Base"
|
|
fill_with_background_color: true
|
|
|
|
layout: @GUI::VerticalBoxLayout {
|
|
}
|
|
|
|
@GUI::Label {
|
|
name: "terminal_font_label"
|
|
text: "Csilla 10 400"
|
|
}
|
|
}
|
|
|
|
@GUI::Button {
|
|
text: "..."
|
|
name: "terminal_font_button"
|
|
fixed_width: 30
|
|
}
|
|
}
|
|
}
|
|
|
|
@GUI::GroupBox {
|
|
title: "Color Scheme"
|
|
fixed_height: 70
|
|
|
|
layout: @GUI::VerticalBoxLayout {
|
|
margins: [16, 8, 8]
|
|
spacing: 16
|
|
}
|
|
|
|
@GUI::ComboBox {
|
|
name: "color_scheme_combo"
|
|
}
|
|
}
|
|
}
|