summaryrefslogtreecommitdiff
path: root/client/style.qss
blob: 290c9a5d094c0da9f7b27c247229aa21b0cb0863 (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

/* Customize dialog window. */
ProxyDialog {
    background-color: gainsboro;
    background-image: url(images/pagefold.png);
    background-position: top right;
    background-repeat: no-repeat
}


/* Make text in message boxes selectable. */
QMessageBox {
    /* LinksAccessibleByMouse | TextSelectableByMouse */
    messagebox-text-interaction-flags: 5;
}


/* QFrame customization
 * (in this particular case it applies to QComboBox dropdown list) */
QFrame {
    border-image: url(images/frame.png) 4;
    border-width: 3;
}


/* customize label style */
QLabel {
    border: none;
    border-image: none;
    padding: 0;
    background: none;
}

QLabel#topLabel {
    font-family: monospace;
    font-weight: bold;
    font-style: italic;
    font-size: 16px;
    color: qlineargradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 lightblue, stop: 0.5 blue, stop: 1 navy);
}

QLabel#bottomLabel {
    font-weight: bold;
    color: qlineargradient( x1: 0, y1: 0, x2: 1, y2: 1, stop: 0 yellow, stop: 0.5 green, stop: 1 purple);
}

/* Customize bottom buttons labels */
QPushButton#bottomBtn QLabel {
    font-family: monospace;
}


/* Set the selection colors for all widgets. */
QWidget {
    selection-color: black;
    selection-background-color: Silver;
    color: black;
}


/* Customize push buttons and comboboxes.
 * Read-only combobox is very similar to a push button,
 * so they share the same border image. */
QPushButton, QComboBox {
    border-image: url(images/pushbutton.png) 5;
    border-width: 5;
}

/* QPushButton customization */
QPushButton {
    min-width: 100px;
    max-width: 100px;
}

/* Customize bottom buttons (aka staticProxyButton) */
QPushButton#bottomBtn {
    min-width: 200px;
    max-width: 200px;
}

QPushButton:hover, QComboBox:hover {
    border-image: url(images/pushbutton_hover.png) 5;
    border-width: 5;
}

QPushButton:pressed, QPushButton:checked, QComboBox:on {
    border-image: url(images/pushbutton_pressed.png) 5;
    border-width: 5;
}


/* QComboBox customizations */
QComboBox {
    min-width: 150px;
    max-width: 150px;
    padding-left: 3px;
    padding-right: 20px; /* space for the arrow */
}

QComboBox::drop-down {
    subcontrol-origin: padding;
    subcontrol-position: top right;
    width: 15px;
    border-left-style: solid;
    border-left-color: darkgray;
    border-left-width: 1px;
}

/* Customize arrows. */
QComboBox::down-arrow {
    image: url(images/down_arrow.png);
    width: 7px;
    height: 7px;
}

QComboBox::down-arrow {
    subcontrol-origin: content;
    subcontrol-position: center;
    position: relative;
    left: 1px; /* 1 pixel dropdown border */
}

/* The combobox arrow is on when the popup is open. */
QComboBox::down-arrow:on {
    position: relative;
    top: 1px;
    left: 2px;
}