projects
/
harmattan
/
cameraplus
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3fa3497
)
Add opacity animation to settings and post capture views
author
Mohammed Sameer
<msameer@foolab.org>
Sun, 15 Sep 2013 20:21:36 +0000
(23:21 +0300)
committer
Mohammed Sameer
<msameer@foolab.org>
Sun, 15 Sep 2013 20:21:36 +0000
(23:21 +0300)
qml/MainPage.qml
patch
|
blob
|
history
diff --git
a/qml/MainPage.qml
b/qml/MainPage.qml
index
b8a415f
..
95cba6b
100644
(file)
--- a/
qml/MainPage.qml
+++ b/
qml/MainPage.qml
@@
-50,6
+50,11
@@
CameraPage {
property bool pressed: false
property bool inhibitDim: false
property int policyMode: settings.mode == Camera.VideoMode ? CameraResources.Video : CameraResources.Image
property bool pressed: false
property bool inhibitDim: false
property int policyMode: settings.mode == Camera.VideoMode ? CameraResources.Video : CameraResources.Image
+ opacity: item ? 1.0 : 0
+
+ Behavior on opacity {
+ NumberAnimation {duration: 200}
+ }
}
CameraView {
}
CameraView {
@@
-66,6
+71,11
@@
CameraPage {
width: mainView.width
height: mainView.height
width: mainView.width
height: mainView.height
+ opacity: item ? 1.0 : 0
+
+ Behavior on opacity {
+ NumberAnimation {duration: 200}
+ }
}
}
}
}