Switch toolbar animation to opacity
[harmattan/cameraplus] / qml / CameraTheme.qml
1 // -*- qml -*-
2
3 /*!
4  * This file is part of CameraPlus.
5  *
6  * Copyright (C) 2012-2013 Mohammed Sameer <msameer@foolab.org>
7  *
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.
12  *
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.
17  *
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
21  */
22
23 import QtQuick 2.0
24 import QtCamera 1.0
25
26 QtObject {
27     property string standbyIcon: "image://theme/cameraplus-icon-l-camera-standby"
28
29     property string gpsIndicatorIcon: "image://theme/cameraplus-icon-m-camera-location"
30     property string faceDetectionIndicatorIcon: "image://theme/cameraplus-icon-m-camera-face-detection-screen"
31
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"
52
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"
57
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"
63
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"
70
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"
77
78     property string videoSceneModeAutoIconId: "image://theme/cameraplus-icon-m-camera-scene-auto"
79     property string videoSceneModeNightIconId: "image://theme/cameraplus-icon-m-camera-video-night"
80
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"
87
88     function videoIcon(ratio, res, device) {
89         if (res == "high") {
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"
95         } else {
96             return ""
97         }
98     }
99
100     function whiteBalanceIcon(val) {
101         switch (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
112             default:
113                 return ""
114         }
115     }
116
117     function colorFilterIcon(val) {
118         switch (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
131             default:
132                 return ""
133         }
134     }
135
136     function imageSceneModeIcon(val) {
137         switch (val) {
138             case Scene.Auto:
139                 return imageSceneModeAutoIconId
140             case Scene.Closeup:
141                 return imageSceneModeCloseupIconId
142             case Scene.Landscape:
143                 return imageSceneModeLandscapeIconId
144             case Scene.Portrait:
145                 return imageSceneModePortraitIconId
146             case Scene.Night:
147                 return imageSceneModeNightIconId
148             case Scene.Sport:
149                 return imageSceneModeSportIconId
150             default:
151                 return ""
152         }
153     }
154
155     function videoSceneModeIcon(val) {
156         switch (val) {
157             case Scene.Auto:
158                 return videoSceneModeAutoIconId
159             case Scene.Night:
160                 return videoSceneModeNightIconId
161             default:
162                 return ""
163         }
164     }
165
166     function flashIcon(val) {
167         switch (val) {
168             case Flash.Auto:
169                 return flashAutoIconId
170             case Flash.On:
171                 return flashOnIconId
172             case Flash.Off:
173                 return flashOffIconId
174             case Flash.RedEye:
175                 return flashRedEyeIconId
176             default:
177                 return ""
178         }
179     }
180
181     function isoIcon(val) {
182         switch (val) {
183             case 0:
184                 return isoAudoIconId
185             case 100:
186                 return iso100IconId
187             case 200:
188                 return iso200IconId
189             case 400:
190                 return iso400IconId
191             case 800:
192                 return iso800IconId
193             default:
194                 return ""
195         }
196     }
197 }