Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ApplicationPalette.h « mumble « src - github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 70483d220b556d64cec3339248f57d920e07978a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
// Copyright 2014-2022 The Mumble Developers. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file at the root of the
// Mumble source tree or at <https://www.mumble.info/LICENSE>.

// See scripts/generate-ApplicationPalette-class.py

// Auto-generated from ApplicationPaletteTemplate.h . Do not edit manually.

#ifndef APPLICATIONPALETTE_H
#define APPLICATIONPALETTE_H

#include <QTimer>
#include <QWidget>
#ifndef Q_MOC_RUN
#	include <boost/optional.hpp>
#endif
#include <QApplication>
#include <QDebug>

///
/// Class enabling theming of QApplication::palette from stylesheets.
///
/// QPalette cannot be styled which creates issues as not all
/// GUI elements in Qt can be styled. This class works around
/// that by offering a QPROPERTY for each color role and group
/// combination in QPalette. As you can set custom QPROPERTYs
/// from stylesheet this allows the user to set all relevant
/// palette brushes from the stylesheet.
///
/// Due to restrictions on allowed property names as well as a
/// mandatory prefix the attributes are exposed as lower cased:
/// "qproperty-<role>_<group>".
///
/// So a group of QPalette::Active and QPalette::Text role
/// would be styled by:
///
/// ApplicationPalette {
///     qproperty-text_active: #ff0000; /* Set color for active group */
/// }
///
/// See http://qt-project.org/doc/qt-4.8/qpalette.html#ColorGroup-enum
/// for the available groups and roles.
///
/// You can also use the shorthand "qproperty-<role>" to set all groups
/// to the same brush.
///
/// The class will automatically pick up style changes on itself
/// and update the application palette accordingly. To use the class
/// simply instantiate it before setting the theme and keep it around
/// till the application terminates.
///
class ApplicationPalette : public QWidget {
	Q_OBJECT
	Q_PROPERTY(QBrush windowtext READ get_windowtext WRITE set_windowtext)
	Q_PROPERTY(QBrush windowtext_active READ get_windowtext_active WRITE set_windowtext_active)
	Q_PROPERTY(QBrush windowtext_disabled READ get_windowtext_disabled WRITE set_windowtext_disabled)
	Q_PROPERTY(QBrush windowtext_inactive READ get_windowtext_inactive WRITE set_windowtext_inactive)
	Q_PROPERTY(QBrush button READ get_button WRITE set_button)
	Q_PROPERTY(QBrush button_active READ get_button_active WRITE set_button_active)
	Q_PROPERTY(QBrush button_disabled READ get_button_disabled WRITE set_button_disabled)
	Q_PROPERTY(QBrush button_inactive READ get_button_inactive WRITE set_button_inactive)
	Q_PROPERTY(QBrush light READ get_light WRITE set_light)
	Q_PROPERTY(QBrush light_active READ get_light_active WRITE set_light_active)
	Q_PROPERTY(QBrush light_disabled READ get_light_disabled WRITE set_light_disabled)
	Q_PROPERTY(QBrush light_inactive READ get_light_inactive WRITE set_light_inactive)
	Q_PROPERTY(QBrush midlight READ get_midlight WRITE set_midlight)
	Q_PROPERTY(QBrush midlight_active READ get_midlight_active WRITE set_midlight_active)
	Q_PROPERTY(QBrush midlight_disabled READ get_midlight_disabled WRITE set_midlight_disabled)
	Q_PROPERTY(QBrush midlight_inactive READ get_midlight_inactive WRITE set_midlight_inactive)
	Q_PROPERTY(QBrush dark READ get_dark WRITE set_dark)
	Q_PROPERTY(QBrush dark_active READ get_dark_active WRITE set_dark_active)
	Q_PROPERTY(QBrush dark_disabled READ get_dark_disabled WRITE set_dark_disabled)
	Q_PROPERTY(QBrush dark_inactive READ get_dark_inactive WRITE set_dark_inactive)
	Q_PROPERTY(QBrush mid READ get_mid WRITE set_mid)
	Q_PROPERTY(QBrush mid_active READ get_mid_active WRITE set_mid_active)
	Q_PROPERTY(QBrush mid_disabled READ get_mid_disabled WRITE set_mid_disabled)
	Q_PROPERTY(QBrush mid_inactive READ get_mid_inactive WRITE set_mid_inactive)
	Q_PROPERTY(QBrush text READ get_text WRITE set_text)
	Q_PROPERTY(QBrush text_active READ get_text_active WRITE set_text_active)
	Q_PROPERTY(QBrush text_disabled READ get_text_disabled WRITE set_text_disabled)
	Q_PROPERTY(QBrush text_inactive READ get_text_inactive WRITE set_text_inactive)
	Q_PROPERTY(QBrush brighttext READ get_brighttext WRITE set_brighttext)
	Q_PROPERTY(QBrush brighttext_active READ get_brighttext_active WRITE set_brighttext_active)
	Q_PROPERTY(QBrush brighttext_disabled READ get_brighttext_disabled WRITE set_brighttext_disabled)
	Q_PROPERTY(QBrush brighttext_inactive READ get_brighttext_inactive WRITE set_brighttext_inactive)
	Q_PROPERTY(QBrush buttontext READ get_buttontext WRITE set_buttontext)
	Q_PROPERTY(QBrush buttontext_active READ get_buttontext_active WRITE set_buttontext_active)
	Q_PROPERTY(QBrush buttontext_disabled READ get_buttontext_disabled WRITE set_buttontext_disabled)
	Q_PROPERTY(QBrush buttontext_inactive READ get_buttontext_inactive WRITE set_buttontext_inactive)
	Q_PROPERTY(QBrush base READ get_base WRITE set_base)
	Q_PROPERTY(QBrush base_active READ get_base_active WRITE set_base_active)
	Q_PROPERTY(QBrush base_disabled READ get_base_disabled WRITE set_base_disabled)
	Q_PROPERTY(QBrush base_inactive READ get_base_inactive WRITE set_base_inactive)
	Q_PROPERTY(QBrush window READ get_window WRITE set_window)
	Q_PROPERTY(QBrush window_active READ get_window_active WRITE set_window_active)
	Q_PROPERTY(QBrush window_disabled READ get_window_disabled WRITE set_window_disabled)
	Q_PROPERTY(QBrush window_inactive READ get_window_inactive WRITE set_window_inactive)
	Q_PROPERTY(QBrush shadow READ get_shadow WRITE set_shadow)
	Q_PROPERTY(QBrush shadow_active READ get_shadow_active WRITE set_shadow_active)
	Q_PROPERTY(QBrush shadow_disabled READ get_shadow_disabled WRITE set_shadow_disabled)
	Q_PROPERTY(QBrush shadow_inactive READ get_shadow_inactive WRITE set_shadow_inactive)
	Q_PROPERTY(QBrush highlight READ get_highlight WRITE set_highlight)
	Q_PROPERTY(QBrush highlight_active READ get_highlight_active WRITE set_highlight_active)
	Q_PROPERTY(QBrush highlight_disabled READ get_highlight_disabled WRITE set_highlight_disabled)
	Q_PROPERTY(QBrush highlight_inactive READ get_highlight_inactive WRITE set_highlight_inactive)
	Q_PROPERTY(QBrush highlightedtext READ get_highlightedtext WRITE set_highlightedtext)
	Q_PROPERTY(QBrush highlightedtext_active READ get_highlightedtext_active WRITE set_highlightedtext_active)
	Q_PROPERTY(QBrush highlightedtext_disabled READ get_highlightedtext_disabled WRITE set_highlightedtext_disabled)
	Q_PROPERTY(QBrush highlightedtext_inactive READ get_highlightedtext_inactive WRITE set_highlightedtext_inactive)
	Q_PROPERTY(QBrush link READ get_link WRITE set_link)
	Q_PROPERTY(QBrush link_active READ get_link_active WRITE set_link_active)
	Q_PROPERTY(QBrush link_disabled READ get_link_disabled WRITE set_link_disabled)
	Q_PROPERTY(QBrush link_inactive READ get_link_inactive WRITE set_link_inactive)
	Q_PROPERTY(QBrush linkvisited READ get_linkvisited WRITE set_linkvisited)
	Q_PROPERTY(QBrush linkvisited_active READ get_linkvisited_active WRITE set_linkvisited_active)
	Q_PROPERTY(QBrush linkvisited_disabled READ get_linkvisited_disabled WRITE set_linkvisited_disabled)
	Q_PROPERTY(QBrush linkvisited_inactive READ get_linkvisited_inactive WRITE set_linkvisited_inactive)
	Q_PROPERTY(QBrush alternatebase READ get_alternatebase WRITE set_alternatebase)
	Q_PROPERTY(QBrush alternatebase_active READ get_alternatebase_active WRITE set_alternatebase_active)
	Q_PROPERTY(QBrush alternatebase_disabled READ get_alternatebase_disabled WRITE set_alternatebase_disabled)
	Q_PROPERTY(QBrush alternatebase_inactive READ get_alternatebase_inactive WRITE set_alternatebase_inactive)
	Q_PROPERTY(QBrush tooltipbase READ get_tooltipbase WRITE set_tooltipbase)
	Q_PROPERTY(QBrush tooltipbase_active READ get_tooltipbase_active WRITE set_tooltipbase_active)
	Q_PROPERTY(QBrush tooltipbase_disabled READ get_tooltipbase_disabled WRITE set_tooltipbase_disabled)
	Q_PROPERTY(QBrush tooltipbase_inactive READ get_tooltipbase_inactive WRITE set_tooltipbase_inactive)
	Q_PROPERTY(QBrush tooltiptext READ get_tooltiptext WRITE set_tooltiptext)
	Q_PROPERTY(QBrush tooltiptext_active READ get_tooltiptext_active WRITE set_tooltiptext_active)
	Q_PROPERTY(QBrush tooltiptext_disabled READ get_tooltiptext_disabled WRITE set_tooltiptext_disabled)
	Q_PROPERTY(QBrush tooltiptext_inactive READ get_tooltiptext_inactive WRITE set_tooltiptext_inactive)

public:
	explicit ApplicationPalette(QWidget *p = 0) : QWidget(p), m_originalPalette(QApplication::palette()) {
		// Empty
	}


