1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 21:27:45 +00:00

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.
This commit is contained in:
Torstennator 2022-04-18 15:24:49 +02:00 committed by Linus Groh
parent 5702f016f0
commit b7e8f32323
6 changed files with 241 additions and 0 deletions

View file

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