diff options
author | Torstennator <engelTorsten@gmx.de> | 2022-04-18 15:24:49 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-04-21 17:26:52 +0200 |
commit | b7e8f32323c9fd8bc1fcd2058e717d4307fa8f1f (patch) | |
tree | b90df39215899e18ef4d80f6d961b70582b4581b /Userland/Applications/PixelPaint/PixelPaintWindow.gml | |
parent | 5702f016f008109c8807ed0be4d93e1fa12be938 (diff) | |
download | serenity-b7e8f32323c9fd8bc1fcd2058e717d4307fa8f1f.zip |
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.
Diffstat (limited to 'Userland/Applications/PixelPaint/PixelPaintWindow.gml')
-rw-r--r-- | Userland/Applications/PixelPaint/PixelPaintWindow.gml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Userland/Applications/PixelPaint/PixelPaintWindow.gml b/Userland/Applications/PixelPaint/PixelPaintWindow.gml index e7d429de9e..59e721b07e 100644 --- a/Userland/Applications/PixelPaint/PixelPaintWindow.gml +++ b/Userland/Applications/PixelPaint/PixelPaintWindow.gml @@ -61,6 +61,19 @@ 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 |