Skip to content

Commit

Permalink
Makes text in UI boxes readable again on windows when pyQt6 =<7.0. De…
Browse files Browse the repository at this point in the history
…fault Windows Qt style (windows11, windows10) causes issues.

Force windowsvista style if on Windows
  • Loading branch information
srappan authored and Setsugennoao committed May 15, 2024
1 parent 9512ee1 commit f7c55ab
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 f7c55ab

Please sign in to comment.