mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 20:25:07 +00:00

This patch adds the ability to refine a editing mask by a color-range based on the pixels of the content image. This is useful for image editing where mask restirction via luminosity might not fit or just certain color ranges should be edited.
77 lines
1.6 KiB
Text
77 lines
1.6 KiB
Text
@GUI::Frame {
|
|
fill_with_background_color: true
|
|
layout: @GUI::VerticalBoxLayout {
|
|
margins: [4]
|
|
}
|
|
|
|
@GUI::Widget {
|
|
layout: @GUI::VerticalBoxLayout {}
|
|
|
|
@GUI::Label {
|
|
name: "hint_label"
|
|
enabled: true
|
|
fixed_height: 20
|
|
visible: true
|
|
text: "Restrict mask to colors:"
|
|
text_alignment: "CenterLeft"
|
|
}
|
|
|
|
@GUI::Widget {
|
|
layout: @GUI::HorizontalBoxLayout {}
|
|
|
|
@GUI::VerticalSlider {
|
|
name: "color_range"
|
|
max: 180
|
|
min: 0
|
|
value: 15
|
|
page_step: 10
|
|
}
|
|
|
|
@GUI::Widget {
|
|
name: "color_wheel_container"
|
|
}
|
|
|
|
@GUI::VerticalSlider {
|
|
name: "hardness"
|
|
max: 100
|
|
min: 0
|
|
value: 50
|
|
page_step: 10
|
|
}
|
|
}
|
|
|
|
@GUI::HorizontalRangeSlider {
|
|
name: "saturation_value"
|
|
max: 100
|
|
min: -100
|
|
lower_range: -100
|
|
upper_range: 100
|
|
page_step: 5
|
|
show_label: false
|
|
}
|
|
|
|
@GUI::CheckBox {
|
|
name: "mask_visibility"
|
|
text: "Show layer mask"
|
|
}
|
|
|
|
@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"
|
|
}
|
|
}
|
|
}
|