Skip to content

A dark gray style sheet for PyQt5 application

License

Notifications You must be signed in to change notification settings

mstuttgart/qdarkgraystyle

Repository files navigation



Darkgrey Stylesheet for PyQt5

GitHub Workflow Status Downloads Ratings Version

About | Install | How to Use | Contribute | Credits

About

A dark gray stylesheet for PyQt5 applications. This theme is a gray variation of QDarkStyleSheet theme.

Screenshots (Click to expand!)

screen-03 screen-02 screen-01

Install

Install qdarkgraystyle package using using pip

pip install qdarkgraystyle

This package work on PyQt5 >=5.6.

How to Use

Here is an example using PyQt5.

import sys
import qdarkgraystyle
from PyQt5 import QtWidgets

# create the application and the main window
app = QtWidgets.QApplication(sys.argv)
window = QtWidgets.QMainWindow()

# setup stylesheet
app.setStyleSheet(qdarkgraystyle.load_stylesheet())

# run
window.show()
app.exec_()

There is an example included in the example folder.

python3 setup.py test

You can run the script without installing qdarkgraystyle. You only need to have PyQt5 installed on your system.

Contribute

See this guideline here.

Credits

This package is totally based on QDarkStyleSheet theme created by Colin Duquesnoy.

Copyright (C) 2017-2024 by Michell Stuttgart