MCPcopy Create free account
hub / github.com/geekcomputers/Python / apply_stylesheet

Method apply_stylesheet

ML/tests/gui_test.py:224–311  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

222 return panel
223
224 def apply_stylesheet(self):
225 qss = """
226 QMainWindow {
227 background-color: #1e1e1e;
228 }
229
230 QWidget {
231 background-color: #1e1e1e;
232 color: #e0e0e0;
233 font-family: 'Segoe UI', Arial;
234 font-size: 12px;
235 }
236
237 QGroupBox {
238 border: 2px solid #3d3d3d;
239 border-radius: 8px;
240 margin-top: 10px;
241 padding-top: 15px;
242 font-weight: bold;
243 color: #4CAF50;
244 }
245
246 QGroupBox::title {
247 subcontrol-origin: margin;
248 left: 10px;
249 padding: 0 5px;
250 }
251
252 QPushButton {
253 background-color: #4CAF50;
254 color: white;
255 border: none;
256 padding: 10px 20px;
257 border-radius: 5px;
258 font-weight: bold;
259 font-size: 13px;
260 }
261
262 QPushButton:hover {
263 background-color: #45a049;
264 }
265
266 QPushButton:pressed {
267 background-color: #3d8b40;
268 }
269
270 QPushButton:disabled {
271 background-color: #555555;
272 color: #888888;
273 }
274
275 QLineEdit {
276 background-color: #2d2d2d;
277 border: 2px solid #3d3d3d;
278 border-radius: 5px;
279 padding: 8px;
280 color: #e0e0e0;
281 }

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected