mirror of
https://github.com/nixietab/picodulce.git
synced 2025-04-10 10:28:56 +01:00
added native theme
This commit is contained in:
parent
70777858f4
commit
a047b0142d
11
picodulce.py
11
picodulce.py
@ -51,7 +51,11 @@ class PicomcVersionSelector(QWidget):
|
|||||||
palette = self.create_alpha_palette()
|
palette = self.create_alpha_palette()
|
||||||
elif palette_type == "Strawberry":
|
elif palette_type == "Strawberry":
|
||||||
palette = self.create_strawberry_palette()
|
palette = self.create_strawberry_palette()
|
||||||
|
elif palette_type == "Native":
|
||||||
|
palette = self.create_native_palette()
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
||||||
# Default to dark palette if the type is not specified or invalid
|
# Default to dark palette if the type is not specified or invalid
|
||||||
palette = self.create_dark_palette()
|
palette = self.create_dark_palette()
|
||||||
QApplication.instance().setPalette(palette)
|
QApplication.instance().setPalette(palette)
|
||||||
@ -175,7 +179,7 @@ class PicomcVersionSelector(QWidget):
|
|||||||
layout.addWidget(theme_label)
|
layout.addWidget(theme_label)
|
||||||
|
|
||||||
theme_combobox = QComboBox()
|
theme_combobox = QComboBox()
|
||||||
themes = ['Dark', 'Obsidian', 'Redstone', 'Alpha', 'Strawberry'] # Replace with your actual themes
|
themes = ['Dark', 'Obsidian', 'Redstone', 'Alpha', 'Strawberry', "Native"] # Replace with your actual themes
|
||||||
theme_combobox.addItems(themes)
|
theme_combobox.addItems(themes)
|
||||||
current_theme_index = themes.index(self.config.get("Palette", "Default Theme"))
|
current_theme_index = themes.index(self.config.get("Palette", "Default Theme"))
|
||||||
theme_combobox.setCurrentIndex(current_theme_index)
|
theme_combobox.setCurrentIndex(current_theme_index)
|
||||||
@ -552,6 +556,11 @@ class PicomcVersionSelector(QWidget):
|
|||||||
palette.setColor(QPalette.HighlightedText, Qt.black)
|
palette.setColor(QPalette.HighlightedText, Qt.black)
|
||||||
return palette
|
return palette
|
||||||
|
|
||||||
|
def create_native_palette(self):
|
||||||
|
palette = QPalette()
|
||||||
|
return palette
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def check_for_update_start(self):
|
def check_for_update_start(self):
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user