mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-27 06:38:44 -05:00
Update README.md
Added a snippet
This commit is contained in:
parent
8609577e96
commit
66654c5dfc
33
README.md
33
README.md
@ -1,15 +1,29 @@
|
|||||||
Introduction
|
A dark stylesheet for Qt applications.
|
||||||
==================
|
|
||||||
|
|
||||||
This is a simple dark stylesheet for Qt applications.
|
Screenshots
|
||||||
|
===================
|
||||||
|
|
||||||
It tries to mimic the [Dark Obsidian](http://kde-look.org/content/show.php/?content=148616 "Dark Obsidian") KDE color scheme.
|
**TODO: Add screenshots**
|
||||||
|
|
||||||
Screenshots may be found on the following website:
|
Usage
|
||||||
|
============
|
||||||
|
|
||||||
**TODO: ***create a static website to show screenshots*****
|
- Download/clone the project next to your main executable (or wherever you find it fits well)
|
||||||
|
- Load QDarkStyleSheets/style.qss and apply it on your QApplication instance
|
||||||
|
|
||||||
This stylesheet has been tested on Windows XP and Linux KDE (Rosa Marathon 2012)
|
Here is a quick snippet in python (PySide/PyQt) that shows how to use the stylesheet:
|
||||||
|
|
||||||
|
```Python
|
||||||
|
def main():
|
||||||
|
# create the qt application
|
||||||
|
app = QApplication()
|
||||||
|
# Load the stylesheet
|
||||||
|
f = open("QDarkStyleSheet/style.qss","r")
|
||||||
|
style_sheet = f.read()
|
||||||
|
f.close()
|
||||||
|
# apply it
|
||||||
|
app.setStyleSheet(style_sheet)
|
||||||
|
```
|
||||||
|
|
||||||
Status:
|
Status:
|
||||||
==============
|
==============
|
||||||
@ -42,9 +56,6 @@ The following widgets are styled:
|
|||||||
What still needs to be done:
|
What still needs to be done:
|
||||||
|
|
||||||
- QAbstractScrollArea
|
- QAbstractScrollArea
|
||||||
- QHeaderView
|
|
||||||
- QListView
|
|
||||||
- QSizeGrip
|
|
||||||
- QSplitter
|
- QSplitter
|
||||||
- QStatusBar
|
- QStatusBar
|
||||||
- QTableView
|
- QTableView
|
||||||
@ -54,4 +65,4 @@ Contact information:
|
|||||||
===========================
|
===========================
|
||||||
|
|
||||||
- Maintainer: colin.duquesnoy@gmail.com
|
- Maintainer: colin.duquesnoy@gmail.com
|
||||||
- Homepage: **TODO**
|
- Homepage: https://github.com/ColinDuquesnoy/QDarkStyleSheet
|
Loading…
Reference in New Issue
Block a user