WSJT-X/README.md

137 lines
2.5 KiB
Markdown
Raw Normal View History

2013-03-10 10:32:24 -04:00
QDarkStylesheet
==================
2014-01-02 10:20:29 -05:00
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/ColinDuquesnoy/qdarkstylesheet/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
2014-01-02 10:30:44 -05:00
[![Build Status](https://travis-ci.org/ColinDuquesnoy/QDarkStyleSheet.png?branch=master)](https://travis-ci.org/ColinDuquesnoy/QDarkStyleSheet)
2014-01-02 10:34:33 -05:00
[![Number of PyPI downloads](https://pypip.in/d/QDarkStyle/badge.png)](https://pypi.python.org/pypi/QDarkStyle)
[![Latest PyPI version](https://pypip.in/v/QDarkStyle/badge.png)](https://pypi.python.org/pypi/QDarkStyle)
2014-01-02 10:20:29 -05:00
2013-03-10 12:59:50 -04:00
A dark stylesheet for Qt applications.
License
2014-01-02 10:27:19 -05:00
===========
2013-03-10 12:59:50 -04:00
2014-01-02 09:57:14 -05:00
This project is licensed under the MIT license.
2013-03-10 12:59:50 -04:00
Installation
2014-01-02 10:27:19 -05:00
==============
2013-03-10 12:59:50 -04:00
2014-01-02 10:25:15 -05:00
Python
2014-01-02 10:27:19 -05:00
-----------
2014-01-02 10:25:15 -05:00
Install the qdarkstyle package using the *setup* script or using *pip*:
2013-03-10 12:59:50 -04:00
```bash
2013-03-10 16:01:58 -04:00
python setup.py install
2013-03-10 12:59:50 -04:00
```
2014-01-02 10:25:15 -05:00
or
2013-03-10 12:59:50 -04:00
```bash
2013-03-10 16:01:58 -04:00
pip install qdarkstyle
2013-03-10 12:59:50 -04:00
```
2014-01-02 10:25:15 -05:00
C++
2014-01-02 10:27:19 -05:00
---------
2014-01-02 10:25:15 -05:00
Download/clone the project and copy the following files to your application directory:
2014-01-02 10:28:20 -05:00
- **qdarkstyle/style.qss**
- **qdarkstyle/style.qrc**
- **qdarkstyle/rc/** (the whole directory)
2012-08-23 08:30:23 -04:00
2012-11-05 13:42:35 -05:00
Usage
2014-01-02 10:27:19 -05:00
============
2012-08-23 09:03:05 -04:00
2013-03-10 12:59:50 -04:00
Here is an example using PySide:
2012-08-23 09:03:05 -04:00
2012-11-05 13:42:35 -05:00
```Python
import sys
2013-03-10 12:59:50 -04:00
import qdarkstyle
from PySide import QtGui
2013-03-10 12:59:50 -04:00
# create the application and the main window
app = QtGui.QApplication(sys.argv)
window = QtGui.QMainWindow()
# setup stylesheet
2013-03-10 12:59:50 -04:00
app.setStyleSheet(qdarkstyle.load_stylesheet())
# run
window.show()
app.exec_()
2012-11-05 13:42:35 -05:00
```
2012-08-23 09:03:05 -04:00
2014-01-02 10:20:29 -05:00
To use PyQt4 instead of PySide, you just need to replace
```Python
app.setStyleSheet(qdarkstyle.load_stylesheet())
```
by
```Python
app.setStyleSheet(qdarkstyle.load_stylesheet(pyside=False))
```
2013-03-10 12:59:50 -04:00
2014-01-02 10:20:29 -05:00
_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._
2013-03-10 12:59:50 -04:00
2012-08-23 09:03:05 -04:00
Status:
2014-01-02 10:27:19 -05:00
===========
2012-08-23 09:03:05 -04:00
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
2013-03-10 12:59:50 -04:00
2012-08-23 09:03:05 -04:00
Contact information:
2014-01-02 10:27:19 -05:00
=========================
2012-08-23 09:03:05 -04:00
- Maintainer: colin.duquesnoy@gmail.com
- Homepage: https://github.com/ColinDuquesnoy/QDarkStyleSheet
2013-03-10 10:32:04 -04:00
2013-03-10 12:59:50 -04:00
Snapshots
2014-01-02 10:27:19 -05:00
=================
2013-03-10 10:32:04 -04:00
I have used this stylesheet for an internal tool at work. Are are a few screenshots:
![alt text](/screenshots/01.png "Screenshot 01")
2013-11-23 16:50:03 -05:00
2014-01-02 10:20:29 -05:00
2013-11-23 16:50:03 -05:00