mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:57:35 +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:
parent
5702f016f0
commit
b7e8f32323
6 changed files with 241 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue