Skip to content

Commit

Permalink
Force windowsvista style if on Windows (#148)
Browse files Browse the repository at this point in the history
Makes text in UI boxes readable again on windows when pyQt6 =<7.0. Default Windows Qt style (windows11, windows10) causes issues.
  • Loading branch information
LightArrowsEXE committed May 12, 2024
2 parents ff693ad + 5575753 commit 674357d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vspreview/main/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,9 @@ def apply_stylesheet(self) -> None:

self.app.setStyleSheet(stylesheet)

if sys.platform == 'win32':
self.app.setStyle("windowsvista")

self.ensurePolished()
self.reload_stylesheet_signal.emit()
self.repaint()
Expand Down

0 comments on commit 674357d

Please sign in to comment.