source: trunk/demos/embedded/styledemo/files/transparent.qss@ 561

Last change on this file since 561 was 561, checked in by Dmitry A. Kuminov, 15 years ago

trunk: Merged in qt 4.6.1 sources.

  • Property svn:eol-style set to native
File size: 2.3 KB
Line 
1QWidget#StyleWidget
2{
3 background-color: none;
4 background-image: url(:/files/nature_1.jpg);
5}
6
7QLabel, QAbstractButton
8{
9 color: beige;
10}
11
12QFrame, QLabel#title {
13 border-width: 2px;
14 padding: 1px;
15 border-style: solid;
16 border-color: black;
17 border-radius: 5px;
18}
19
20QFrame:focus {
21 border-width: 3px;
22 padding: 0px;
23}
24
25
26
27QAbstractButton
28{
29 background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(173,216,230,60%), stop:1 rgba(0,0,139,60%) );
30 border-color: black;
31 border-style: solid;
32 border-width: 3px;
33 border-radius: 6px;
34}
35
36QAbstractButton:pressed, QAbstractButton:checked
37{
38 background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(0,0,139,60%), stop:1 rgba(173,216,230,60%) );
39}
40
41QSpinBox {
42 padding-left: 24px;
43 padding-right: 24px;
44 border-color: darkkhaki;
45 border-style: solid;
46 border-radius: 5;
47 border-width: 3;
48}
49
50QSpinBox::up-button
51{
52 subcontrol-origin: padding;
53 subcontrol-position: right; /* position at the top right corner */
54 width: 24px;
55 height: 24px;
56 border-width: 3px;
57
58}
59
60QSpinBox::up-arrow
61{
62 image: url(:/files/add.png);
63 width: 18px;
64 height: 18px;
65}
66
67
68QSpinBox::down-button
69{
70 subcontrol-origin: border;
71 subcontrol-position: left;
72 width: 24px;
73 height: 24px;
74 border-width: 3px;
75}
76
77QSpinBox::down-arrow
78{
79 image: url(:/files/remove.png);
80 width: 18px;
81 height: 18px;
82}
83
84
85QScrollBar:horizontal
86{
87 border: 1px solid black;
88 background: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 rgba(0,0,139,60%), stop:1 rgba(173,216,230,60%) );
89 height: 15px;
90 margin: 0px 20px 0 20px;
91}
92
93QScrollBar::handle:horizontal
94{
95 border: 1px solid black;
96 background: rgba(0,0,139,60%);
97 min-width: 20px;
98}
99
100QScrollBar::add-line:horizontal
101{
102 border: 1px solid black;
103 background: rgba(0,0,139,60%);
104 width: 20px;
105 subcontrol-position: right;
106 subcontrol-origin: margin;
107}
108
109QScrollBar::sub-line:horizontal
110{
111 border: 1px solid black;
112 background: rgba(0,0,139,60%);
113 width: 20px;
114 subcontrol-position: left;
115 subcontrol-origin: margin;
116}
117
118QScrollBar:left-arrow:horizontal, QScrollBar::right-arrow:horizontal
119{
120 border: none;
121 width: 16px;
122 height: 16px;
123}
124
125QScrollBar:left-arrow:horizontal
126{
127 image: url(:/files/add.png)
128}
129
130QScrollBar::right-arrow:horizontal
131{
132 image: url(:/files/remove.png)
133}
134
135QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal
136{
137 background: none;
138}
139
Note: See TracBrowser for help on using the repository browser.