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 94a74687e6 Update makeppa
- update version
- switch to stable ppa
2015-05-01 14:57:48 +02:00
example Make stylesheet more modern (squash commits) 2015-04-25 21:42:32 +02:00
qdarkstyle Fix version number 2015-05-01 13:30:50 +02:00
screenshots Make stylesheet more modern (squash commits) 2015-04-25 21:42:32 +02:00
.gitignore Update gitignore 2015-04-21 13:55:55 +02: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
makeppa.sh Update makeppa 2015-05-01 14:57:48 +02:00
MANIFEST.in Added packaging 2013-03-10 17:59:50 +01:00
PKGBUILD Update PKGBUILD 2015-04-06 12:13:13 +02:00
README.md Update README.md 2015-05-01 13:28:12 +02:00
setup.cfg Add wheel support 2015-05-01 13:36:04 +02:00
setup.py Add support to stdeb 2015-04-09 16:01:51 +02:00
stdeb.cfg Add support to stdeb 2015-04-09 16:01:51 +02:00

QDarkStylesheet

Build Status Number of PyPI downloads Latest PyPI version

A dark stylesheet for Qt applications (Qt4, Qt5, PySide, PyQt4 and PyQt5).

License

This project is licensed under the MIT license.

Installation

Python

Install qdarkstyle package using the setup script or using pip:

python setup.py install

or

pip install qdarkstyle

C++

  1. Download/clone the project and copy the following files to your application directory (keep the existing directory hierarchy):
  • qdarkstyle/style.qss
  • qdarkstyle/style.qrc
  • qdarkstyle/rc/ (the whole directory)
  1. Add qdarkstyle/style.qrc to your .pro file

  2. Load the stylesheet:

QFile f(":qdarkstyle/style.qss");
if (!f.exists())
{
    printf("Unable to set stylesheet, file not found\n");
}
else 
{
    f.open(QFile::ReadOnly | QFile::Text);
    QTextStream ts(&f);
    QApplication::instance()->setStyleSheet(ts.readAll());
}

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))

To use PyQt5, you need to use load_stylesheet_pyqt5 instead of load_stylesheet.

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 or PyQt5) installed on your system.

Status:

Most widgets have been styled. If you find a widget that has not been style, just open an issue on the issue tracker or, better, submit a pull request.

Changelog

  • 2.0: Improve stylesheet to make it look a bit more modern (see pull request #25)
  • 1.16: fix QGroupBox title padding (see issue #20)
  • 1.15: improve tristate checkbox graphics: undetermined state is now represented by a dash
  • 1.14: add support for tristate check boxes and for vertical and horizontal lines
  • 1.13: fix issue with horizontal scrollbar arrows, left and right were inversed.
  • 1.12: fix minimum size of input widgets (see issue #14)
  • 1.11:
    • Fix QDockWidget title position on Mac.
    • Add QStatusBar support
    • Improve QToolButton especially the MenuButtonPopup and InstantPopup modes
  • 1.10:
    • Add PyQt5 support
    • Fix bug #12 (dock widget title not dark on OSX. Note that this reopens issue #8 for MAC users)
  • 1.9:
    • Improve QTabBar consistency and make selected tabs more distinctive
  • 1.8:
    • Add support for QToolBox
    • Fix issue with grid line in QTableView if there is only ONE row/column
  • 1.7:
    • Fix appearance of bottom tab bars (invert gradient)
    • Improve QTableView: add grid line and fix section borders
    • Fix bug #7: bug when resizing QTableView
    • Fix bug #8: text elidation no working on QDockWidget
  • 1.6:
    • Improve QToolButton style
    • Add support for InstantPopup and MenuButtonPopup
    • Improve QMenu style (better spacing with icons)
    • Add version to python package.
  • 1.5:
    • improve QTabBar style: now works with all tab bar positions (North, South, West and East)
    • fix bug #6: hide QTabBar base to avoid stange lines at the base of the tab bar.
  • 1.4: Add style.qss to qrc file, this fix issues with cx_freeze
  • 1.3:
    • remove outline on button, checkbox and radio button
    • add support for closable tabs
    • better disabled buttons
    • fix QTextEdit background color to match the color of QPlainTextEdit and QLineEdit
    • better hover/selected states for QTreeView and QListView
    • add QHeaderView support
  • 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

Here are a few snapshots:

![alt text](/screenshots/QDarkStyle example 1.png "QDarkStyle example 1") ![alt text](/screenshots/QDarkStyle example 2.png "QDarkStyle example 2") alt text