mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +00:00
e11d177618
This allows for typing [8] instead of [8, 8, 8, 8] to specify the same margin on all edges, for example. The constructors follow CSS' style of specifying margins. The added constructors are: - Margins(int all): Sets the same margin on all edges. - Margins(int vertical, int horizontal): Sets the first argument to top and bottom margins, and the second argument to left and right margins. - Margins(int top, int vertical, int bottom): Sets the first argument to the top margin, the second argument to the left and right margins, and the third argument to the bottom margin.
75 lines
1.5 KiB
Text
75 lines
1.5 KiB
Text
@GUI::Widget {
|
|
name: "main"
|
|
fill_with_background_color: true
|
|
|
|
layout: @GUI::VerticalBoxLayout {
|
|
spacing: 2
|
|
}
|
|
|
|
@GUI::ToolbarContainer {
|
|
name: "toolbar_container"
|
|
|
|
@GUI::Toolbar {
|
|
name: "toolbar"
|
|
}
|
|
}
|
|
|
|
@GUI::Widget {
|
|
layout: @GUI::HorizontalBoxLayout {
|
|
spacing: 2
|
|
}
|
|
|
|
@GUI::ToolbarContainer {
|
|
name: "toolbar_container"
|
|
|
|
@PixelPaint::ToolboxWidget {
|
|
name: "toolbox"
|
|
}
|
|
}
|
|
|
|
@GUI::Widget {
|
|
layout: @GUI::VerticalBoxLayout {
|
|
spacing: 0
|
|
}
|
|
|
|
@GUI::TabWidget {
|
|
name: "tab_widget"
|
|
}
|
|
|
|
@PixelPaint::PaletteWidget {
|
|
name: "palette_widget"
|
|
}
|
|
}
|
|
|
|
@GUI::Widget {
|
|
fill_with_background_color: true
|
|
fixed_width: 200
|
|
|
|
layout: @GUI::VerticalBoxLayout {
|
|
}
|
|
|
|
@GUI::GroupBox {
|
|
title: "Layers"
|
|
layout: @GUI::VerticalBoxLayout {
|
|
margins: [16, 6, 6]
|
|
}
|
|
|
|
@PixelPaint::LayerListWidget {
|
|
name: "layer_list_widget"
|
|
}
|
|
}
|
|
|
|
@PixelPaint::LayerPropertiesWidget {
|
|
name: "layer_properties_widget"
|
|
}
|
|
|
|
@PixelPaint::ToolPropertiesWidget {
|
|
name: "tool_properties_widget"
|
|
}
|
|
}
|
|
}
|
|
|
|
@GUI::Statusbar {
|
|
name: "statusbar"
|
|
}
|
|
}
|