mirror of
https://github.com/nixietab/picodulce.git
synced 2025-04-10 10:28:56 +01:00
added stylesheet support
This commit is contained in:
parent
152b7d82dc
commit
fd4c23ed3b
@ -94,6 +94,14 @@ class PicomcVersionSelector(QWidget):
|
|||||||
# Apply the palette to the application
|
# Apply the palette to the application
|
||||||
app.setPalette(palette)
|
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):
|
def themes_integrity(self):
|
||||||
# Define folder and file paths
|
# Define folder and file paths
|
||||||
themes_folder = "themes"
|
themes_folder = "themes"
|
||||||
|
Loading…
Reference in New Issue
Block a user