Repository navigation
Expand file tree
/
Copy pathstyleassist.cpp
More file actions
60 lines (52 loc) · 1.86 KB
/
Copy pathstyleassist.cpp
File metadata and controls
60 lines (52 loc) · 1.86 KB
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
#include "styleassist.h"
QString StyleAssist::getButtonStyle()
{
return "QPushButton{"
"color: white;"
"border-radius: 4px;"
"background-color: qlineargradient(spread:pad, x1:0.636, y1:0.5345, x2:0, y2:1, stop:0 rgba(30, 47, 174, 255), stop:1 "
"rgba(153, 177, 255, 255));"
"font-family: 'RAYDIS';"
"font-size:10px;"
"}"
"QPushButton::hover{"
"background-color: qlineargradient(spread:pad, x1:0.585, y1:0.347, x2:1, y2:0, stop:0 rgba(0, 134, 201, 255), stop:1 rgba(255, 255, 255, 255))"
"}"
"QPushButton::pressed{"
"background-color: qlineargradient(spread:pad, x1:0.636, y1:0.5345, x2:0, y2:1, stop:0 rgba(30, 47, 174, 255), stop:1 "
"rgba(153, 177, 255, 255))"
"}";
}
QString StyleAssist::getMainWindowStyle()
{
return /*"QWidget{"
"background-color: rgb(34, 34, 34);"
"}";*/
"QToolButton:first {"
"color:red;"
"}";
}
QString StyleAssist::getLineEditStyle()
{
return "QLineEdit{"
"background-color: none;"
"background-color: rgb(127,199,255);"
"border-radius: 6px;"
"font-family: 'Plovdiv Display';"
"font-size:12px;"
"}"
"QSpinBox{"
"background-color: rgb(175,238,238);"
"border-radius: 6px;"
"font-family: 'Plovdiv Display';"
"font-size:12px;"
"}"
"QLabel{"
"font-family: 'Plovdiv Display';"
"font-size:11px;"
"}";
}
QString StyleAssist::getCaseBookStyle()
{
return "background-color: qlineargradient(spread:pad, x1:1, y1:0, x2:1, y2:0, stop:0 rgba(70, 82, 120, 255), stop:1 rgba(255, 255, 255, 255))";
}