This a mirror of WSJT-X and will be updated every 6 hours. PR will be ignored, head to the SF link. Repo will be updated at 06:00:00 UTC 12:00:00 UTC 18:00:00 UTC 00:00:00 UTC Now fixed.
Go to file
ColinDuquesnoy 706bf56abb Added location format to the qss file.
Now we must format the stylesheet string to supply its location on the file system
Adapted readme accordingly
2012-11-05 22:03:11 +01:00
rc Move resources to a rc folder 2012-11-05 19:50:13 +01:00
screenshots Added 1st screenshot 2012-11-05 16:26:43 +01:00
README.md Added location format to the qss file. 2012-11-05 22:03:11 +01:00
style.qss Added location format to the qss file. 2012-11-05 22:03:11 +01:00

A dark stylesheet for Qt applications.

Screenshots

TODO: Add screenshots

Usage

  • Download/clone the project next to your main executable (or wherever you find it fits well)
  • Load QDarkStyleSheets/style.qss and
  • Format the stylesheet string to give it the correct location (otherwise resources won't show). People that don't want to format may replace all "%(location)s/" occurrences in the style.qss file by their own resource location.
  • apply it on your QApplication instance

Here is a quick snippet in python (PySide/PyQt) that shows how to use the stylesheet.

def main():
    # create the qt application
    app = QApplication()

    # Load the stylesheet
    f = open("QDarkStyleSheet/style.qss","r")
    style_sheet = f.read()
    f.close()

    # format style_sheet to get the correct resource path.
    path = "" # here we use the working directory but it might somewhere else
    style_sheet = style_sheet % {"location":path}
    
    # apply the stylesheet
    app.setStyleSheet(style_sheet)

Status:

The following widgets are styled:

  • QMainWindow
  • QWidget
  • QMenu, QMenuBar
  • QToolTip
  • QAbstractItemView
  • QLineEdit
  • QGroupBox
  • QTextEdit, QPlainTextEdit
  • QTreeView,
  • QScrollBar
  • QRadioButton
  • QCheckBox
  • QComboBox
  • QPushButton
  • QToolButton
  • QToolBar
  • QProgressBar
  • QSpinBox
  • QFrame
  • QTabWidget, QTabBar
  • QDockWidget
  • QSlider (horizontal and vertical)

What still needs to be done:

  • QAbstractScrollArea
  • QSplitter
  • QStatusBar
  • QTableView
  • QToolBox

Contact information: