From f71b9ae41aac3d2bfcb3836eeaf038b06bb20a9c Mon Sep 17 00:00:00 2001 From: Nix <75538775+nixietab@users.noreply.github.com> Date: Mon, 15 Apr 2024 19:55:35 -0300 Subject: [PATCH] Update picodulce.py --- picodulce.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/picodulce.py b/picodulce.py index 02c5ea1..769d8a8 100644 --- a/picodulce.py +++ b/picodulce.py @@ -24,6 +24,10 @@ class PicomcVersionSelector(QWidget): dark_palette = self.create_dark_palette() QApplication.instance().setPalette(dark_palette) + # Set window border color to dark mode on Windows + if sys.platform == 'win32': + self.setStyleSheet("QMainWindow { border: 2px solid rgb(53, 53, 53); }") + # Create title label title_label = QLabel('PicoDulce Launcher') # Change label text title_label.setFont(QFont("Arial", 24, QFont.Bold)) @@ -296,7 +300,7 @@ class PicomcVersionSelector(QWidget): palette.setColor(QPalette.BrightText, Qt.red) palette.setColor(QPalette.Link, QColor(42, 130, 218)) palette.setColor(QPalette.Highlight, QColor(42, 130, 218)) - palette.setColor(QPalette.HighlightedText, Qt.black) + palette.setColor(QPalette.HighlightedText, Qt.white) # Change highlighted text color to white return palette if __name__ == '__main__':