summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Lécureuil <neoclust@mageia.org>2021-02-15 15:56:25 +0100
committerNicolas Lécureuil <neoclust@mageia.org>2021-02-15 15:56:25 +0100
commitdb43f0697adbeccab9d2a46ceb527fe3bb32fbc3 (patch)
tree2e434c10e5f95d339b656770d662f17c6948e32f
parent76d6bc5447e41c191ebb2e60246eea5e32fa16d2 (diff)
downloadmageia-sddm-db43f0697adbeccab9d2a46ceb527fe3bb32fbc3.tar
mageia-sddm-db43f0697adbeccab9d2a46ceb527fe3bb32fbc3.tar.gz
mageia-sddm-db43f0697adbeccab9d2a46ceb527fe3bb32fbc3.tar.bz2
mageia-sddm-db43f0697adbeccab9d2a46ceb527fe3bb32fbc3.tar.xz
mageia-sddm-db43f0697adbeccab9d2a46ceb527fe3bb32fbc3.zip
Sync with upstream breeze
-rw-r--r--components/VirtualKeyboard.qml56
-rw-r--r--components/WallpaperFader.qml6
2 files changed, 58 insertions, 4 deletions
diff --git a/components/VirtualKeyboard.qml b/components/VirtualKeyboard.qml
index 7848b75..edc7ab4 100644
--- a/components/VirtualKeyboard.qml
+++ b/components/VirtualKeyboard.qml
@@ -18,11 +18,65 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*********************************************************************/
import QtQuick 2.5
import QtQuick.VirtualKeyboard 2.1
+import org.kde.plasma.core 2.0 as PlasmaCore
InputPanel {
id: inputPanel
property bool activated: false
active: activated && Qt.inputMethod.visible
- visible: active
width: parent.width
+
+ states: [
+ State {
+ name: "visible"
+ when: inputPanel.active
+ PropertyChanges {
+ target: inputPanel
+ y: inputPanel.parent.height - inputPanel.height
+ opacity: 1
+ visible: true
+ }
+ },
+ State {
+ name: "hidden"
+ when: !inputPanel.active
+ PropertyChanges {
+ target: inputPanel
+ y: inputPanel.parent.height
+ opacity: 0
+ visible:false
+ }
+ }
+ ]
+
+ transitions: [
+ Transition {
+ to: "visible"
+ ParallelAnimation {
+ YAnimator {
+ // NOTE this is necessary as otherwise the keyboard always starts the transition with Y as 0, due to the internal reparenting happening when becomes active
+ from: inputPanel.parent.height
+ duration: PlasmaCore.Units.longDuration
+ easing.type: Easing.OutQuad
+ }
+ OpacityAnimator {
+ duration: PlasmaCore.Units.longDuration
+ easing.type: Easing.OutQuad
+ }
+ }
+ },
+ Transition {
+ to: "hidden"
+ ParallelAnimation {
+ YAnimator {
+ duration: PlasmaCore.Units.longDuration
+ easing.type: Easing.InQuad
+ }
+ OpacityAnimator {
+ duration: PlasmaCore.Units.longDuration
+ easing.type: Easing.InQuad
+ }
+ }
+ }
+ ]
}
diff --git a/components/WallpaperFader.qml b/components/WallpaperFader.qml
index f474acc..c695d69 100644
--- a/components/WallpaperFader.qml
+++ b/components/WallpaperFader.qml
@@ -64,9 +64,9 @@ Item {
textureMirroring: ShaderEffectSource.NoMirroring
}
- readonly property real contrast: 0.45 * wallpaperFader.factor + (1 - wallpaperFader.factor)
- readonly property real saturation: 1.7 * wallpaperFader.factor + (1 - wallpaperFader.factor)
- readonly property real intensity: (wallpaperFader.lightBackground ? 1.7 : 0.45) * wallpaperFader.factor + (1 - wallpaperFader.factor)
+ readonly property real contrast: 0.65 * wallpaperFader.factor + (1 - wallpaperFader.factor)
+ readonly property real saturation: 1.6 * wallpaperFader.factor + (1 - wallpaperFader.factor)
+ readonly property real intensity: (wallpaperFader.lightBackground ? 1.7 : 0.6) * wallpaperFader.factor + (1 - wallpaperFader.factor)
readonly property real transl: (1.0 - contrast) / 2.0;
readonly property real rval: (1.0 - saturation) * 0.2126;