Added an icon for tiny video resolution
[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         return "image://theme/cameraplus-icon-m-camera-video-"+ res + "-resolution"
90     }
91
92     function whiteBalanceIcon(val) {
93         switch (val) {
94             case WhiteBalance.Auto:
95                 return whiteBalanceAutoIconId
96             case WhiteBalance.Sunset:
97                 return whiteBalanceSunsetIconId
98             case WhiteBalance.Cloudy:
99                 return whiteBalanceCloudyIconId
100             case WhiteBalance.Flourescent:
101                 return whiteBalanceFlourescentIconId
102             case WhiteBalance.Tungsten:
103                 return whiteBalanceTungstenIconId
104             default:
105                 return ""
106         }
107     }
108
109     function colorFilterIcon(val) {
110         switch (val) {
111             case ColorTone.Normal:
112                 return colorFilterNormalIconId
113             case ColorTone.GrayScale:
114                 return colorFilterGrayScaleIconId
115             case ColorTone.Sepia:
116                 return colorFilterSepiaIconId
117             case ColorTone.Vivid:
118                 return colorFilterVividIconId
119             case ColorTone.Negative:
120                 return colorFilterNegativeIconId
121             case ColorTone.Solarize:
122                 return colorFilterSolarizeIconId
123             default:
124                 return ""
125         }
126     }
127
128     function imageSceneModeIcon(val) {
129         switch (val) {
130             case Scene.Auto:
131                 return imageSceneModeAutoIconId
132             case Scene.Closeup:
133                 return imageSceneModeCloseupIconId
134             case Scene.Landscape:
135                 return imageSceneModeLandscapeIconId
136             case Scene.Portrait:
137                 return imageSceneModePortraitIconId
138             case Scene.Night:
139                 return imageSceneModeNightIconId
140             case Scene.Sport:
141                 return imageSceneModeSportIconId
142             default:
143                 return ""
144         }
145     }
146
147     function videoSceneModeIcon(val) {
148         switch (val) {
149             case Scene.Auto:
150                 return videoSceneModeAutoIconId
151             case Scene.Night:
152                 return videoSceneModeNightIconId
153             default:
154                 return ""
155         }
156     }
157
158     function flashIcon(val) {
159         switch (val) {
160             case Flash.Auto:
161                 return flashAutoIconId
162             case Flash.On:
163                 return flashOnIconId
164             case Flash.Off:
165                 return flashOffIconId
166             case Flash.RedEye:
167                 return flashRedEyeIconId
168             default:
169                 return ""
170         }
171     }
172
173     function isoIcon(val) {
174         switch (val) {
175             case 0:
176                 return isoAudoIconId
177             case 100:
178                 return iso100IconId
179             case 200:
180                 return iso200IconId
181             case 400:
182                 return iso400IconId
183             case 800:
184                 return iso800IconId
185             default:
186                 return ""
187         }
188     }
189 }