The most complete dark/light style sheet for Qt applications (Qt4, Qt5,
PySide, PySide2, PyQt4, PySide6, PyQt5, PyQt6, QtPy, PyQtGraph, Qt.Py) for
Python 2/3 and C++.
Python 2, as well as Qt4 (PyQt4 and PySide), will not be supported anymore.
They are still there as it is, but no back-compatibility, fixes, nor features
will be implemented.
Check the `documentation <https://qdarkstylesheet.readthedocs.io/en/stable>`__
to see how to set the desirable theme palette.
This module provides a function to load the stylesheets transparently
with the right resources file.
First, start importing our module
.. code-block:: python
import qdarkstyle
Then you can get the stylesheet provided by QDarkStyle for various Qt wrappers
as shown below
.. code-block:: python
# PySide 2
dark_stylesheet = qdarkstyle.load_stylesheet_pyside2()
# PyQt5
dark_stylesheet = qdarkstyle.load_stylesheet_pyqt5()
# PySide 6
dark_stylesheet = qdarkstyle.load_stylesheet_pyside6()
# PyQt6
dark_stylesheet = qdarkstyle.load_stylesheet_pyqt6()
Alternatively, from environment variables provided by QtPy, PyQtGraph, Qt.Py
.. code-block:: python
# QtPy
dark_stylesheet = qdarkstyle.load_stylesheet()
# PyQtGraph
dark_stylesheet = qdarkstyle.load_stylesheet(qt_api=os.environ('PYQTGRAPH_QT_LIB'))
# Qt.Py
dark_stylesheet = qdarkstyle.load_stylesheet(qt_api=Qt.__binding__)
Finally, set your QApplication with it
.. code-block:: python
app.setStyleSheet(dark_stylesheet)
Enjoy!
Raw data
{
"_id": null,
"home_page": "https://github.com/ColinDuquesnoy/QDarkStyleSheet",
"name": "QDarkStyle",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Colin Duquesnoy",
"author_email": "colin.duquesnoy@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/ef/1e/5bf72a61a7636058e25eaa7503c050dae9445de75fad6f71ba08f2174e49/QDarkStyle-3.2.3.tar.gz",
"platform": null,
"description": "The most complete dark/light style sheet for Qt applications (Qt4, Qt5,\nPySide, PySide2, PyQt4, PySide6, PyQt5, PyQt6, QtPy, PyQtGraph, Qt.Py) for\nPython 2/3 and C++.\n\nPython 2, as well as Qt4 (PyQt4 and PySide), will not be supported anymore.\nThey are still there as it is, but no back-compatibility, fixes, nor features\nwill be implemented.\n\n\nCheck the `documentation <https://qdarkstylesheet.readthedocs.io/en/stable>`__\nto see how to set the desirable theme palette.\n\nThis module provides a function to load the stylesheets transparently\nwith the right resources file.\n\nFirst, start importing our module\n\n.. code-block:: python\n\n import qdarkstyle\n\nThen you can get the stylesheet provided by QDarkStyle for various Qt wrappers\nas shown below\n\n.. code-block:: python\n\n # PySide 2\n dark_stylesheet = qdarkstyle.load_stylesheet_pyside2()\n # PyQt5\n dark_stylesheet = qdarkstyle.load_stylesheet_pyqt5()\n # PySide 6\n dark_stylesheet = qdarkstyle.load_stylesheet_pyside6()\n # PyQt6\n dark_stylesheet = qdarkstyle.load_stylesheet_pyqt6()\n\nAlternatively, from environment variables provided by QtPy, PyQtGraph, Qt.Py\n\n.. code-block:: python\n\n # QtPy\n dark_stylesheet = qdarkstyle.load_stylesheet()\n # PyQtGraph\n dark_stylesheet = qdarkstyle.load_stylesheet(qt_api=os.environ('PYQTGRAPH_QT_LIB'))\n # Qt.Py\n dark_stylesheet = qdarkstyle.load_stylesheet(qt_api=Qt.__binding__)\n\nFinally, set your QApplication with it\n\n.. code-block:: python\n\n app.setStyleSheet(dark_stylesheet)\n\nEnjoy!\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "The most complete dark/light style sheet for C++/Python and Qt applications",
"version": "3.2.3",
"project_urls": {
"Docs": "https://qdarkstylesheet.readthedocs.io/en/stable",
"Homepage": "https://github.com/ColinDuquesnoy/QDarkStyleSheet",
"Issues": "https://github.com/ColinDuquesnoy/QDarkStyleSheet/issues"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "937dc3c10498430dadcea4def5faddf71cd199e577d20a125e7ef1e9d7bdbbfa",
"md5": "16b97db84d1ffba9b9f69acea03db94e",
"sha256": "ea980ee426d594909cf1058306832af71ff6cbad6f69237b036d1550635aefbc"
},
"downloads": -1,
"filename": "QDarkStyle-3.2.3-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "16b97db84d1ffba9b9f69acea03db94e",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 871762,
"upload_time": "2023-11-28T19:54:48",
"upload_time_iso_8601": "2023-11-28T19:54:48.123949Z",
"url": "https://files.pythonhosted.org/packages/93/7d/c3c10498430dadcea4def5faddf71cd199e577d20a125e7ef1e9d7bdbbfa/QDarkStyle-3.2.3-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ef1e5bf72a61a7636058e25eaa7503c050dae9445de75fad6f71ba08f2174e49",
"md5": "4d0a2378b6bb56c9c8fb26bdeda0f2ec",
"sha256": "0c0b7f74a6e92121008992b369bab60468157db1c02cd30d64a5e9a3b402f1ae"
},
"downloads": -1,
"filename": "QDarkStyle-3.2.3.tar.gz",
"has_sig": false,
"md5_digest": "4d0a2378b6bb56c9c8fb26bdeda0f2ec",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 700957,
"upload_time": "2023-11-28T19:54:51",
"upload_time_iso_8601": "2023-11-28T19:54:51.623221Z",
"url": "https://files.pythonhosted.org/packages/ef/1e/5bf72a61a7636058e25eaa7503c050dae9445de75fad6f71ba08f2174e49/QDarkStyle-3.2.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-11-28 19:54:51",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ColinDuquesnoy",
"github_project": "QDarkStyleSheet",
"travis_ci": true,
"coveralls": false,
"github_actions": false,
"tox": true,
"lcname": "qdarkstyle"
}