4 * This file is part of CameraPlus.
6 * Copyright (C) 2012-2013 Mohammed Sameer <msameer@foolab.org>
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
27 property string standbyIcon: "image://theme/cameraplus-icon-l-camera-standby"
29 property string gpsIndicatorIcon: "image://theme/cameraplus-icon-m-camera-location"
30 property string faceDetectionIndicatorIcon: "image://theme/cameraplus-icon-m-camera-face-detection-screen"
32 property string recordingDurationIcon: "image://theme/cameraplus-icon-m-camera-ongoing-recording"
33 property string cameraTorchOnIconId: "image://theme/cameraplus-icon-m-camera-torch-on"
34 property string cameraTorchOffIconId: "image://theme/cameraplus-icon-m-camera-torch-off"
35 property string soundMuteOnIconId: "image://theme/cameraplus-icon-m-toolbar-volume-off-white-selected"
36 property string soundMuteOffIconId: "image://theme/cameraplus-icon-m-toolbar-volume-white-selected"
37 property string videoStopIconId: "image://theme/cameraplus-icon-m-toolbar-mediacontrol-stop-white"
38 property string videoPauseIconId: "image://theme/cameraplus-icon-m-toolbar-mediacontrol-pause-white"
39 property string videoPlayIconId: "image://theme/cameraplus-icon-m-toolbar-mediacontrol-play-white"
40 property string cameraManualExposureIconId: "image://theme/cameraplus-icon-m-camera-manual-exposure"
41 property string cameraVideoIconId: "image://theme/cameraplus-icon-m-camera-video"
42 property string cameraImageIconId: "image://theme/cameraplus-icon-m-viewfinder-camera"
43 property string captureButtonImageIconId: "image://theme/cameraplus-icon-m-camera-shutter"
44 property string captureButtonVideoIconId: "image://theme/cameraplus-icon-m-camera-video-record"
45 property string captureButtonRecordingIconId: "image://theme/cameraplus-icon-m-camera-video-record"
46 property string cameraToolBarMenuIcon: "image://theme/cameraplus-icon-m-toolbar-back-white"
47 property string deleteIconId: "image://theme/cameraplus-icon-m-toolbar-delete-white"
48 property string shareIconId: "image://theme/cameraplus-icon-m-toolbar-share-white"
49 property string favoriteMarkIconId: "image://theme/cameraplus-icon-m-toolbar-favorite-mark-white"
50 property string favoriteUnmarkIconId: "image://theme/cameraplus-icon-m-toolbar-favorite-unmark-white"
51 property string galleryIconId: "image://theme/cameraplus-icon-m-camera-roll"
53 property string flashAutoIconId: "image://theme/cameraplus-icon-m-camera-flash-auto"
54 property string flashOnIconId: "image://theme/cameraplus-icon-m-camera-flash-always"
55 property string flashOffIconId: "image://theme/cameraplus-icon-m-camera-flash-off"
56 property string flashRedEyeIconId: "image://theme/cameraplus-icon-m-camera-flash-red-eye"
58 property string whiteBalanceAutoIconId: "image://theme/cameraplus-icon-m-camera-whitebalance-auto"
59 property string whiteBalanceSunsetIconId: "image://theme/cameraplus-icon-m-camera-whitebalance-sunny"
60 property string whiteBalanceCloudyIconId: "image://theme/cameraplus-icon-m-camera-whitebalance-cloudy"
61 property string whiteBalanceFlourescentIconId: "image://theme/cameraplus-icon-m-camera-whitebalance-fluorescent"
62 property string whiteBalanceTungstenIconId: "image://theme/cameraplus-icon-m-camera-whitebalance-tungsten"
64 property string colorFilterNormalIconId: "image://theme/cameraplus-icon-m-camera-no-filter"
65 property string colorFilterGrayScaleIconId: "image://theme/cameraplus-icon-m-camera-filter-black-white"
66 property string colorFilterSepiaIconId: "image://theme/cameraplus-icon-m-camera-filter-sepia"
67 property string colorFilterVividIconId: "image://theme/cameraplus-icon-m-camera-filter-vivid"
68 property string colorFilterNegativeIconId: "image://theme/cameraplus-icon-m-camera-filter-negative"
69 property string colorFilterSolarizeIconId: "image://theme/cameraplus-icon-m-camera-filter-solarize"
71 property string imageSceneModeAutoIconId: "image://theme/cameraplus-icon-m-camera-scene-auto"
72 property string imageSceneModeCloseupIconId: "image://theme/cameraplus-icon-m-camera-scene-macro"
73 property string imageSceneModeLandscapeIconId: "image://theme/cameraplus-icon-m-camera-scene-landscape"
74 property string imageSceneModePortraitIconId: "image://theme/cameraplus-icon-m-camera-scene-portrait"
75 property string imageSceneModeNightIconId: "image://theme/cameraplus-icon-m-camera-night"
76 property string imageSceneModeSportIconId: "image://theme/cameraplus-icon-m-camera-scene-sports"
78 property string videoSceneModeAutoIconId: "image://theme/cameraplus-icon-m-camera-scene-auto"
79 property string videoSceneModeNightIconId: "image://theme/cameraplus-icon-m-camera-video-night"
81 property string isoAudoIconId: "image://theme/cameraplus-icon-m-camera-iso-auto"
82 property string iso100IconId: "image://theme/cameraplus-icon-m-camera-iso-100"
83 property string iso200IconId: "image://theme/cameraplus-icon-m-camera-iso-200"
84 property string iso400IconId: "image://theme/cameraplus-icon-m-camera-iso-400"
85 property string iso800IconId: "image://theme/cameraplus-icon-m-camera-iso-800"
86 property string resetIconId: "image://theme/cameraplus-icon-m-settings-reset"
88 function videoIcon(ratio, res, device) {
90 return "image://theme/cameraplus-icon-m-camera-video-high-resolution"
91 } else if (res == "medium") {
92 return "image://theme/cameraplus-icon-m-camera-video-fine-resolution"
93 } else if (res == "low") {
94 return "image://theme/cameraplus-icon-m-camera-video-low-resolution"
100 function whiteBalanceIcon(val) {
102 case WhiteBalance.Auto:
103 return whiteBalanceAutoIconId
104 case WhiteBalance.Sunset:
105 return whiteBalanceSunsetIconId
106 case WhiteBalance.Cloudy:
107 return whiteBalanceCloudyIconId
108 case WhiteBalance.Flourescent:
109 return whiteBalanceFlourescentIconId
110 case WhiteBalance.Tungsten:
111 return whiteBalanceTungstenIconId
117 function colorFilterIcon(val) {
119 case ColorTone.Normal:
120 return colorFilterNormalIconId
121 case ColorTone.GrayScale:
122 return colorFilterGrayScaleIconId
123 case ColorTone.Sepia:
124 return colorFilterSepiaIconId
125 case ColorTone.Vivid:
126 return colorFilterVividIconId
127 case ColorTone.Negative:
128 return colorFilterNegativeIconId
129 case ColorTone.Solarize:
130 return colorFilterSolarizeIconId
136 function imageSceneModeIcon(val) {
139 return imageSceneModeAutoIconId
141 return imageSceneModeCloseupIconId
142 case Scene.Landscape:
143 return imageSceneModeLandscapeIconId
145 return imageSceneModePortraitIconId
147 return imageSceneModeNightIconId
149 return imageSceneModeSportIconId
155 function videoSceneModeIcon(val) {
158 return videoSceneModeAutoIconId
160 return videoSceneModeNightIconId
166 function flashIcon(val) {
169 return flashAutoIconId
173 return flashOffIconId
175 return flashRedEyeIconId
181 function isoIcon(val) {