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
Colin Duquesnoy a9ab2831da Update README.md
add a changelog entry
2014-01-26 16:06:23 +01:00
example Delete example_pyqt_ui.pyc 2014-01-26 15:59:29 +01:00
qdarkstyle Add newline at end of file 2014-01-26 16:00:48 +01:00
screenshots Added 1st screenshot 2012-11-05 16:26:43 +01:00
.gitignore #4 Add a QTableWidget to the examples 2014-01-26 15:58:50 +01:00
.travis.yml Add travis integration to test the examples 2014-01-02 16:12:25 +01:00
COPYING #2 Update copyright year 2014-01-02 16:15:54 +01:00
MANIFEST.in Added packaging 2013-03-10 17:59:50 +01:00
README.md Update README.md 2014-01-26 16:06:23 +01:00
setup.py Add classifiers 2014-01-02 16:41:43 +01:00

QDarkStylesheet

Bitdeli Badge Build Status Number of PyPI downloads Latest PyPI version

A dark stylesheet for Qt applications.

License

This project is licensed under the MIT license.

Installation

Python

Install the qdarkstyle package using the setup script or using pip:

python setup.py install

or

pip install qdarkstyle

C++

Download/clone the project and copy the following files to your application directory:

  • qdarkstyle/style.qss
  • qdarkstyle/style.qrc
  • qdarkstyle/rc/ (the whole directory)

Usage

Here is an example using PySide:

import sys
import qdarkstyle
from PySide import QtGui


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

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

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

To use PyQt4 instead of PySide, you just need to replace

app.setStyleSheet(qdarkstyle.load_stylesheet())

by

app.setStyleSheet(qdarkstyle.load_stylesheet(pyside=False))

There is an example included in the example folder. You can run the script without installing qdarkstyle. You only need to have PySide or PyQt4 installed on your system.

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
  • QToolBox

Changelog

* 1.2:
   - Improve QTableView support
* 1.1:
   - Switch to MIT license
   - Add python 3 support
* 1.0:
  - First public release (LGPL v2)

Contact information:

Snapshots

I have used this stylesheet for an internal tool at work. Are are a few screenshots:

alt text