ladybird/Userland/Applications/PixelPaint/PixelPaintWindow.gml
Andreas Kling c6dd3377ee PixelPaint: Make the main UI tabbed and allow multiple open images :^)
This patch adds a GUI::TabWidget to the main UI and allows having
multiple images open at the same time.

Some of the changes here are a bit hackish and mechanical and there's
still code around that needs more work to fit better in the new world.

One nice side-effect of this change is that ImageEditor now always
has one Image associated with it, and it never changes.
2021-06-16 12:12:39 +02:00

76 lines
1.5 KiB
Plaintext

@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: [4, 16, 4, 8]
}
@PixelPaint::LayerListWidget {
name: "layer_list_widget"
}
}
@PixelPaint::LayerPropertiesWidget {
name: "layer_properties_widget"
}
@PixelPaint::ToolPropertiesWidget {
name: "tool_properties_widget"
}
}
}
@GUI::Statusbar {
name: "statusbar"
}
}