Applications: Remove border from GroupBox margins

This commit is contained in:
FrHun 2021-09-15 17:56:01 +02:00 committed by Andreas Kling
parent a21ea5f10f
commit 54605794f9
Notes: sideshowbarker 2024-07-18 01:31:29 +09:00
20 changed files with 33 additions and 39 deletions

View file

@ -7,7 +7,7 @@
@GUI::GroupBox {
layout: @GUI::VerticalBoxLayout {
margins: [24, 16, 6]
margins: [14, 14, 4]
}
title: "Workspaces"

View file

@ -34,7 +34,7 @@
@GUI::GroupBox {
layout: @GUI::VerticalBoxLayout {
margins: [24, 16, 6]
margins: [14, 14, 4]
}
title: "Screen settings"

View file

@ -75,7 +75,7 @@
title: "Metadata"
fixed_height: 220
layout: @GUI::VerticalBoxLayout {
margins: [16, 8, 8, 8]
margins: [6, 6, 6, 6]
}
@GUI::Widget {

View file

@ -11,7 +11,7 @@
title: "Metadata"
fixed_width: 200
layout: @GUI::VerticalBoxLayout {
margins: [16, 8, 8]
margins: [4]
}
@GUI::Widget {

View file

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

View file

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

View file

@ -9,7 +9,7 @@
title: "Available Cursor Themes"
layout: @GUI::VerticalBoxLayout {
margins: [16, 8, 8]
margins: [6]
spacing: 4
}

View file

@ -14,7 +14,7 @@
shrink_to_fit: true
layout: @GUI::HorizontalBoxLayout {
margins: [20, 10, 10]
margins: [10, 8, 8]
}
@GUI::RadioButton {

View file

@ -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);

View file

@ -51,7 +51,7 @@
@GUI::GroupBox {
title: "Layers"
layout: @GUI::VerticalBoxLayout {
margins: [16, 6, 6]
margins: [6]
}
@PixelPaint::LayerListWidget {

View file

@ -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>();
}

View file

@ -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 {

View file

@ -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 {

View file

@ -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 {

View file

@ -36,7 +36,7 @@
layout: @GUI::VerticalBoxLayout {
spacing: 2
margins: [5]
margins: [3]
}
@GUI::Widget {

View file

@ -237,7 +237,7 @@
@GUI::GroupBox {
layout: @GUI::VerticalBoxLayout {
margins: [8]
margins: [6]
}
@GUI::Widget {

View file

@ -6,7 +6,7 @@
@GUI::GroupBox {
layout: @GUI::VerticalBoxLayout {
margins: [8]
margins: [6]
}
@GUI::TableView {

View file

@ -6,7 +6,7 @@
@GUI::GroupBox {
layout: @GUI::VerticalBoxLayout {
margins: [8]
margins: [6]
}
@GUI::TableView {

View file

@ -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 {

View file

@ -6,7 +6,7 @@
@GUI::GroupBox {
layout: @GUI::VerticalBoxLayout {
margins: [8]
margins: [6]
}
@GUI::Button {