Initial commit (Vesion 0.1)
[tablet-suite] / src / style / .svn / text-base / styleTabletSuite.py.svn-base
1 from ui.pcsuiutils import *
2
3 STYLESHEET = ''' 
4             QPushButton {
5                 min-height:33px; 
6                 min-width:64px; 
7                 max-height:33px;
8                 max-width:64px;
9                 border: none; 
10                 qproperty-icon: none; 
11                 qproperty-focusPolicy: NoFocus;
12                 background-image: url(''' + BACKUP_BUTTON_DEFAULT +''');
13             }
14             
15             QPushButton::pressed {
16                 background-image: url(''' + BACKUP_BUTTON_DEFAULT_CLICKED + ''');
17             }
18             
19             QPushButton::enabled {
20                 color:black;
21             }
22             
23             QPushButton#tsButton {
24                 color : #636060;
25                 background-image: url(''' + BUTTON_BG +''');
26                 min-height:33px; 
27                 min-width:91px;
28                 max-height:32px;
29                 max-width:93px;
30                 border: none; 
31                 qproperty-focusPolicy : NoFocus;
32                 qproperty-icon: none; 
33             }
34             
35             QPushButton#tsButton::pressed {
36                 background-image: url(''' + BUTTON_BG_CLICKED + ''');
37             }
38             
39             QPushButton#smallButton {
40                 color : gray;
41                 border-image: url(''' + BUTTON_BG +''');
42                 min-height:20px; 
43                 min-width:34px;
44                 max-height:20px;
45                 max-width:34px;
46                 border: none; 
47                 qproperty-focusPolicy : NoFocus;
48                 qproperty-icon: none; 
49                 background:transparent;
50             }
51             
52             QPushButton#smallButton::pressed {
53                 border-image: url(''' + BUTTON_BG_CLICKED + ''');
54                 background:transparent;
55             }
56             
57             QMainWindow {
58                 background-image: url(''' + BACKGROUND_IMAGE + ''');
59             }
60             
61             PcsBackup {
62                 background-image: url('''+ BACKUP_BG +''')
63             }
64             
65             PcsRestoreBackupUi {
66                 background-image: url('''+ RESTORE_BG +''')
67             }
68             
69             PcsBackupManagerUi{
70                 background-image: url('''+ MANAGER_BG +''')
71             }
72             
73             QListWidget {
74                 selection-background-color : transparent;
75             }
76             
77             QMenuBar::item {
78                 background: transparent;
79             }
80             
81             QMenuBar {
82                 background: transparent;
83             }
84             
85             QRadioButton{
86                 qproperty-focusPolicy: NoFocus;
87                 border-image: url('''+ CHECKBOX_BORDER +''');
88                 min-height: 38px; 
89                 max-height: 38px;
90             }
91             
92             QRadioButton::indicator:unchecked {
93                 image: url(''' + CHECKBOX_UNCHECKED + ''');
94             }
95             
96             QRadioButton::indicator:checked {
97                 image: url('''+ CHECKBOX_CHECKED +''');
98             }
99             
100             QCheckBox{
101                 border-image: url('''+ CHECKBOX_BORDER +''');
102                 qproperty-focusPolicy: NoFocus;
103                 spacing: 10px;
104                 min-height: 38px; 
105                 max-height: 38px;
106                 min-width: 230px; 
107                 max-width: 230px;
108             }
109             
110             QCheckBox::indicator:unchecked {
111                 image: url(''' + CHECKBOX_UNCHECKED + ''');
112             }
113             
114             QCheckBox::indicator:checked {
115                 image: url('''+ CHECKBOX_CHECKED +''');
116             }
117             
118             QScrollArea {
119                 background: none;
120                 margin-top : 0px;
121                 min-width: 270px;
122                 max-width: 270px; 
123                 min-height: 243px; 
124                 max-height: 243px;
125                 border-image :url('''+ COPY_BORDER +''');
126             }
127             
128             QScrollArea#restoreScroll {
129                 margin-top : 0px;
130                 min-width: 270px;
131                 max-width: 270px; 
132                 min-height: 150px; 
133                 max-height: 150px;
134                 border-image :url('''+ COPY_BORDER +''');
135             }
136         
137             QListWidget {
138                 border-style: inset;
139             }
140         
141             QInputDialog{
142                 background-image: url(''' + DEFAULT_BG + ''');
143             }
144       
145             QScrollBar::sub-line, QScrollBar::add-line{
146                 background:none;
147             } 
148             
149             QScrollBar::add-page, QScrollBar::sub-page{
150                 background:none;
151             }
152            
153             QScrollBar:vertical { 
154                 border-image: url(''' + SCROLL_BASE_V + '''); 
155                 background:none;
156                 margin: 0px;
157                 min-width:18px;
158                 max-width:18px;
159                 border: 1px solid grey;
160             }
161             
162             QScrollBar:handle:vertical { 
163                 border-image: url(''' + SCROLL_HANDLE_V +''');
164             }
165             
166             QScrollBar:horizontal{ 
167                 border-image: url(''' + SCROLL_BASE_H + '''); 
168                 background:none;
169                 margin: 0px;
170                 min-height:18px;
171                 max-height:18px;
172                 border: 1px solid grey;
173             }
174             
175             QScrollBar:handle:horizontal { 
176                 border-image: url(''' + SCROLL_HANDLE_H +''');
177             }
178                         
179             QPushButton#buttonBrowse {
180                 min-height:25px; 
181                 min-width:25px; 
182                 max-height:25px;
183                 max-width:25px;
184                 border: none; 
185                 qproperty-icon: none; 
186                 qproperty-focusPolicy : NoFocus;
187                 background-image: url(''' + BROWSE_BUTTON +''');
188             }
189             
190             QLineEdit {
191                 border-image: url(''' + BACKUP_NAME_BORDER +''');
192                 color: white;
193             }
194             
195             QLineEdit#backupNameField {
196                 border-image: url(''' + BACKUP_NAME_BORDER +''');
197                 color: white;
198                 min-height:20px; 
199                 min-width:171px; 
200                 max-height:20px;
201                 max-width:171px;
202             }
203             
204             QLineEdit#pathField {
205                 border-image: url(''' + PATH_BORDER +''');
206                 color: white;
207                 min-height:22px; 
208                 min-width:241px; 
209                 max-height:22px;
210                 max-width:241px;
211             }
212             
213             QLineEdit#ipField {
214                 border-image: url(''' + PATH_BORDER +''');
215                 color: white;
216                 min-height:22px; 
217                 min-width:215px; 
218                 max-height:22px;
219                 max-width:215px;
220             }
221             
222             QProgressBar#progressBarWizard {
223                 min-height: 18px; 
224                 min-width:  353px; 
225                 max-height: 18px;
226                 max-width:  353px;
227                 border-image: url(''' + PROGRESS_BAR_BORDER +''');
228             }
229             
230             QProgressBar#progressBarWizard::chunk{
231                 background-image:url(''' + PROGRESS_BAR_CHUNK +''');
232                 max-height: 18px;
233                 margin: 0px;
234             }
235             
236             QProgressBar#progressBarDialog {
237                 min-height: 18px; 
238                 min-width:  260px; 
239                 max-height: 18px;
240                 max-width:  260px;
241                 border-image: url(''' + PROGRESS_BAR_BORDER +''');
242             }
243             
244             QProgressBar#progressBarDialog::chunk{
245                 background-image:url(''' + PROGRESS_BAR_CHUNK_DIALOG +''');
246                 max-height: 18px;
247                 margin: 0px;
248             }
249             
250             QProgressDialog#progressDialog{
251                 background-image:url(''' + DEFAULT_BG +''');
252             }
253             
254             QWidget#DeviceListPanel {
255                 background-color: transparent;
256                 min-height: 265px; 
257                 min-width:  370px; 
258                 max-height: 265px;
259                 max-width:  370px;
260             }
261             
262             QTabWidget#tabBar::pane {
263                 border-top: 10px solid transparent;
264                 border-left: 40px solid transparent;
265                 background-color: transparent;
266             }
267             
268             QTableView#ListView {
269                 border-image: url(''' + TABLE_BORDER + ''');
270                 background-color: transparent;
271                 qproperty-focusPolicy: NoFocus;
272                 color: white; 
273                 alternate-background-color: #afafaf;
274                 padding: 0px;
275                 selection-background-color: #ced1cc;
276                 selection-color: #1d544f;
277                 show-decoration-selected: 0;
278                 border: 2px;
279                 min-height: 200px; 
280                 max-height: 200px;
281                 min-width:  350px; 
282                 max-width:  350px;
283                 
284             }
285             
286             QTableView#ipList {
287                 border-image: url(''' + IP_LIST_BORDER + ''');
288                 background-color: transparent;
289                 qproperty-focusPolicy: NoFocus;
290                 color: white; 
291                 alternate-background-color: #afafaf;
292                 padding: 0px;
293                 selection-background-color: #ced1cc;
294                 selection-color: #1d544f;
295                 show-decoration-selected: 0;
296                 border: 2px;
297                 min-height: 120px; 
298                 max-height: 120px;
299                 min-width:  248px; 
300                 max-width:  248px;
301                 
302             }
303             
304             QScrollArea#listScrollArea {
305                 
306             }
307             
308             QHeaderView#listHeader {
309                 background-color: gray;
310                 
311             }
312             
313             QHeaderView#listHeader::section {
314                 border-top: 10px solid transparent;
315                 border-color: transparent;
316                 background-color: transparent;
317                 color: Black; 
318                 font: 10px;
319             }
320             
321             QTabBar#restoreTabs {
322                 qproperty-focusPolicy: NoFocus;
323             }
324             
325             QTabBar#restoreTabs::tab {
326                  background-color: transparent;
327                  border: none;
328                  min-width: 215px;
329                  max-width: 215px;
330                  padding: 0px;
331                  
332             }
333              
334             QTabBar#restoreTabs::tab:selected {
335                 color: white;
336             }
337
338             QTabBar#managerTabs {
339                 qproperty-focusPolicy: NoFocus;
340             }
341             
342             QTabBar#managerTabs::tab {
343                  background-color: transparent;
344                  border: none;
345                  min-width: 215px;
346                  max-width: 215px;
347                  padding: 0px;
348                  
349             }
350              
351             QTabBar#managerTabs::tab:selected {
352                 color: white;
353             }
354
355             QTabBar#managerTabs::tab:!selected {
356                 color: black;
357             }
358             
359             QDialog#connectDialog{
360                 background-image: url(''' + DEFAULT_BG + ''');
361                 border: none;
362                 min-height: 289px;
363                 max-height: 289px;
364                 min-width:  275px; 
365             }
366             
367             QDialog#viewDialog{
368                 background-image: url(''' + DEFAULT_BG + ''');
369                 border: none;
370                 min-height: 190px;
371                 max-height: 190px;
372                 min-width:  300px; 
373                 max-width:  300px;
374             }            
375             
376             QDialog#copyDialogToDevice{
377                 background-image: url(''' + DEFAULT_BG + ''');
378                 border: none;
379                 min-height: 140px;
380                 max-height: 140px;
381                 min-width:  230px; 
382                 max-width:  230px;
383             }
384             
385             QDialog#copyDialogFromDevice{
386                 background-image: url(''' + DEFAULT_BG + ''');
387                 border: none;
388                 min-height: 110px;
389                 max-height: 110px;
390                 min-width:  260px; 
391                 max-width:  260px;
392             }
393             
394             PcsRestoreDialog {
395                 background-image: url(''' + DEFAULT_BG + ''');
396                 border: none;
397                 min-height: 250px;
398                 max-height: 250px;
399                 min-width:  300px; 
400                 max-width:  300px;
401             }
402             
403             QListWidget#viewList{
404                 border-image: url(''' + VIEW_BORDER + ''');
405                 qproperty-focusPolicy: NoFocus;
406                 padding: 5px;
407             }
408             
409             PcsProgressDialog {
410                 background-image: url('''+ DEFAULT_BG +''');
411                 min-height: 150px;
412                 max-height: 150px;
413                 min-width:  295px; 
414                 max-width:  295px;                
415             }
416                    
417         '''
418         
419
420       
421         
422 BACKUP_BUTTON_STYLE = '''
423
424             QPushButton {
425                 color : gray;
426                 min-height:35px; 
427                 min-width:79px; 
428                 max-height:35px;
429                 max-width:79px;
430                 border: none; 
431                 qproperty-icon: none; 
432                 qproperty-focusPolicy : NoFocus;
433                 background-image: url(''' + BT_NEXT +''');
434             }
435             
436             QPushButton::pressed {
437                 background-image: url(''' +BT_NEXT_CLICKED + ''');
438             }
439             
440         '''
441         
442 DEFAULT_BUTTON_STYLE = '''
443
444             QPushButton {
445                 min-height:33px; 
446                 min-width:64px; 
447                 max-height:33px;
448                 max-width:64px;
449                 border: none; 
450                 qproperty-icon: none; 
451                 qproperty-focusPolicy : NoFocus;
452                 background-image: url(''' + BACKUP_BUTTON_DEFAULT +''');
453             }
454             
455             QPushButton::pressed {
456                 background-image: url(''' + BACKUP_BUTTON_DEFAULT_CLICKED + ''');
457             }
458             
459             QPushButton::enabled {
460                 color:black;
461             }
462             
463         '''
464 SMALL_DEFAULT_BUTTON_STYLE = '''
465
466             QPushButton {
467                 min-height:20px; 
468                 min-width:34px; 
469                 max-height:20px;
470                 max-width: 34px;
471                 border: none;
472                 qproperty-icon: none;
473                 qproperty-focusPolicy : NoFocus;
474                 background-image: url(''' + SMALL_DEFAULT_BUTTON + ''')
475             }
476             
477             QPushButton::pressed {
478                 background-image: url(''' + SMALL_DEFAULT_BUTTON_CLICKED + ''');
479             }
480             
481             QPushButton::enabled {
482                 color:black;
483             }
484
485             '''
486
487 SMALL_ICON_NEW_BACKUP_STYLE = '''
488             QPushButton {
489                 min-height:25px; 
490                 min-width:125px; 
491                 max-height:25px;
492                 max-width: 125px;
493                 border: none;
494                 qproperty-iconSize: 25px 25px;
495                 qproperty-focusPolicy : NoFocus;
496                 background: transparent;
497                 qproperty-icon: url(''' + SMALL_ICON_NEW_BACKUP + ''')
498             }
499
500             '''
501             
502 SMALL_ICON_NEW_BACKUP_STYLE_SELECTED = '''
503             QPushButton {
504                 color: white;
505                 min-height:25px; 
506                 min-width:125px; 
507                 max-height:25px;
508                 max-width: 125px;
509                 border: none;
510                 qproperty-iconSize: 25px 25px;
511                 qproperty-focusPolicy : NoFocus;
512                 background: transparent;
513                 qproperty-icon: url(''' + SMALL_ICON_NEW_BACKUP + ''')
514             }
515
516             '''
517             
518 SMALL_ICON_MANAGER_BACKUP_STYLE = '''
519             QPushButton {
520                 min-height:25px; 
521                 min-width:138px; 
522                 max-height:25px;
523                 max-width: 138px;
524                 border: none;
525                 qproperty-iconSize: 25px 25px;
526                 qproperty-focusPolicy : NoFocus;
527                 background: transparent;
528                 qproperty-icon: url(''' + SMALL_ICON_MANAGER_BACKUP + ''')
529             }
530
531             '''
532
533 SMALL_ICON_MANAGER_BACKUP_STYLE_SELECTED = '''
534             QPushButton {
535                 color: white;
536                 min-height:25px; 
537                 min-width:138px; 
538                 max-height:25px;
539                 max-width: 138px;
540                 border: none;
541                 qproperty-iconSize: 25px 25px;
542                 qproperty-focusPolicy : NoFocus;
543                 background: transparent;
544                 qproperty-icon: url(''' + SMALL_ICON_MANAGER_BACKUP + ''')
545             }
546
547             '''
548
549 SMALL_ICON_RESTORE_BACKUP_STYLE = '''
550             QPushButton {
551                 min-height:25px; 
552                 min-width:130px; 
553                 max-height:25px;
554                 max-width: 130px;
555                 border: none;
556                 qproperty-iconSize: 25px 25px;
557                 qproperty-focusPolicy : NoFocus;
558                 background: transparent;
559                 qproperty-icon: url(''' + SMALL_ICON_RESTORE_BACKUP + ''')
560             }
561
562             '''
563             
564 SMALL_ICON_RESTORE_BACKUP_STYLE_SELECTED = '''
565             QPushButton {
566                 color: white;
567                 min-height:25px; 
568                 min-width:130px; 
569                 max-height:25px;
570                 max-width: 130px;
571                 border: none;
572                 qproperty-iconSize: 25px 25px;
573                 qproperty-focusPolicy : NoFocus;
574                 background: transparent;
575                 qproperty-icon: url(''' + SMALL_ICON_RESTORE_BACKUP + ''')
576             }
577             '''
578 MESSAGE_BOX_DEFAULT = '''
579             
580             QMessageBox {
581                 background-image: url('''+ DEFAULT_BG +''');
582                 color: black;
583             }
584         ''' + DEFAULT_BUTTON_STYLE
585
586 MESSAGE_BOX_APP = '''
587             QMessageBox {
588                 background-image: url('''+ DEFAULT_BG +''');
589                 color: black;
590             }
591             QAbstractButton {
592                 color : #636060;
593                 background-image: url(''' + BUTTON_BG +''');
594                 min-height:33px; 
595                 min-width:91px;
596                 max-height:32px;
597                 max-width:93px;
598                 border: none; 
599                 qproperty-icon: none;
600                 qproperty-focusPolicy: NoFocus; 
601             }
602             QAbstractButton::pressed {
603                 background-image: url(''' + BUTTON_BG_CLICKED + ''');
604             }
605         '''
606