Skip to content

Advik-B/QtTheme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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