|
1 .QWidget { |
|
2 background-color: beige; |
|
3 } |
|
4 |
|
5 /* Nice Windows-XP-style password character. */ |
|
6 QLineEdit[echoMode="2"] { |
|
7 lineedit-password-character: 9679; |
|
8 } |
|
9 |
|
10 /* We provide a min-width and min-height for push buttons |
|
11 so that they look elegant regardless of the width of the text. */ |
|
12 QPushButton { |
|
13 background-color: palegoldenrod; |
|
14 border-width: 2px; |
|
15 border-color: darkkhaki; |
|
16 border-style: solid; |
|
17 border-radius: 5; |
|
18 padding: 3px; |
|
19 min-width: 9ex; |
|
20 min-height: 2.5ex; |
|
21 } |
|
22 |
|
23 QPushButton:hover { |
|
24 background-color: khaki; |
|
25 } |
|
26 |
|
27 /* Increase the padding, so the text is shifted when the button is |
|
28 pressed. */ |
|
29 QPushButton:pressed { |
|
30 padding-left: 5px; |
|
31 padding-top: 5px; |
|
32 background-color: #d0d67c; |
|
33 } |
|
34 |
|
35 QLabel, QAbstractButton { |
|
36 font: bold; |
|
37 } |
|
38 |
|
39 /* Mark mandatory fields with a brownish color. */ |
|
40 .mandatory { |
|
41 color: brown; |
|
42 } |
|
43 |
|
44 /* Bold text on status bar looks awful. */ |
|
45 QStatusBar QLabel { |
|
46 font: normal; |
|
47 } |
|
48 |
|
49 QStatusBar::item { |
|
50 border-width: 1; |
|
51 border-color: darkkhaki; |
|
52 border-style: solid; |
|
53 border-radius: 2; |
|
54 } |
|
55 |
|
56 QComboBox, QLineEdit, QSpinBox, QTextEdit, QListView { |
|
57 background-color: cornsilk; |
|
58 selection-color: #0a214c; |
|
59 selection-background-color: #C19A6B; |
|
60 } |
|
61 |
|
62 QListView { |
|
63 show-decoration-selected: 1; |
|
64 } |
|
65 |
|
66 QListView::item:hover { |
|
67 background-color: wheat; |
|
68 } |
|
69 |
|
70 /* We reserve 1 pixel space in padding. When we get the focus, |
|
71 we kill the padding and enlarge the border. This makes the items |
|
72 glow. */ |
|
73 QLineEdit, QFrame { |
|
74 border-width: 2px; |
|
75 padding: 1px; |
|
76 border-style: solid; |
|
77 border-color: darkkhaki; |
|
78 border-radius: 5px; |
|
79 } |
|
80 |
|
81 /* As mentioned above, eliminate the padding and increase the border. */ |
|
82 QLineEdit:focus, QFrame:focus { |
|
83 border-width: 3px; |
|
84 padding: 0px; |
|
85 } |
|
86 |
|
87 /* A QLabel is a QFrame ... */ |
|
88 QLabel { |
|
89 border: none; |
|
90 padding: 0; |
|
91 background: none; |
|
92 } |
|
93 |
|
94 /* A QToolTip is a QLabel ... */ |
|
95 QToolTip { |
|
96 border: 2px solid darkkhaki; |
|
97 padding: 5px; |
|
98 border-radius: 3px; |
|
99 opacity: 200; |
|
100 } |
|
101 |
|
102 /* Nice to have the background color change when hovered. */ |
|
103 QRadioButton:hover, QCheckBox:hover { |
|
104 background-color: wheat; |
|
105 } |
|
106 |
|
107 /* Force the dialog's buttons to follow the Windows guidelines. */ |
|
108 QDialogButtonBox { |
|
109 button-layout: 0; |
|
110 } |
|
111 |
|
112 |