	QBrush get_windowtext() {
		if (property("windowtext_active") == property("windowtext_disabled")
			&& property("windowtext_active") == property("windowtext_inactive")) {
			return qvariant_cast< QBrush >(property("windowtext_active"));
		}
		return QBrush();
	}

	void set_windowtext(const QBrush &brush) {
		m_windowtext_active   = brush;
		m_windowtext_disabled = brush;
		m_windowtext_inactive = brush;
	}

	QBrush get_windowtext_active() {
		if (!m_windowtext_active)
			return QBrush();

		return *m_windowtext_active;
	}

	void set_windowtext_active(const QBrush &brush) { m_windowtext_active = brush; }

	QBrush get_windowtext_disabled() {
		if (!m_windowtext_disabled)
			return QBrush();

		return *m_windowtext_disabled;
	}

	void set_windowtext_disabled(const QBrush &brush) { m_windowtext_disabled = brush; }

	QBrush get_windowtext_inactive() {
		if (!m_windowtext_inactive)
			return QBrush();

		return *m_windowtext_inactive;
	}

	void set_windowtext_inactive(const QBrush &brush) { m_windowtext_inactive = brush; }

	QBrush get_button() {
		if (property("button_active") == property("button_disabled")
			&& property("button_active") == property("button_inactive")) {
			return qvariant_cast< QBrush >(property("button_active"));
		}
		return QBrush();
	}

	void set_button(const QBrush &brush) {
		m_button_active   = brush;
		m_button_disabled = brush;
		m_button_inactive = brush;
	}

	QBrush get_button_active() {
		if (!m_button_active)
			return QBrush();

		return *m_button_active;
	}

	void set_button_active(const QBrush &brush) { m_button_active = brush; }

	QBrush get_button_disabled() {
		if (!m_button_disabled)
			return QBrush();

		return *m_button_disabled;
	}

	void set_button_disabled(const QBrush &brush) { m_button_disabled = brush; }

	QBrush get_button_inactive() {
		if (!m_button_inactive)
			return QBrush();

		return *m_button_inactive;
	}

	void set_button_inactive(const QBrush &brush) { m_button_inactive = brush; }

	QBrush get_light() {
		if (property("light_active") == property("light_disabled")
			&& property("light_active") == property("light_inactive")) {
			return qvariant_cast< QBrush >(property("light_active"));
		}
		return QBrush();
	}

	void set_light(const QBrush &brush) {
		m_light_active   = brush;
		m_light_disabled = brush;
		m_light_inactive = brush;
	}

	QBrush get_light_active() {
		if (!m_light_active)
			return QBrush();

		return *m_light_active;
	}

	void set_light_active(const QBrush &brush) { m_light_active = brush; }

	QBrush get_light_disabled() {
		if (!m_light_disabled)
			return QBrush();

		return *m_light_disabled;
	}

	void set_light_disabled(const QBrush &brush) { m_light_disabled = brush; }

	QBrush get_light_inactive() {
		if (!m_light_inactive)
			return QBrush();

		return *m_light_inactive;
	}

	void set_light_inactive(const QBrush &brush) { m_light_inactive = brush; }

	QBrush get_midlight() {
		if (property("midlight_active") == property("midlight_disabled")
			&& property("midlight_active") == property("midlight_inactive")) {
			return qvariant_cast< QBrush >(property("midlight_active"));
		}
		return QBrush();
	}

	void set_midlight(const QBrush &brush) {
		m_midlight_active   = brush;
		m_midlight_disabled = brush;
		m_midlight_inactive = brush;
	}

	QBrush get_midlight_active() {
		if (!m_midlight_active)
			return QBrush();

		return *m_midlight_active;
	}

	void set_midlight_active(const QBrush &brush) { m_midlight_active = brush; }

	QBrush get_midlight_disabled() {
		if (!m_midlight_disabled)
			return QBrush();

		return *m_midlight_disabled;
	}

	void set_midlight_disabled(const QBrush &brush) { m_midlight_disabled = brush; }

	QBrush get_midlight_inactive() {
		if (!m_midlight_inactive)
			return QBrush();

		return *m_midlight_inactive;
	}

	void set_midlight_inactive(const QBrush &brush) { m_midlight_inactive = brush; }

	QBrush get_dark() {
		if (property("dark_active") == property("dark_disabled")
			&& property("dark_active") == property("dark_inactive")) {
			return qvariant_cast< QBrush >(property("dark_active"));
		}
		return QBrush();
	}

	void set_dark(const QBrush &brush) {
		m_dark_active   = brush;
		m_dark_disabled = brush;
		m_dark_inactive = brush;
	}

	QBrush get_dark_active() {
		if (!m_dark_active)
			return QBrush();

		return *m_dark_active;
	}

	void set_dark_active(const QBrush &brush) { m_dark_active = brush; }

	QBrush get_dark_disabled() {
		if (!m_dark_disabled)
			return QBrush();

		return *m_dark_disabled;
	}

	void set_dark_disabled(const QBrush &brush) { m_dark_disabled = brush; }

	QBrush get_dark_inactive() {
		if (!m_dark_inactive)
			return QBrush();

		return *m_dark_inactive;
	}

	void set_dark_inactive(const QBrush &brush) { m_dark_inactive = brush; }

	QBrush get_mid() {
		if (property("mid_active") == property("mid_disabled") && property("mid_active") == property("mid_inactive")) {
			return qvariant_cast< QBrush >(property("mid_active"));
		}
		return QBrush();
	}

	void set_mid(const QBrush &brush) {
		m_mid_active   = brush;
		m_mid_disabled = brush;
		m_mid_inactive = brush;
	}

	QBrush get_mid_active() {
		if (!m_mid_active)
			return QBrush();

		return *m_mid_active;
	}

	void set_mid_active(const QBrush &brush) { m_mid_active = brush; }

	QBrush get_mid_disabled() {
		if (!m_mid_disabled)
			return QBrush();

		return *m_mid_disabled;
	}

	void set_mid_disabled(const QBrush &brush) { m_mid_disabled = brush; }

	QBrush get_mid_inactive() {
		if (!m_mid_inactive)
			return QBrush();

		return *m_mid_inactive;
	}

	void set_mid_inactive(const QBrush &brush) { m_mid_inactive = brush; }

	QBrush get_text() {
		if (property("text_active") == property("text_disabled")
			&& property("text_active") == property("text_inactive")) {
			return qvariant_cast< QBrush >(property("text_active"));
		}
		return QBrush();
	}

	void set_text(const QBrush &brush) {
		m_text_active   = brush;
		m_text_disabled = brush;
		m_text_inactive = brush;
	}

	QBrush get_text_active() {
		if (!m_text_active)
			return QBrush();

		return *m_text_active;
	}

	void set_text_active(const QBrush &brush) { m_text_active = brush; }

	QBrush get_text_disabled() {
		if (!m_text_disabled)
			return QBrush();

		return *m_text_disabled;
	}

	void set_text_disabled(const QBrush &brush) { m_text_disabled = brush; }

	QBrush get_text_inactive() {
		if (!m_text_inactive)
			return QBrush();

		return *m_text_inactive;
	}

	void set_text_inactive(const QBrush &brush) { m_text_inactive = brush; }

	QBrush get_brighttext() {
		if (property("brighttext_active") == property("brighttext_disabled")
			&& property("brighttext_active") == property("brighttext_inactive")) {
			return qvariant_cast< QBrush >(property("brighttext_active"));
		}
		return QBrush();
	}

	void set_brighttext(const QBrush &brush) {
		m_brighttext_active   = brush;
		m_brighttext_disabled = brush;
		m_brighttext_inactive = brush;
	}

	QBrush get_brighttext_active() {
		if (!m_brighttext_active)
			return QBrush();

		return *m_brighttext_active;
	}

	void set_brighttext_active(const QBrush &brush) { m_brighttext_active = brush; }

	QBrush get_brighttext_disabled() {
		if (!m_brighttext_disabled)
			return QBrush();

		return *m_brighttext_disabled;
	}

	void set_brighttext_disabled(const QBrush &brush) { m_brighttext_disabled = brush; }

	QBrush get_brighttext_inactive() {
		if (!m_brighttext_inactive)
			return QBrush();

		return *m_brighttext_inactive;
	}

	void set_brighttext_inactive(const QBrush &brush) { m_brighttext_inactive = brush; }

	QBrush get_buttontext() {
		if (property("buttontext_active") == property("buttontext_disabled")
			&& property("buttontext_active") == property("buttontext_inactive")) {
			return qvariant_cast< QBrush >(property("buttontext_active"));
		}
		return QBrush();
	}

	void set_buttontext(const QBrush &brush) {
		m_buttontext_active   = brush;
		m_buttontext_disabled = brush;
		m_buttontext_inactive = brush;
	}

	QBrush get_buttontext_active() {
		if (!m_buttontext_active)
			return QBrush();

		return *m_buttontext_active;
	}

	void set_buttontext_active(const QBrush &brush) { m_buttontext_active = brush; }

	QBrush get_buttontext_disabled() {
		if (!m_buttontext_disabled)
			return QBrush();

		return *m_buttontext_disabled;
	}

	void set_buttontext_disabled(const QBrush &brush) { m_buttontext_disabled = brush; }

	QBrush get_buttontext_inactive() {
		if (!m_buttontext_inactive)
			return QBrush();

		return *m_buttontext_inactive;
	}

	void set_buttontext_inactive(const QBrush &brush) { m_buttontext_inactive = brush; }

	QBrush get_base() {
		if (property("base_active") == property("base_disabled")
			&& property("base_active") == property("base_inactive")) {
			return qvariant_cast< QBrush >(property("base_active"));
		}
		return QBrush();
	}

	void set_base(const QBrush &brush) {
		m_base_active   = brush;
		m_base_disabled = brush;
		m_base_inactive = brush;
	}

	QBrush get_base_active() {
		if (!m_base_active)
			return QBrush();

		return *m_base_active;
	}

	void set_base_active(const QBrush &brush) { m_base_active = brush; }

	QBrush get_base_disabled() {
		if (!m_base_disabled)
			return QBrush();

		return *m_base_disabled;
	}

	void set_base_disabled(const QBrush &brush) { m_base_disabled = brush; }

	QBrush get_base_inactive() {
		if (!m_base_inactive)
			return QBrush();

		return *m_base_inactive;
	}

	void set_base_inactive(const QBrush &brush) { m_base_inactive = brush; }

	QBrush get_window() {
		if (property("window_active") == property("window_disabled")
			&& property("window_active") == property("window_inactive")) {
			return qvariant_cast< QBrush >(property("window_active"));
		}
		return QBrush();
	}

	void set_window(const QBrush &brush) {
		m_window_active   = brush;
		m_window_disabled = brush;
		m_window_inactive = brush;
	}

	QBrush get_window_active() {
		if (!m_window_active)
			return QBrush();

		return *m_window_active;
	}

	void set_window_active(const QBrush &brush) { m_window_active = brush; }

	QBrush get_window_disabled() {
		if (!m_window_disabled)
			return QBrush();

		return *m_window_disabled;
	}

	void set_window_disabled(const QBrush &brush) { m_window_disabled = brush; }

	QBrush get_window_inactive() {
		if (!m_window_inactive)
			return QBrush();

		return *m_window_inactive;
	}

	void set_window_inactive(const QBrush &brush) { m_window_inactive = brush; }

	QBrush get_shadow() {
		if (property("shadow_active") == property("shadow_disabled")
			&& property("shadow_active") == property("shadow_inactive")) {
			return qvariant_cast< QBrush >(property("shadow_active"));
		}
		return QBrush();
	}

	void set_shadow(const QBrush &brush) {
		m_shadow_active   = brush;
		m_shadow_disabled = brush;
		m_shadow_inactive = brush;
	}

	QBrush get_shadow_active() {
		if (!m_shadow_active)
			return QBrush();

		return *m_shadow_active;
	}

	void set_shadow_active(const QBrush &brush) { m_shadow_active = brush; }

	QBrush get_shadow_disabled() {
		if (!m_shadow_disabled)
			return QBrush();

		return *m_shadow_disabled;
	}

	void set_shadow_disabled(const QBrush &brush) { m_shadow_disabled = brush; }

	QBrush get_shadow_inactive() {
		if (!m_shadow_inactive)
			return QBrush();

		return *m_shadow_inactive;
	}

	void set_shadow_inactive(const QBrush &brush) { m_shadow_inactive = brush; }

	QBrush get_highlight() {
		if (property("highlight_active") == property("highlight_disabled")
			&& property("highlight_active") == property("highlight_inactive")) {
			return qvariant_cast< QBrush >(property("highlight_active"));
		}
		return QBrush();
	}

	void set_highlight(const QBrush &brush) {
		m_highlight_active   = brush;
		m_highlight_disabled = brush;
		m_highlight_inactive = brush;
	}

	QBrush get_highlight_active() {
		if (!m_highlight_active)
			return QBrush();

		return *m_highlight_active;
	}

	void set_highlight_active(const QBrush &brush) { m_highlight_active = brush; }

	QBrush get_highlight_disabled() {
		if (!m_highlight_disabled)
			return QBrush();

		return *m_highlight_disabled;
	}

	void set_highlight_disabled(const QBrush &brush) { m_highlight_disabled = brush; }

	QBrush get_highlight_inactive() {
		if (!m_highlight_inactive)
			return QBrush();

		return *m_highlight_inactive;
	}

	void set_highlight_inactive(const QBrush &brush) { m_highlight_inactive = brush; }

	QBrush get_highlightedtext() {
		if (property("highlightedtext_active") == property("highlightedtext_disabled")
			&& property("highlightedtext_active") == property("highlightedtext_inactive")) {
			return qvariant_cast< QBrush >(property("highlightedtext_active"));
		}
		return QBrush();
	}

	void set_highlightedtext(const QBrush &brush) {
		m_highlightedtext_active   = brush;
		m_highlightedtext_disabled = brush;
		m_highlightedtext_inactive = brush;
	}

	QBrush get_highlightedtext_active() {
		if (!m_highlightedtext_active)
			return QBrush();

		return *m_highlightedtext_active;
	}

	void set_highlightedtext_active(const QBrush &brush) { m_highlightedtext_active = brush; }

	QBrush get_highlightedtext_disabled() {
		if (!m_highlightedtext_disabled)
			return QBrush();

		return *m_highlightedtext_disabled;
	}

	void set_highlightedtext_disabled(const QBrush &brush) { m_highlightedtext_disabled = brush; }

	QBrush get_highlightedtext_inactive() {
		if (!m_highlightedtext_inactive)
			return QBrush();

		return *m_highlightedtext_inactive;
	}

	void set_highlightedtext_inactive(const QBrush &brush) { m_highlightedtext_inactive = brush; }

	QBrush get_link() {
		if (property("link_active") == property("link_disabled")
			&& property("link_active") == property("link_inactive")) {
			return qvariant_cast< QBrush >(property("link_active"));
		}
		return QBrush();
	}

	void set_link(const QBrush &brush) {
		m_link_active   = brush;
		m_link_disabled = brush;
		m_link_inactive = brush;
	}

	QBrush get_link_active() {
		if (!m_link_active)
			return QBrush();

		return *m_link_active;
	}

	void set_link_active(const QBrush &brush) { m_link_active = brush; }

	QBrush get_link_disabled() {
		if (!m_link_disabled)
			return QBrush();

		return *m_link_disabled;
	}

	void set_link_disabled(const QBrush &brush) { m_link_disabled = brush; }

	QBrush get_link_inactive() {
		if (!m_link_inactive)
			return QBrush();

		return *m_link_inactive;
	}

	void set_link_inactive(const QBrush &brush) { m_link_inactive = brush; }

	QBrush get_linkvisited() {
		if (property("linkvisited_active") == property("linkvisited_disabled")
			&& property("linkvisited_active") == property("linkvisited_inactive")) {
			return qvariant_cast< QBrush >(property("linkvisited_active"));
		}
		return QBrush();
	}

	void set_linkvisited(const QBrush &brush) {
		m_linkvisited_active   = brush;
		m_linkvisited_disabled = brush;
		m_linkvisited_inactive = brush;
	}

	QBrush get_linkvisited_active() {
		if (!m_linkvisited_active)
			return QBrush();

		return *m_linkvisited_active;
	}

	void set_linkvisited_active(const QBrush &brush) { m_linkvisited_active = brush; }

	QBrush get_linkvisited_disabled() {
		if (!m_linkvisited_disabled)
			return QBrush();

		return *m_linkvisited_disabled;
	}

	void set_linkvisited_disabled(const QBrush &brush) { m_linkvisited_disabled = brush; }

	QBrush get_linkvisited_inactive() {
		if (!m_linkvisited_inactive)
			return QBrush();

		return *m_linkvisited_inactive;
	}

	void set_linkvisited_inactive(const QBrush &brush) { m_linkvisited_inactive = brush; }

	QBrush get_alternatebase() {
		if (property("alternatebase_active") == property("alternatebase_disabled")
			&& property("alternatebase_active") == property("alternatebase_inactive")) {
			return qvariant_cast< QBrush >(property("alternatebase_active"));
		}
		return QBrush();
	}

	void set_alternatebase(const QBrush &brush) {
		m_alternatebase_active   = brush;
		m_alternatebase_disabled = brush;
		m_alternatebase_inactive = brush;
	}

	QBrush get_alternatebase_active() {
		if (!m_alternatebase_active)
			return QBrush();

		return *m_alternatebase_active;
	}

	void set_alternatebase_active(const QBrush &brush) { m_alternatebase_active = brush; }

	QBrush get_alternatebase_disabled() {
		if (!m_alternatebase_disabled)
			return QBrush();

		return *m_alternatebase_disabled;
	}

	void set_alternatebase_disabled(const QBrush &brush) { m_alternatebase_disabled = brush; }

	QBrush get_alternatebase_inactive() {
		if (!m_alternatebase_inactive)
			return QBrush();

		return *m_alternatebase_inactive;
	}

	void set_alternatebase_inactive(const QBrush &brush) { m_alternatebase_inactive = brush; }

	QBrush get_tooltipbase() {
		if (property("tooltipbase_active") == property("tooltipbase_disabled")
			&& property("tooltipbase_active") == property("tooltipbase_inactive")) {
			return qvariant_cast< QBrush >(property("tooltipbase_active"));
		}
		return QBrush();
	}

	void set_tooltipbase(const QBrush &brush) {
		m_tooltipbase_active   = brush;
		m_tooltipbase_disabled = brush;
		m_tooltipbase_inactive = brush;
	}

	QBrush get_tooltipbase_active() {
		if (!m_tooltipbase_active)
			return QBrush();

		return *m_tooltipbase_active;
	}

	void set_tooltipbase_active(const QBrush &brush) { m_tooltipbase_active = brush; }

	QBrush get_tooltipbase_disabled() {
		if (!m_tooltipbase_disabled)
			return QBrush();

		return *m_tooltipbase_disabled;
	}

	void set_tooltipbase_disabled(const QBrush &brush) { m_tooltipbase_disabled = brush; }

	QBrush get_tooltipbase_inactive() {
		if (!m_tooltipbase_inactive)
			return QBrush();

		return *m_tooltipbase_inactive;
	}

	void set_tooltipbase_inactive(const QBrush &brush) { m_tooltipbase_inactive = brush; }

	QBrush get_tooltiptext() {
		if (property("tooltiptext_active") == property("tooltiptext_disabled")
			&& property("tooltiptext_active") == property("tooltiptext_inactive")) {
			return qvariant_cast< QBrush >(property("tooltiptext_active"));
		}
		return QBrush();
	}

	void set_tooltiptext(const QBrush &brush) {
		m_tooltiptext_active   = brush;
		m_tooltiptext_disabled = brush;
		m_tooltiptext_inactive = brush;
	}

	QBrush get_tooltiptext_active() {
		if (!m_tooltiptext_active)
			return QBrush();

		return *m_tooltiptext_active;
	}

	void set_tooltiptext_active(const QBrush &brush) { m_tooltiptext_active = brush; }

	QBrush get_tooltiptext_disabled() {
		if (!m_tooltiptext_disabled)
			return QBrush();

		return *m_tooltiptext_disabled;
	}

	void set_tooltiptext_disabled(const QBrush &brush) { m_tooltiptext_disabled = brush; }

	QBrush get_tooltiptext_inactive() {
		if (!m_tooltiptext_inactive)
			return QBrush();

		return *m_tooltiptext_inactive;
	}

	void set_tooltiptext_inactive(const QBrush &brush) { m_tooltiptext_inactive = brush; }


private slots:
	void updateApplicationPalette() {
		qWarning() << "Updating application palette";

		QPalette newPalette = m_originalPalette; // Do not re-use potentially already styled palette. Might not pick up
												 // system style changes though.


		if (m_windowtext_active) {
			newPalette.setBrush(QPalette::Active, QPalette::WindowText, *m_windowtext_active);
		}

		if (m_windowtext_disabled) {
			newPalette.setBrush(QPalette::Disabled, QPalette::WindowText, *m_windowtext_disabled);
		}

		if (m_windowtext_inactive) {
			newPalette.setBrush(QPalette::Inactive, QPalette::WindowText, *m_windowtext_inactive);
		}

		if (m_button_active) {
			newPalette.setBrush(QPalette::Active, QPalette::Button, *m_button_active);
		}

		if (m_button_disabled) {
			newPalette.setBrush(QPalette::Disabled, QPalette::Button, *m_button_disabled);
		}

		if (m_button_inactive) {
			newPalette.setBrush(QPalette::Inactive, QPalette::Button, *m_button_inactive);
		}

		if (m_light_active) {
			newPalette.setBrush(QPalette::Active, QPalette::Light, *m_light_active);
		}

		if (m_light_disabled) {
			newPalette.setBrush(QPalette::Disabled, QPalette::Light, *m_light_disabled);
		}

		if (m_light_inactive) {
			newPalette.setBrush(QPalette::Inactive, QPalette::Light, *m_light_inactive);
		}

		if (m_midlight_active) {
			newPalette.setBrush(QPalette::Active, QPalette::Midlight, *m_midlight_active);
		}

		if (m_midlight_disabled) {
			newPalette.setBrush(QPalette::Disabled, QPalette::Midlight, *m_midlight_disabled);
		}

		if (m_midlight_inactive) {
			newPalette.setBrush(QPalette::Inactive, QPalette::Midlight, *m_midlight_inactive);
		}

		if (m_dark_active) {
			newPalette.setBrush(QPalette::Active, QPalette::Dark, *m_dark_active);
		}

		if (m_dark_disabled) {
			newPalette.setBrush(QPalette::Disabled, QPalette::Dark, *m_dark_disabled);
		}

		if (m_dark_inactive) {
			newPalette.setBrush(QPalette::Inactive, QPalette::Dark, *m_dark_inactive);
		}

		if (m_mid_active) {
			newPalette.setBrush(QPalette::Active, QPalette::Mid, *m_mid_active);
		}

		if (m_mid_disabled) {
			newPalette.setBrush(QPalette::Disabled, QPalette::Mid, *m_mid_disabled);
		}

		if (m_mid_inactive) {
			newPalette.setBrush(QPalette::Inactive, QPalette::Mid, *m_mid_inactive);
		}

		if (m_text_active) {
			newPalette.setBrush(QPalette::Active, QPalette::Text, *m_text_active);
		}

		if (m_text_disabled) {
			newPalette.setBrush(QPalette::Disabled, QPalette::Text, *m_text_disabled);
		}

		if (m_text_inactive) {
			newPalette.setBrush(QPalette::Inactive, QPalette::Text, *m_text_inactive);
		}

		if (m_brighttext_active) {
			newPalette.setBrush(QPalette::Active, QPalette::BrightText, *m_brighttext_active);
		}

		if (m_brighttext_disabled) {
			newPalette.setBrush(QPalette::Disabled, QPalette::BrightText, *m_brighttext_disabled);
		}

		if (m_brighttext_inactive) {
			newPalette.setBrush(QPalette::Inactive, QPalette::BrightText, *m_brighttext_inactive);
		}

		if (m_buttontext_active) {
			newPalette.setBrush(QPalette::Active, QPalette::ButtonText, *m_buttontext_active);
		}

		if (m_buttontext_disabled) {
			newPalette.setBrush(QPalette::Disabled, QPalette::ButtonText, *m_buttontext_disabled);
		}

		if (m_buttontext_inactive) {
			newPalette.setBrush(QPalette::Inactive, QPalette::ButtonText, *m_buttontext_inactive);
		}

		if (m_base_active) {
			newPalette.setBrush(QPalette::Active, QPalette::Base, *m_base_active);
		}

		if (m_base_disabled) {
			newPalette.setBrush(QPalette::Disabled, QPalette::Base, *m_base_disabled);
		}

		if (m_base_inactive) {
			newPalette.setBrush(QPalette::Inactive, QPalette::Base, *m_base_inactive);
		}

		if (m_window_active) {
			newPalette.setBrush(QPalette::Active, QPalette::Window, *m_window_active);
		}

		if (m_window_disabled) {
			newPalette.setBrush(QPalette::Disabled, QPalette::Window, *m_window_disabled);
		}

		if (m_window_inactive) {
			newPalette.setBrush(QPalette::Inactive, QPalette::Window, *m_window_inactive);
		}

		if (m_shadow_active) {
			newPalette.setBrush(QPalette::Active, QPalette::Shadow, *m_shadow_active);
		}

		if (m_shadow_disabled) {
			newPalette.setBrush(QPalette::Disabled, QPalette::Shadow, *m_shadow_disabled);
		}

		if (m_shadow_inactive) {
			newPalette.setBrush(QPalette::Inactive, QPalette::Shadow, *m_shadow_inactive);
		}

		if (m_highlight_active) {
			newPalette.setBrush(QPalette::Active, QPalette::Highlight, *m_highlight_active);
		}

		if (m_highlight_disabled) {
			newPalette.setBrush(QPalette::Disabled, QPalette::Highlight, *m_highlight_disabled);
		}

		if (m_highlight_inactive) {
			newPalette.setBrush(QPalette::Inactive, QPalette::Highlight, *m_highlight_inactive);
		}

		if (m_highlightedtext_active) {
			newPalette.setBrush(QPalette::Active, QPalette::HighlightedText, *m_highlightedtext_active);
		}

		if (m_highlightedtext_disabled) {
			newPalette.setBrush(QPalette::Disabled, QPalette::HighlightedText, *m_highlightedtext_disabled);
		}

		if (m_highlightedtext_inactive) {
			newPalette.setBrush(QPalette::Inactive, QPalette::HighlightedText, *m_highlightedtext_inactive);
		}

		if (m_link_active) {
			newPalette.setBrush(QPalette::Active, QPalette::Link, *m_link_active);
		}

		if (m_link_disabled) {
			newPalette.setBrush(QPalette::Disabled, QPalette::Link, *m_link_disabled);
		}

		if (m_link_inactive) {
			newPalette.setBrush(QPalette::Inactive, QPalette::Link, *m_link_inactive);
		}

		if (m_linkvisited_active) {
			newPalette.setBrush(QPalette::Active, QPalette::LinkVisited, *m_linkvisited_active);
		}

		if (m_linkvisited_disabled) {
			newPalette.setBrush(QPalette::Disabled, QPalette::LinkVisited, *m_linkvisited_disabled);
		}

		if (m_linkvisited_inactive) {
			newPalette.setBrush(QPalette::Inactive, QPalette::LinkVisited, *m_linkvisited_inactive);
		}

		if (m_alternatebase_active) {
			newPalette.setBrush(QPalette::Active, QPalette::AlternateBase, *m_alternatebase_active);
		}

		if (m_alternatebase_disabled) {
			newPalette.setBrush(QPalette::Disabled, QPalette::AlternateBase, *m_alternatebase_disabled);
		}

		if (m_alternatebase_inactive) {
			newPalette.setBrush(QPalette::Inactive, QPalette::AlternateBase, *m_alternatebase_inactive);
		}

		if (m_tooltipbase_active) {
			newPalette.setBrush(QPalette::Active, QPalette::ToolTipBase, *m_tooltipbase_active);
		}

		if (m_tooltipbase_disabled) {
			newPalette.setBrush(QPalette::Disabled, QPalette::ToolTipBase, *m_tooltipbase_disabled);
		}

		if (m_tooltipbase_inactive) {
			newPalette.setBrush(QPalette::Inactive, QPalette::ToolTipBase, *m_tooltipbase_inactive);
		}

		if (m_tooltiptext_active) {
			newPalette.setBrush(QPalette::Active, QPalette::ToolTipText, *m_tooltiptext_active);
		}

		if (m_tooltiptext_disabled) {
			newPalette.setBrush(QPalette::Disabled, QPalette::ToolTipText, *m_tooltiptext_disabled);
		}

		if (m_tooltiptext_inactive) {
			newPalette.setBrush(QPalette::Inactive, QPalette::ToolTipText, *m_tooltiptext_inactive);
		}


		QApplication::setPalette(newPalette);
		resetAllProperties();
	}

