1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-10-28 19:22:33 +00:00
serenity/Userland/Applications/PixelPaint/PixelPaintWindow.gml
Torstennator b7e8f32323 PixelPaint: Add a histogram widget
This adds a simple histogram widget that visualizes the rgb-channels
and brightness for a given image. When hovering over the image it will
indicate what brightness level the pixel at the mouse position has.
2022-04-21 17:26:52 +02:00

87 lines
1.9 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: [6]
}
@PixelPaint::LayerListWidget {
name: "layer_list_widget"
}
}
@PixelPaint::LayerPropertiesWidget {
name: "layer_properties_widget"
max_height: 94
}
@GUI::GroupBox {
title: "Histogram"
max_height: 90
layout: @GUI::VerticalBoxLayout {
margins: [6]
}
@PixelPaint::HistogramWidget {
name: "histogram_widget"
max_height: 65
}
}
@PixelPaint::ToolPropertiesWidget {
name: "tool_properties_widget"
max_height: 144
}
}
}
@GUI::Statusbar {
name: "statusbar"
}
}