Skip to content

Latest commit

 

History

History
58 lines (36 loc) · 1.14 KB

README.md

File metadata and controls

58 lines (36 loc) · 1.14 KB

QtTheme

Are you tired of making custom qt stysheets, do you want add a theme system for app

Just use QtTheme

Installation

see releases

Usage

from QtTheme import apply_theme
from PyQt5.QtWidgets import QApplication, QMainWindow

class YourExistingGui(QMainWindow):
  def __init__(self):
    ... # Your existing code
    apply_theme(self, "ubuntu")
 

Or list all themes

from QtTheme import apply_theme, list_themes
from PyQt5.QtWidgets import QApplication, QMainWindow

class YourExistingGui(QMainWindow):
  def __init__(self):
    ... # Your existing code
    apply_theme(self, list_theme()[0])
 

Or apply random theme

from QtTheme import apply_random_theme
from PyQt5.QtWidgets import QApplication, QMainWindow

class YourExistingGui(QMainWindow):
  def __init__(self):
    ... # Your existing code
    apply_random_theme(self)
 

License

MIT

Attribution

Some themes are from qss-stock.devsecstudio.com