From fd4c23ed3bad91a8ed8a31e5d79ad72ca7500c05 Mon Sep 17 00:00:00 2001 From: Nix <75538775+nixietab@users.noreply.github.com> Date: Fri, 20 Dec 2024 09:43:15 -0300 Subject: [PATCH] added stylesheet support --- picodulce.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/picodulce.py b/picodulce.py index 341a7e7..a357a2b 100644 --- a/picodulce.py +++ b/picodulce.py @@ -94,6 +94,14 @@ class PicomcVersionSelector(QWidget): # Apply the palette to the application app.setPalette(palette) + # Apply style sheet if present + if "stylesheet" in self.theme: + stylesheet = self.theme["stylesheet"] + app.setStyleSheet(stylesheet) + else: + print("No 'stylesheet' section found in the theme file.") + + def themes_integrity(self): # Define folder and file paths themes_folder = "themes"