mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Applications: Remove border from GroupBox margins
This commit is contained in:
parent
a21ea5f10f
commit
54605794f9
Notes:
sideshowbarker
2024-07-18 01:31:29 +09:00
Author: https://github.com/frhun Commit: https://github.com/SerenityOS/serenity/commit/54605794f97 Pull-request: https://github.com/SerenityOS/serenity/pull/10246 Issue: https://github.com/SerenityOS/serenity/issues/5887 Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/awesomekling
20 changed files with 33 additions and 39 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
@GUI::GroupBox {
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [24, 16, 6]
|
||||
margins: [14, 14, 4]
|
||||
}
|
||||
|
||||
title: "Workspaces"
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
|
||||
@GUI::GroupBox {
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [24, 16, 6]
|
||||
margins: [14, 14, 4]
|
||||
}
|
||||
|
||||
title: "Screen settings"
|
||||
|
|
|
@ -75,7 +75,7 @@
|
|||
title: "Metadata"
|
||||
fixed_height: 220
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [16, 8, 8, 8]
|
||||
margins: [6, 6, 6, 6]
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
title: "Metadata"
|
||||
fixed_width: 200
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [16, 8, 8]
|
||||
margins: [4]
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
fixed_height: 170
|
||||
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [16, 8, 8]
|
||||
margins: [6]
|
||||
spacing: 2
|
||||
}
|
||||
|
||||
|
@ -101,7 +101,7 @@
|
|||
fixed_height: 110
|
||||
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [16, 8, 8]
|
||||
margins: [6]
|
||||
spacing: 2
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
fixed_height: 110
|
||||
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [16, 8, 8]
|
||||
margins: [6]
|
||||
spacing: 2
|
||||
}
|
||||
|
||||
|
@ -60,7 +60,7 @@
|
|||
fixed_height: 110
|
||||
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [16, 8, 8]
|
||||
margins: [6]
|
||||
spacing: 2
|
||||
}
|
||||
|
||||
|
@ -114,7 +114,7 @@
|
|||
fixed_height: 110
|
||||
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [16, 8, 8]
|
||||
margins: [6]
|
||||
spacing: 2
|
||||
}
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
title: "Available Cursor Themes"
|
||||
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [16, 8, 8]
|
||||
margins: [6]
|
||||
spacing: 4
|
||||
}
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
shrink_to_fit: true
|
||||
|
||||
layout: @GUI::HorizontalBoxLayout {
|
||||
margins: [20, 10, 10]
|
||||
margins: [10, 8, 8]
|
||||
}
|
||||
|
||||
@GUI::RadioButton {
|
||||
|
|
|
@ -25,7 +25,7 @@ LayerPropertiesWidget::LayerPropertiesWidget()
|
|||
auto& group_box = add<GUI::GroupBox>("Layer properties");
|
||||
auto& layout = group_box.set_layout<GUI::VerticalBoxLayout>();
|
||||
|
||||
layout.set_margins({ 20, 10, 10 });
|
||||
layout.set_margins({ 8 });
|
||||
|
||||
auto& name_container = group_box.add<GUI::Widget>();
|
||||
name_container.set_fixed_height(20);
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
@GUI::GroupBox {
|
||||
title: "Layers"
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [16, 6, 6]
|
||||
margins: [6]
|
||||
}
|
||||
|
||||
@PixelPaint::LayerListWidget {
|
||||
|
|
|
@ -19,7 +19,7 @@ ToolPropertiesWidget::ToolPropertiesWidget()
|
|||
|
||||
m_group_box = add<GUI::GroupBox>("Tool properties");
|
||||
auto& layout = m_group_box->set_layout<GUI::VerticalBoxLayout>();
|
||||
layout.set_margins({ 20, 10, 10 });
|
||||
layout.set_margins({ 8 });
|
||||
m_tool_widget_stack = m_group_box->add<GUI::StackWidget>();
|
||||
m_blank_widget = m_tool_widget_stack->add<GUI::Widget>();
|
||||
}
|
||||
|
|
|
@ -18,8 +18,7 @@
|
|||
title: "Delimiter"
|
||||
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
// FIXME: This is working around the fact that group boxes don't allocate space for their title and border!
|
||||
margins: [20, 10, 10]
|
||||
margins: [10, 8, 8]
|
||||
}
|
||||
|
||||
@GUI::RadioButton {
|
||||
|
@ -69,8 +68,7 @@
|
|||
title: "Quote"
|
||||
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
// FIXME: This is working around the fact that group boxes don't allocate space for their title and border!
|
||||
margins: [20, 10, 10]
|
||||
margins: [10, 8, 8]
|
||||
}
|
||||
|
||||
@GUI::RadioButton {
|
||||
|
@ -151,8 +149,7 @@
|
|||
fixed_width: 150
|
||||
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
// FIXME: This is working around the fact that group boxes don't allocate space for their title and border!
|
||||
margins: [20, 10, 10]
|
||||
margins: [10, 8, 8]
|
||||
}
|
||||
|
||||
@GUI::TextEditor {
|
||||
|
|
|
@ -18,8 +18,7 @@
|
|||
title: "Delimiter"
|
||||
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
// FIXME: This is working around the fact that group boxes don't allocate space for their title and border!
|
||||
margins: [20, 10, 10]
|
||||
margins: [10, 8, 8]
|
||||
}
|
||||
|
||||
@GUI::RadioButton {
|
||||
|
@ -69,8 +68,7 @@
|
|||
title: "Quote"
|
||||
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
// FIXME: This is working around the fact that group boxes don't allocate space for their title and border!
|
||||
margins: [20, 10, 10]
|
||||
margins: [10, 8, 8]
|
||||
}
|
||||
|
||||
@GUI::RadioButton {
|
||||
|
@ -133,7 +131,7 @@
|
|||
fixed_height: 40
|
||||
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [6, 6, 0]
|
||||
margins: [4, 4, 0]
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
|
@ -164,8 +162,7 @@
|
|||
fixed_width: 150
|
||||
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
// FIXME: This is working around the fact that group boxes don't allocate space for their title and border!
|
||||
margins: [20, 10, 10]
|
||||
margins: [10, 8, 8]
|
||||
}
|
||||
|
||||
@GUI::StackWidget {
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
shrink_to_fit: true
|
||||
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [16, 6, 6]
|
||||
margins: [4]
|
||||
}
|
||||
|
||||
@GUI::RadioButton {
|
||||
|
@ -34,7 +34,7 @@
|
|||
shrink_to_fit: true
|
||||
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [16, 6, 6]
|
||||
margins: [4]
|
||||
}
|
||||
|
||||
@GUI::OpacitySlider {
|
||||
|
@ -50,7 +50,7 @@
|
|||
shrink_to_fit: true
|
||||
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [16, 6, 6]
|
||||
margins: [4]
|
||||
}
|
||||
|
||||
@GUI::SpinBox {
|
||||
|
@ -66,7 +66,7 @@
|
|||
shrink_to_fit: true
|
||||
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [16, 6, 6]
|
||||
margins: [4]
|
||||
}
|
||||
|
||||
@GUI::ComboBox {
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
spacing: 2
|
||||
margins: [5]
|
||||
margins: [3]
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
|
|
|
@ -237,7 +237,7 @@
|
|||
|
||||
@GUI::GroupBox {
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [8]
|
||||
margins: [6]
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
@GUI::GroupBox {
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [8]
|
||||
margins: [6]
|
||||
}
|
||||
|
||||
@GUI::TableView {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
@GUI::GroupBox {
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [8]
|
||||
margins: [6]
|
||||
}
|
||||
|
||||
@GUI::TableView {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
@GUI::GroupBox {
|
||||
fixed_height: 129
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [8]
|
||||
margins: [6]
|
||||
}
|
||||
|
||||
@GUI::GroupBox {
|
||||
|
@ -92,7 +92,7 @@
|
|||
|
||||
@GUI::GroupBox {
|
||||
layout: @GUI::HorizontalBoxLayout {
|
||||
margins: [8]
|
||||
margins: [6]
|
||||
}
|
||||
|
||||
@GUI::VerticalProgressbar {
|
||||
|
@ -140,7 +140,7 @@
|
|||
|
||||
@GUI::GroupBox {
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [8]
|
||||
margins: [6]
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
@GUI::GroupBox {
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [8]
|
||||
margins: [6]
|
||||
}
|
||||
|
||||
@GUI::Button {
|
||||
|
|
Loading…
Reference in a new issue