Skip to content

Commit 22f6546

Browse files
authored
Update main.py
1 parent 6ea0851 commit 22f6546

File tree

1 file changed

+17
-47
lines changed

1 file changed

+17
-47
lines changed

source-code/main.py

Lines changed: 17 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
from main_window import MainWindow
66
import logging
77

8-
os.environ["QT_QPA_PLATFORM"] = "xcb" # Force X11 backend
8+
os.environ['QT_QPA_PLATFORM'] = 'xcb'
99

1010
# Define the stylesheet as a string
1111
STYLESHEET = """
12-
/* Hacker Launcher Styles - Black, White, Purple, Blue - Console-like with larger fonts */
12+
/* Hacker Launcher Styles - Black, White, Purple, Blue */
1313
QWidget {
1414
background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #1a1a1a, stop:1 #2a2a2a);
1515
color: #ffffff;
1616
font-family: "Courier New", monospace;
17-
font-size: 16px;
17+
font-size: 12px;
1818
}
1919
QMainWindow, QDialog, QProgressDialog {
2020
background: #1a1a1a;
@@ -23,10 +23,9 @@
2323
background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #4b0082, stop:1 #6a0dad);
2424
color: #ffffff;
2525
border: 2px solid #00b7eb;
26-
border-radius: 12px;
27-
padding: 15px 20px;
26+
border-radius: 8px;
27+
padding: 10px 15px;
2828
font-weight: bold;
29-
font-size: 18px;
3029
}
3130
QPushButton:hover {
3231
background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #6a0dad, stop:1 #8b0ece);
@@ -38,13 +37,12 @@
3837
QTableWidget {
3938
background: #2a2a2a;
4039
border: 2px solid #00b7eb;
41-
border-radius: 12px;
40+
border-radius: 8px;
4241
color: #ffffff;
4342
gridline-color: #00b7eb;
44-
font-size: 18px;
4543
}
4644
QTableWidget::item {
47-
padding: 12px;
45+
padding: 8px;
4846
}
4947
QTableWidget::item:selected {
5048
background: #4b0082;
@@ -53,17 +51,15 @@
5351
QHeaderView::section {
5452
background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #4b0082, stop:1 #6a0dad);
5553
color: #ffffff;
56-
padding: 12px;
54+
padding: 8px;
5755
border: 1px solid #00b7eb;
58-
font-size: 18px;
5956
}
6057
QComboBox {
6158
background: #2a2a2a;
6259
border: 2px solid #00b7eb;
6360
color: #ffffff;
64-
padding: 12px;
65-
border-radius: 12px;
66-
font-size: 18px;
61+
padding: 8px;
62+
border-radius: 8px;
6763
}
6864
QComboBox::drop-down {
6965
border: none;
@@ -73,37 +69,33 @@
7369
color: #ffffff;
7470
selection-background-color: #4b0082;
7571
border: 2px solid #00b7eb;
76-
font-size: 18px;
7772
}
7873
QLineEdit {
7974
background: #2a2a2a;
8075
border: 2px solid #00b7eb;
8176
color: #ffffff;
82-
padding: 12px;
83-
border-radius: 12px;
84-
font-size: 18px;
77+
padding: 8px;
78+
border-radius: 8px;
8579
}
8680
QLineEdit:focus {
8781
border-color: #00d4ff;
8882
}
8983
QLabel {
9084
color: #ffffff;
9185
font-weight: bold;
92-
font-size: 18px;
9386
}
9487
QTabWidget::pane {
9588
border: 2px solid #00b7eb;
9689
background: #2a2a2a;
97-
border-radius: 12px;
90+
border-radius: 8px;
9891
}
9992
QTabBar::tab {
10093
background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #4b0082, stop:1 #6a0dad);
10194
color: #ffffff;
102-
padding: 18px 32px;
103-
margin: 6px;
104-
border-radius: 12px;
95+
padding: 12px 24px;
96+
margin: 4px;
97+
border-radius: 8px;
10598
border: 1px solid #00b7eb;
106-
font-size: 20px;
10799
}
108100
QTabBar::tab:selected {
109101
background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #00b7eb, stop:1 #00d4ff);
@@ -117,43 +109,21 @@
117109
background: #2a2a2a;
118110
color: #ffffff;
119111
border: 1px solid #00b7eb;
120-
font-size: 16px;
121112
}
122113
QProgressDialog {
123114
background: #1a1a1a;
124115
color: #ffffff;
125-
font-size: 18px;
126116
}
127117
QProgressBar {
128118
background: #2a2a2a;
129119
border: 2px solid #00b7eb;
130-
border-radius: 12px;
120+
border-radius: 8px;
131121
text-align: center;
132122
color: #ffffff;
133-
font-size: 18px;
134123
}
135124
QProgressBar::chunk {
136125
background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #4b0082, stop:1 #6a0dad);
137126
}
138-
QCheckBox {
139-
font-size: 18px;
140-
}
141-
QTextEdit {
142-
font-size: 18px;
143-
}
144-
QMenu {
145-
background: #2a2a2a;
146-
color: #ffffff;
147-
border: 2px solid #00b7eb;
148-
font-size: 18px;
149-
}
150-
QMenu::item {
151-
padding: 12px 24px;
152-
}
153-
QMenu::item:selected {
154-
background: #4b0082;
155-
color: #ffffff;
156-
}
157127
"""
158128

159129
if __name__ == '__main__':

0 commit comments

Comments
 (0)