|
5 | 5 | from main_window import MainWindow |
6 | 6 | import logging |
7 | 7 |
|
8 | | -os.environ["QT_QPA_PLATFORM"] = "xcb" # Force X11 backend |
| 8 | +os.environ['QT_QPA_PLATFORM'] = 'xcb' |
9 | 9 |
|
10 | 10 | # Define the stylesheet as a string |
11 | 11 | STYLESHEET = """ |
12 | | -/* Hacker Launcher Styles - Black, White, Purple, Blue - Console-like with larger fonts */ |
| 12 | +/* Hacker Launcher Styles - Black, White, Purple, Blue */ |
13 | 13 | QWidget { |
14 | 14 | background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #1a1a1a, stop:1 #2a2a2a); |
15 | 15 | color: #ffffff; |
16 | 16 | font-family: "Courier New", monospace; |
17 | | - font-size: 16px; |
| 17 | + font-size: 12px; |
18 | 18 | } |
19 | 19 | QMainWindow, QDialog, QProgressDialog { |
20 | 20 | background: #1a1a1a; |
|
23 | 23 | background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #4b0082, stop:1 #6a0dad); |
24 | 24 | color: #ffffff; |
25 | 25 | border: 2px solid #00b7eb; |
26 | | - border-radius: 12px; |
27 | | - padding: 15px 20px; |
| 26 | + border-radius: 8px; |
| 27 | + padding: 10px 15px; |
28 | 28 | font-weight: bold; |
29 | | - font-size: 18px; |
30 | 29 | } |
31 | 30 | QPushButton:hover { |
32 | 31 | background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #6a0dad, stop:1 #8b0ece); |
|
38 | 37 | QTableWidget { |
39 | 38 | background: #2a2a2a; |
40 | 39 | border: 2px solid #00b7eb; |
41 | | - border-radius: 12px; |
| 40 | + border-radius: 8px; |
42 | 41 | color: #ffffff; |
43 | 42 | gridline-color: #00b7eb; |
44 | | - font-size: 18px; |
45 | 43 | } |
46 | 44 | QTableWidget::item { |
47 | | - padding: 12px; |
| 45 | + padding: 8px; |
48 | 46 | } |
49 | 47 | QTableWidget::item:selected { |
50 | 48 | background: #4b0082; |
|
53 | 51 | QHeaderView::section { |
54 | 52 | background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #4b0082, stop:1 #6a0dad); |
55 | 53 | color: #ffffff; |
56 | | - padding: 12px; |
| 54 | + padding: 8px; |
57 | 55 | border: 1px solid #00b7eb; |
58 | | - font-size: 18px; |
59 | 56 | } |
60 | 57 | QComboBox { |
61 | 58 | background: #2a2a2a; |
62 | 59 | border: 2px solid #00b7eb; |
63 | 60 | color: #ffffff; |
64 | | - padding: 12px; |
65 | | - border-radius: 12px; |
66 | | - font-size: 18px; |
| 61 | + padding: 8px; |
| 62 | + border-radius: 8px; |
67 | 63 | } |
68 | 64 | QComboBox::drop-down { |
69 | 65 | border: none; |
|
73 | 69 | color: #ffffff; |
74 | 70 | selection-background-color: #4b0082; |
75 | 71 | border: 2px solid #00b7eb; |
76 | | - font-size: 18px; |
77 | 72 | } |
78 | 73 | QLineEdit { |
79 | 74 | background: #2a2a2a; |
80 | 75 | border: 2px solid #00b7eb; |
81 | 76 | color: #ffffff; |
82 | | - padding: 12px; |
83 | | - border-radius: 12px; |
84 | | - font-size: 18px; |
| 77 | + padding: 8px; |
| 78 | + border-radius: 8px; |
85 | 79 | } |
86 | 80 | QLineEdit:focus { |
87 | 81 | border-color: #00d4ff; |
88 | 82 | } |
89 | 83 | QLabel { |
90 | 84 | color: #ffffff; |
91 | 85 | font-weight: bold; |
92 | | - font-size: 18px; |
93 | 86 | } |
94 | 87 | QTabWidget::pane { |
95 | 88 | border: 2px solid #00b7eb; |
96 | 89 | background: #2a2a2a; |
97 | | - border-radius: 12px; |
| 90 | + border-radius: 8px; |
98 | 91 | } |
99 | 92 | QTabBar::tab { |
100 | 93 | background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #4b0082, stop:1 #6a0dad); |
101 | 94 | color: #ffffff; |
102 | | - padding: 18px 32px; |
103 | | - margin: 6px; |
104 | | - border-radius: 12px; |
| 95 | + padding: 12px 24px; |
| 96 | + margin: 4px; |
| 97 | + border-radius: 8px; |
105 | 98 | border: 1px solid #00b7eb; |
106 | | - font-size: 20px; |
107 | 99 | } |
108 | 100 | QTabBar::tab:selected { |
109 | 101 | background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #00b7eb, stop:1 #00d4ff); |
|
117 | 109 | background: #2a2a2a; |
118 | 110 | color: #ffffff; |
119 | 111 | border: 1px solid #00b7eb; |
120 | | - font-size: 16px; |
121 | 112 | } |
122 | 113 | QProgressDialog { |
123 | 114 | background: #1a1a1a; |
124 | 115 | color: #ffffff; |
125 | | - font-size: 18px; |
126 | 116 | } |
127 | 117 | QProgressBar { |
128 | 118 | background: #2a2a2a; |
129 | 119 | border: 2px solid #00b7eb; |
130 | | - border-radius: 12px; |
| 120 | + border-radius: 8px; |
131 | 121 | text-align: center; |
132 | 122 | color: #ffffff; |
133 | | - font-size: 18px; |
134 | 123 | } |
135 | 124 | QProgressBar::chunk { |
136 | 125 | background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #4b0082, stop:1 #6a0dad); |
137 | 126 | } |
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 | | -} |
157 | 127 | """ |
158 | 128 |
|
159 | 129 | if __name__ == '__main__': |
|
0 commit comments