Add back scene mode indicators
authorMohammed Sameer <msameer@foolab.org>
Tue, 6 Aug 2013 23:03:59 +0000 (02:03 +0300)
committerMohammed Sameer <msameer@foolab.org>
Tue, 6 Aug 2013 23:03:59 +0000 (02:03 +0300)
qml/ImageOverlay.qml
qml/VideoOverlay.qml
qml/harmattan/CameraTheme.qml

index c14791e..02154f0 100644 (file)
@@ -201,6 +201,12 @@ Item {
                 source: "image://theme/" + cameraTheme.isoIcon(settings.imageIso)
             }
 
+            Indicator {
+                id: sceneIndicator
+                visible: settings.imageSceneMode != Scene.Auto
+                source: visible ? "image://theme/" + cameraTheme.imageSceneModeIndicatorIcon(settings.imageSceneMode) : ""
+            }
+
             Indicator {
                 id: gpsIndicator
                 visible: settings.useGps
index f9d0672..1f71980 100644 (file)
@@ -165,6 +165,12 @@ Item {
                 visible: settings.videoColorFilter != ColorTone.Normal
             }
 
+            Indicator {
+                id: sceneIndicator
+                visible: settings.videoSceneMode != Scene.Auto
+                source: visible ? "image://theme/" + cameraTheme.videoSceneModeIndicatorIcon(settings.videoSceneMode) : ""
+            }
+
             Indicator {
                 id: gpsIndicator
                 visible: settings.useGps
index de630d0..3511142 100644 (file)
@@ -240,4 +240,20 @@ QtObject {
             return colorFilterIcon(val) + "-screen"
         }
     }
-}
\ No newline at end of file
+
+    function imageSceneModeIndicatorIcon(val) {
+        if (val == Scene.Auto) {
+            return ""
+        } else {
+            return imageSceneModeIcon(val) + "-screen"
+        }
+    }
+
+    function videoSceneModeIndicatorIcon(val) {
+        if (val == Scene.Auto) {
+            return ""
+        } else {
+            return videoSceneModeIcon(val) + "-screen"
+        }
+    }
+}