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 { ...@@ -36,7 +36,7 @@ Image {
property real hue property real hue
Image { Image {
id: intensity id: intensityScreen
source: Activity.url + "flashlight2.svg" source: Activity.url + "flashlight2.svg"
sourceSize.height: parent.sourceSize.height sourceSize.height: parent.sourceSize.height
z: 2 z: 2
...@@ -49,24 +49,26 @@ Image { ...@@ -49,24 +49,26 @@ Image {
lightness: -(maxSteps - currentStep) / maxSteps lightness: -(maxSteps - currentStep) / maxSteps
saturation: 1 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 { Colorize {
source: Activity.url + "light.svg" anchors.fill: parent
sourceSize.height: parent.sourceSize.height / 2 source: parent
anchors { hue: chooser.hue
left: parent.right lightness: -(maxSteps - currentStep) / maxSteps
leftMargin: -20 * ApplicationInfo.ratio saturation: 1
verticalCenter: parent.verticalCenter
}
opacity: currentStep / maxSteps
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