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

PixelPaint: Add level sliders for brightness, contrast and gamma

This patch adds a basic dialog to change brightness, contrast and gamma
correction for the selected layer.
This commit is contained in:
Torstennator 2022-04-24 10:46:59 +02:00 committed by Sam Atkins
parent 69c451e485
commit 5aeb6552f0
9 changed files with 303 additions and 0 deletions

View file

@ -0,0 +1,87 @@
@GUI::Frame {
fill_with_background_color: true
layout: @GUI::VerticalBoxLayout {
margins: [4]
}
@GUI::Widget {
shrink_to_fit: true
layout: @GUI::VerticalBoxLayout {}
@GUI::Label {
name: "context_label"
enabled: true
fixed_height: 20
visible: true
text: "Working on Background"
text_alignment: "CenterLeft"
}
@GUI::Label {
enabled: true
fixed_height: 20
visible: true
text: "Brightness"
text_alignment: "Left"
}
@GUI::ValueSlider {
name: "brightness_slider"
value: 0
max: 255
min: -255
page_step: 10
}
@GUI::Label {
enabled: true
fixed_height: 20
visible: true
text: "Contrast"
text_alignment: "Left"
}
@GUI::ValueSlider {
name: "contrast_slider"
value: 0
max: 255
min: -255
page_step: 10
}
@GUI::Label {
enabled: true
fixed_height: 20
visible: true
text: "Gamma"
text_alignment: "Left"
}
@GUI::ValueSlider {
name: "gamma_slider"
value: 100
max: 350
min: 1
page_step: 10
}
@GUI::HorizontalSeparator {}
}
@GUI::Widget {
layout: @GUI::HorizontalBoxLayout {}
fixed_height: 22
@GUI::Layout::Spacer {}
@GUI::DialogButton {
name: "apply_button"
text: "OK"
}
@GUI::DialogButton {
name: "cancel_button"
text: "Cancel"
}
}
}