Commit 83f7ccd9 authored by Bruno Coudoin's avatar Bruno Coudoin
Browse files

color_mix, rework to avoid having a colorize under another

I suspect that it is what creates a lot of rendering issues on some devices.
parent 2fb0176f
......@@ -36,7 +36,7 @@ Image {
property real hue
Image {
id: intensity
id: intensityScreen
source: Activity.url + "flashlight2.svg"
sourceSize.height: parent.sourceSize.height
z: 2
......@@ -49,24 +49,26 @@ Image {
lightness: -(maxSteps - currentStep) / maxSteps
saturation: 1
}
}
Image {
id: intensityLight
source: Activity.url + "light.svg"
sourceSize.height: intensityScreen.sourceSize.height / 2
visible: intensityScreen.visible
anchors {
left: intensityScreen.right
leftMargin: -20 * ApplicationInfo.ratio
verticalCenter: intensityScreen.verticalCenter
}
opacity: currentStep / maxSteps
Image {
source: Activity.url + "light.svg"
sourceSize.height: parent.sourceSize.height / 2
anchors {
left: parent.right
leftMargin: -20 * ApplicationInfo.ratio
verticalCenter: parent.verticalCenter
}
opacity: currentStep / maxSteps
Colorize {
anchors.fill: parent
source: parent
hue: chooser.hue
lightness: -(maxSteps - currentStep) / maxSteps
saturation: 1
}
Colorize {
anchors.fill: parent
source: parent
hue: chooser.hue
lightness: -(maxSteps - currentStep) / maxSteps
saturation: 1
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment