|
3 | 3 | * Note: Always use CSS-classes with and without "ads--" namespace to support Qt4 & Qt5
|
4 | 4 | */
|
5 | 5 |
|
6 |
| -QSplitter::handle { |
| 6 | +ads--ContainerWidget, |
| 7 | +ContainerWidget |
| 8 | +{ |
7 | 9 | background: palette(dark);
|
8 | 10 | }
|
9 | 11 |
|
10 |
| -ads--ContainerWidget, ContainerWidget { |
| 12 | +ads--ContainerWidget QSplitter::handle, |
| 13 | +ContainerWidget QSplitter::handle |
| 14 | +{ |
11 | 15 | background: palette(dark);
|
12 | 16 | }
|
13 | 17 |
|
14 |
| -ads--SectionWidget, SectionWidget { |
| 18 | +ads--SectionWidget, |
| 19 | +SectionWidget |
| 20 | +{ |
15 | 21 | background: palette(window);
|
| 22 | + border: 1px solid palette(light); |
16 | 23 | }
|
17 | 24 |
|
18 |
| -ads--SectionTitleWidget, SectionTitleWidget { |
| 25 | +ads--SectionTitleWidget, |
| 26 | +SectionTitleWidget |
| 27 | +{ |
19 | 28 | background: palette(window);
|
20 |
| - border-right: 1px solid palette(light); |
21 |
| - padding: 9px; |
| 29 | + border-color: palette(light); |
| 30 | + border-style: solid; |
| 31 | + border-width: 0 1px 0 0; |
| 32 | + padding: 0 9px; |
| 33 | +} |
| 34 | + |
| 35 | +ads--SectionTitleWidget[activeTab="true"], |
| 36 | +SectionTitleWidget[activeTab="true"] |
| 37 | +{ |
| 38 | +/* background: palette(light);*/ |
| 39 | +/* background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(255, 255, 255, 255), stop:1 rgba(240, 240, 240, 255));*/ |
| 40 | + background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:0.5, stop:0 palette(window), stop:1 palette(light)); |
22 | 41 | }
|
23 | 42 |
|
24 |
| -ads--SectionTitleWidget[activeTab="true"], SectionTitleWidget[activeTab="true"] { |
| 43 | +ads--SectionContentWidget, |
| 44 | +SectionContentWidget |
| 45 | +{ |
25 | 46 | background: palette(light);
|
| 47 | + border-color: palette(light); |
| 48 | + border-style: solid; |
| 49 | + border-width: 1px 0 0 0; |
26 | 50 | }
|
27 | 51 |
|
28 |
| -ads--SectionContentWidget, SectionContentWidget { |
29 |
| - border: 1px solid palette(light); |
| 52 | +/* Special: QLabels inside SectionTitleWidget |
| 53 | +*/ |
| 54 | +ads--SectionTitleWidget QLabel, |
| 55 | +SectionTitleWidget QLabel |
| 56 | +{ |
| 57 | + color: palette(dark); |
| 58 | +} |
| 59 | +ads--SectionTitleWidget[activeTab="true"] QLabel, |
| 60 | +SectionTitleWidget[activeTab="true"] QLabel |
| 61 | +{ |
| 62 | + color: palette(foreground); |
| 63 | +} |
| 64 | + |
| 65 | +/* Special: QLabels inside SectionTitleWidget, which is floating |
| 66 | +*/ |
| 67 | +ads--FloatingWidget ads--SectionTitleWidget QLabel, |
| 68 | +FloatingWidget SectionTitleWidget QLabel |
| 69 | +{ |
| 70 | + color: palette(foreground); |
30 | 71 | }
|
0 commit comments