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

Method apply_stylesheet

ML/src/python/neuralforge/cli/gui.py:236–323  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected