-
Notifications
You must be signed in to change notification settings - Fork 0
/
stylesheet.py
117 lines (115 loc) · 3.35 KB
/
stylesheet.py
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
def stylesheet():
return """
QMainWindow {
font-family: 'Arial'; /* Arial can be a good alternative */
font-size: 10pt;
background-color: #FAFAFA; /* A light background color */
}
QPushButton {
background-color: white; /* White interior */
color: #0078D7; /* Blue text color */
border-radius: 5px;
padding: 5px;
border: 2px solid #0078D7; /* Blue border */
}
QPushButton:hover {
background-color: #E6F0FA; /* Light blue background for hover effect */
color: #0053A6; /* Darker blue text color on hover */
border: 2px solid #0053A6; /* Darker blue border on hover */
}
QLabel, QTableView, QTabWidget, QLineEdit, QComboBox, QTextEdit {
color: #333; /* Dark text for better readability */
}
QTabWidget::pane {
border: 0;
}
QTabBar::tab {
background: #D9D9D9;
color: white;
padding: 5px;
}
QTabBar::tab:selected {
background: #0078D7;
}
QTableView {
selection-background-color: #0078D7;
selection-color: white;
}
QLineEdit, QTextEdit, QComboBox {
border: 1px solid #ddd;
padding: 2px;
}
FigureCanvasQTAgg {
border: 2px solid black;
border-radius: 5px;
}
"""
def darkmodestylesheet():
return """
QMainWindow {
font-family: 'Segoe UI'; /* Arial can be a good alternative */
font-size: 10pt;
background-color: #2D2D2D; /* Dark background for the main window */
}
QPushButton {
background-color: #3C3C3C; /* Darker shade for buttons */
color: #DADADA; /* Light text color for readability */
border-radius: 5px;
padding: 5px;
border: 2px solid #3C3C3C; /* Border color similar to the button background */
}
QPushButton:hover {
background-color: #505050; /* Slightly lighter shade for hover effect */
color: #FFFFFF; /* White text color on hover */
border: 2px solid #606060; /* Slightly lighter border on hover */
}
QLabel, QLineEdit, QTextEdit, QComboBox {
color: #DADADA; /* Light color text for readability */
}
QTabWidget::pane {
border: 0;
}
QTabBar::tab {
background: #3C3C3C;
color: #DADADA;
padding: 5px;
}
QTabBar::tab:selected {
background: #505050;
color: #FFFFFF;
}
QTableView, QListWidget {
background-color: #2D2D2D;
color: #DADADA;
border: 1px solid #3C3C3C;
gridline-color: #3C3C3C;
}
QTableView::item:selected, QListWidget::item:selected {
background-color: #505050;
}
QLineEdit, QTextEdit, QComboBox {
border: 1px solid #3C3C3C;
background-color: #2D2D2D;
color: #DADADA;
}
QHeaderView::section {
background-color: #3C3C3C;
padding: 4px;
border: 1px solid #4C4C4C;
color: #DADADA;
}
QScrollBar:vertical, QScrollBar:horizontal {
border: 1px solid #2D2D2D;
background: #3C3C3C;
width: 15px;
margin: 15px 3px 15px 3px;
}
QScrollBar::handle:vertical, QScrollBar::handle:horizontal {
background: #505050;
min-height: 20px;
min-width: 20px;
}
QScrollBar::add-line, QScrollBar::sub-line {
background: #3C3C3C;
}
"""