	void resetAllProperties() {
		m_windowtext_active        = boost::none;
		m_windowtext_disabled      = boost::none;
		m_windowtext_inactive      = boost::none;
		m_button_active            = boost::none;
		m_button_disabled          = boost::none;
		m_button_inactive          = boost::none;
		m_light_active             = boost::none;
		m_light_disabled           = boost::none;
		m_light_inactive           = boost::none;
		m_midlight_active          = boost::none;
		m_midlight_disabled        = boost::none;
		m_midlight_inactive        = boost::none;
		m_dark_active              = boost::none;
		m_dark_disabled            = boost::none;
		m_dark_inactive            = boost::none;
		m_mid_active               = boost::none;
		m_mid_disabled             = boost::none;
		m_mid_inactive             = boost::none;
		m_text_active              = boost::none;
		m_text_disabled            = boost::none;
		m_text_inactive            = boost::none;
		m_brighttext_active        = boost::none;
		m_brighttext_disabled      = boost::none;
		m_brighttext_inactive      = boost::none;
		m_buttontext_active        = boost::none;
		m_buttontext_disabled      = boost::none;
		m_buttontext_inactive      = boost::none;
		m_base_active              = boost::none;
		m_base_disabled            = boost::none;
		m_base_inactive            = boost::none;
		m_window_active            = boost::none;
		m_window_disabled          = boost::none;
		m_window_inactive          = boost::none;
		m_shadow_active            = boost::none;
		m_shadow_disabled          = boost::none;
		m_shadow_inactive          = boost::none;
		m_highlight_active         = boost::none;
		m_highlight_disabled       = boost::none;
		m_highlight_inactive       = boost::none;
		m_highlightedtext_active   = boost::none;
		m_highlightedtext_disabled = boost::none;
		m_highlightedtext_inactive = boost::none;
		m_link_active              = boost::none;
		m_link_disabled            = boost::none;
		m_link_inactive            = boost::none;
		m_linkvisited_active       = boost::none;
		m_linkvisited_disabled     = boost::none;
		m_linkvisited_inactive     = boost::none;
		m_alternatebase_active     = boost::none;
		m_alternatebase_disabled   = boost::none;
		m_alternatebase_inactive   = boost::none;
		m_tooltipbase_active       = boost::none;
		m_tooltipbase_disabled     = boost::none;
		m_tooltipbase_inactive     = boost::none;
		m_tooltiptext_active       = boost::none;
		m_tooltiptext_disabled     = boost::none;
		m_tooltiptext_inactive     = boost::none;
	}

protected:
	bool event(QEvent *e) Q_DECL_OVERRIDE {
		bool result = QWidget::event(e);

		if (e->type() == QEvent::StyleChange) {
			// Update global palette. Have to defer it
			// as property updates are also signals.
			QTimer::singleShot(0, this, SLOT(updateApplicationPalette()));
		}

		return result;
	}

private:
	const QPalette m_originalPalette;

	boost::optional< QBrush > m_windowtext_active;
	boost::optional< QBrush > m_windowtext_disabled;
	boost::optional< QBrush > m_windowtext_inactive;
	boost::optional< QBrush > m_button_active;
	boost::optional< QBrush > m_button_disabled;
	boost::optional< QBrush > m_button_inactive;
	boost::optional< QBrush > m_light_active;
	boost::optional< QBrush > m_light_disabled;
	boost::optional< QBrush > m_light_inactive;
	boost::optional< QBrush > m_midlight_active;
	boost::optional< QBrush > m_midlight_disabled;
	boost::optional< QBrush > m_midlight_inactive;
	boost::optional< QBrush > m_dark_active;
	boost::optional< QBrush > m_dark_disabled;
	boost::optional< QBrush > m_dark_inactive;
	boost::optional< QBrush > m_mid_active;
	boost::optional< QBrush > m_mid_disabled;
	boost::optional< QBrush > m_mid_inactive;
	boost::optional< QBrush > m_text_active;
	boost::optional< QBrush > m_text_disabled;
	boost::optional< QBrush > m_text_inactive;
	boost::optional< QBrush > m_brighttext_active;
	boost::optional< QBrush > m_brighttext_disabled;
	boost::optional< QBrush > m_brighttext_inactive;
	boost::optional< QBrush > m_buttontext_active;
	boost::optional< QBrush > m_buttontext_disabled;
	boost::optional< QBrush > m_buttontext_inactive;
	boost::optional< QBrush > m_base_active;
	boost::optional< QBrush > m_base_disabled;
	boost::optional< QBrush > m_base_inactive;
	boost::optional< QBrush > m_window_active;
	boost::optional< QBrush > m_window_disabled;
	boost::optional< QBrush > m_window_inactive;
	boost::optional< QBrush > m_shadow_active;
	boost::optional< QBrush > m_shadow_disabled;
	boost::optional< QBrush > m_shadow_inactive;
	boost::optional< QBrush > m_highlight_active;
	boost::optional< QBrush > m_highlight_disabled;
	boost::optional< QBrush > m_highlight_inactive;
	boost::optional< QBrush > m_highlightedtext_active;
	boost::optional< QBrush > m_highlightedtext_disabled;
	boost::optional< QBrush > m_highlightedtext_inactive;
	boost::optional< QBrush > m_link_active;
	boost::optional< QBrush > m_link_disabled;
	boost::optional< QBrush > m_link_inactive;
	boost::optional< QBrush > m_linkvisited_active;
	boost::optional< QBrush > m_linkvisited_disabled;
	boost::optional< QBrush > m_linkvisited_inactive;
	boost::optional< QBrush > m_alternatebase_active;
	boost::optional< QBrush > m_alternatebase_disabled;
	boost::optional< QBrush > m_alternatebase_inactive;
	boost::optional< QBrush > m_tooltipbase_active;
	boost::optional< QBrush > m_tooltipbase_disabled;
	boost::optional< QBrush > m_tooltipbase_inactive;
	boost::optional< QBrush > m_tooltiptext_active;
	boost::optional< QBrush > m_tooltiptext_disabled;
	boost::optional< QBrush > m_tooltiptext_inactive;
};

#endif // APPLICATIONPALETTE_H