summaryrefslogtreecommitdiff
path: root/Userland/Applications/PixelPaint/HistogramWidget.h
AgeCommit message (Collapse)Author
2022-09-03PixelPaint: Extract common scope code into a generic ScopeWidgetkleines Filmröllchen
When we add more scopes, this will facilitate code sharing.
2022-09-03PixelPaint: Specify histogram height in GMLkleines Filmröllchen
The histogram is perfectly fine with being drawn at any size, but the code currently fixes its height to 65. Once the histogram is in a subclass and several GML things around it change, the fixed height breaks, so we move the height specification to GML. Additionally, the container is specified to shrink as much as possible, alleviating a hard-coded UI size. The user can now change histogram height in GML, which is a lot more obvious.
2022-04-21PixelPaint: Add a histogram widgetTorstennator
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.