-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStyle.cpp
More file actions
39 lines (31 loc) · 1012 Bytes
/
Style.cpp
File metadata and controls
39 lines (31 loc) · 1012 Bytes
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
#include "Style.h"
Style::Style() {}
Style::~Style() {}
QString Style::getButton()
{
return button;
}
QString Style::getLabelStyle()
{
return labelStyle;
}
QString Style::getLineEditStyle()
{
return lineEditStyle;
}
QString Style::getComboBoxStyle()
{
return comboBox;
}
QString Style::button = "";
QString Style::labelStyle = "";
QString Style::lineEditStyle = "";
QString Style::comboBox = "";
void Style::setButtonStyle()
{
button = "QPushButton { border-radius: 10px; border: 2px solid #8f8f91; background-color: #3b3c3d;font-size: 15pt Arial; color: white; font-weight: bold;}"
"QPushButton:hover { background-color: #cccccc; color: #333333;}";
labelStyle = "QLabel { border-radius: 5px; border: 2px solid #3b3c3d; background-color: #3b3c3d; color: white;}";
lineEditStyle = "QLineEdit { font-size: 15pt Arial;background-color: #cccccc; color: #333333; }";
comboBox = "QComboBox { font-size: 15pt Arial;background-color: #cccccc; color: #333333; }";
}