- added qdarktheme package into the code
This commit is contained in:
45
libs/qdarktheme/themes/__init__.py
Normal file
45
libs/qdarktheme/themes/__init__.py
Normal file
@@ -0,0 +1,45 @@
|
||||
"""Package including resources.
|
||||
|
||||
**Warning**
|
||||
|
||||
This package created programmatically. All changes made in this file will be lost!
|
||||
Created by the `qdarktheme/tools/build_resources`.
|
||||
|
||||
|
||||
License Information
|
||||
===================
|
||||
|
||||
Material design icons
|
||||
---------------------
|
||||
|
||||
All svg files in PyQtDarkTheme is from Material design icons(which uses an Apache 2.0 license).
|
||||
|
||||
- Author: Google
|
||||
- Site: https://fonts.google.com/icons
|
||||
- Source: https://github.com/google/material-design-icons
|
||||
- License: Apache License Version 2.0 | https://www.apache.org/licenses/LICENSE-2.0.txt
|
||||
|
||||
Modifications made to each files to change the icon color and angle and remove svg namespace.
|
||||
|
||||
The current Material design icons license summary can be viewed at:
|
||||
https://github.com/google/material-design-icons/blob/master/LICENSE
|
||||
|
||||
|
||||
QDarkStyleSheet(Source code)
|
||||
----------------------------
|
||||
|
||||
Qt stylesheets are originally fork of QDarkStyleSheet(MIT License).
|
||||
|
||||
- Author: Colin Duquesnoy
|
||||
- Site: https://github.com/ColinDuquesnoy/QDarkStyleSheet
|
||||
- Source: https://github.com/ColinDuquesnoy/QDarkStyleSheet
|
||||
- License: MIT License | https://opensource.org/licenses/MIT
|
||||
|
||||
Modifications made to a file to change the style.
|
||||
|
||||
The current QDarkStyleSheet license summary can be viewed at:
|
||||
https://github.com/ColinDuquesnoy/QDarkStyleSheet/blob/master/LICENSE.rst
|
||||
|
||||
"""
|
||||
|
||||
THEMES = ("dark", "light")
|
||||
1
libs/qdarktheme/themes/dark/__init__.py
Normal file
1
libs/qdarktheme/themes/dark/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
"""Package containing the resources for dark theme."""
|
||||
45
libs/qdarktheme/themes/dark/palette.py
Normal file
45
libs/qdarktheme/themes/dark/palette.py
Normal file
@@ -0,0 +1,45 @@
|
||||
"""Module loading QPalette."""
|
||||
from libs.qdarktheme.qtpy.QtGui import QColor, QPalette
|
||||
|
||||
_palette = QPalette()
|
||||
|
||||
# base
|
||||
_palette.setColor(QPalette.ColorRole.WindowText, QColor("#e4e7eb"))
|
||||
_palette.setColor(QPalette.ColorRole.Button, QColor("#202124"))
|
||||
_palette.setColor(QPalette.ColorRole.Text, QColor("#eff1f1"))
|
||||
_palette.setColor(QPalette.ColorRole.ButtonText, QColor("#8ab4f7"))
|
||||
_palette.setColor(QPalette.ColorRole.Base, QColor("#202124"))
|
||||
_palette.setColor(QPalette.ColorRole.Window, QColor("#202124"))
|
||||
_palette.setColor(QPalette.ColorRole.Highlight, QColor("#8ab4f7"))
|
||||
_palette.setColor(QPalette.ColorRole.HighlightedText, QColor("#202124"))
|
||||
_palette.setColor(QPalette.ColorRole.Link, QColor("#202124"))
|
||||
_palette.setColor(QPalette.ColorRole.AlternateBase, QColor("#292b2e"))
|
||||
_palette.setColor(QPalette.ColorRole.ToolTipBase, QColor("#292a2d"))
|
||||
_palette.setColor(QPalette.ColorRole.ToolTipText, QColor("#e4e7eb"))
|
||||
_palette.setColor(QPalette.ColorRole.LinkVisited, QColor("#c58af8"))
|
||||
_palette.setColor(QPalette.ColorRole.ToolTipText, QColor("#292a2d"))
|
||||
_palette.setColor(QPalette.ColorRole.ToolTipBase, QColor("#e4e7eb"))
|
||||
if hasattr(QPalette.ColorRole, "Foreground"):
|
||||
_palette.setColor(QPalette.ColorRole.Foreground, QColor("#e4e7eb")) # type: ignore
|
||||
if hasattr(QPalette.ColorRole, "PlaceholderText"):
|
||||
_palette.setColor(QPalette.ColorRole.PlaceholderText, QColor("#8a8b8d"))
|
||||
|
||||
_palette.setColor(QPalette.ColorRole.Light, QColor("#3f4042"))
|
||||
_palette.setColor(QPalette.ColorRole.Midlight, QColor("#3f4042"))
|
||||
_palette.setColor(QPalette.ColorRole.Dark, QColor("#e4e7eb"))
|
||||
_palette.setColor(QPalette.ColorRole.Mid, QColor("#3f4042"))
|
||||
_palette.setColor(QPalette.ColorRole.Shadow, QColor("#3f4042"))
|
||||
|
||||
# disabled
|
||||
_palette.setColor(QPalette.ColorGroup.Disabled, QPalette.ColorRole.WindowText, QColor("#697177"))
|
||||
_palette.setColor(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Text, QColor("#697177"))
|
||||
_palette.setColor(QPalette.ColorGroup.Disabled, QPalette.ColorRole.ButtonText, QColor("#3f4042"))
|
||||
_palette.setColor(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Highlight, QColor("#53575b"))
|
||||
_palette.setColor(QPalette.ColorGroup.Disabled, QPalette.ColorRole.HighlightedText, QColor("#697177"))
|
||||
_palette.setColor(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Link, QColor("#697177"))
|
||||
_palette.setColor(QPalette.ColorGroup.Disabled, QPalette.ColorRole.LinkVisited, QColor("#697177"))
|
||||
|
||||
# inactive
|
||||
_palette.setColor(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Highlight, QColor("#393d41"))
|
||||
|
||||
PALETTE = _palette
|
||||
1097
libs/qdarktheme/themes/dark/stylesheet.py
Normal file
1097
libs/qdarktheme/themes/dark/stylesheet.py
Normal file
File diff suppressed because it is too large
Load Diff
5
libs/qdarktheme/themes/dark/svg.py
Normal file
5
libs/qdarktheme/themes/dark/svg.py
Normal file
File diff suppressed because one or more lines are too long
1
libs/qdarktheme/themes/light/__init__.py
Normal file
1
libs/qdarktheme/themes/light/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
"""Package containing the resources for light theme."""
|
||||
45
libs/qdarktheme/themes/light/palette.py
Normal file
45
libs/qdarktheme/themes/light/palette.py
Normal file
@@ -0,0 +1,45 @@
|
||||
"""Module loading QPalette."""
|
||||
from libs.qdarktheme.qtpy.QtGui import QColor, QPalette
|
||||
|
||||
_palette = QPalette()
|
||||
|
||||
# base
|
||||
_palette.setColor(QPalette.ColorRole.WindowText, QColor("#4d5157"))
|
||||
_palette.setColor(QPalette.ColorRole.Button, QColor("#f8f9fa"))
|
||||
_palette.setColor(QPalette.ColorRole.Text, QColor("#4d5157"))
|
||||
_palette.setColor(QPalette.ColorRole.ButtonText, QColor("#0081db"))
|
||||
_palette.setColor(QPalette.ColorRole.Base, QColor("#f8f9fa"))
|
||||
_palette.setColor(QPalette.ColorRole.Window, QColor("#f8f9fa"))
|
||||
_palette.setColor(QPalette.ColorRole.Highlight, QColor("#0081db"))
|
||||
_palette.setColor(QPalette.ColorRole.HighlightedText, QColor("#f8f9fa"))
|
||||
_palette.setColor(QPalette.ColorRole.Link, QColor("#f8f9fa"))
|
||||
_palette.setColor(QPalette.ColorRole.AlternateBase, QColor("#e9ecef"))
|
||||
_palette.setColor(QPalette.ColorRole.ToolTipBase, QColor("#ffffff"))
|
||||
_palette.setColor(QPalette.ColorRole.ToolTipText, QColor("#4d5157"))
|
||||
_palette.setColor(QPalette.ColorRole.LinkVisited, QColor("#660098"))
|
||||
_palette.setColor(QPalette.ColorRole.ToolTipText, QColor("#ffffff"))
|
||||
_palette.setColor(QPalette.ColorRole.ToolTipBase, QColor("#4d5157"))
|
||||
if hasattr(QPalette.ColorRole, "Foreground"):
|
||||
_palette.setColor(QPalette.ColorRole.Foreground, QColor("#4d5157")) # type: ignore
|
||||
if hasattr(QPalette.ColorRole, "PlaceholderText"):
|
||||
_palette.setColor(QPalette.ColorRole.PlaceholderText, QColor("#696a6c"))
|
||||
|
||||
_palette.setColor(QPalette.ColorRole.Light, QColor("#dadce0"))
|
||||
_palette.setColor(QPalette.ColorRole.Midlight, QColor("#dadce0"))
|
||||
_palette.setColor(QPalette.ColorRole.Dark, QColor("#4d5157"))
|
||||
_palette.setColor(QPalette.ColorRole.Mid, QColor("#dadce0"))
|
||||
_palette.setColor(QPalette.ColorRole.Shadow, QColor("#dadce0"))
|
||||
|
||||
# disabled
|
||||
_palette.setColor(QPalette.ColorGroup.Disabled, QPalette.ColorRole.WindowText, QColor("#babdc2"))
|
||||
_palette.setColor(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Text, QColor("#babdc2"))
|
||||
_palette.setColor(QPalette.ColorGroup.Disabled, QPalette.ColorRole.ButtonText, QColor("#dadce0"))
|
||||
_palette.setColor(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Highlight, QColor("#dadce0"))
|
||||
_palette.setColor(QPalette.ColorGroup.Disabled, QPalette.ColorRole.HighlightedText, QColor("#babdc2"))
|
||||
_palette.setColor(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Link, QColor("#babdc2"))
|
||||
_palette.setColor(QPalette.ColorGroup.Disabled, QPalette.ColorRole.LinkVisited, QColor("#babdc2"))
|
||||
|
||||
# inactive
|
||||
_palette.setColor(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Highlight, QColor("#e4e6f2"))
|
||||
|
||||
PALETTE = _palette
|
||||
1097
libs/qdarktheme/themes/light/stylesheet.py
Normal file
1097
libs/qdarktheme/themes/light/stylesheet.py
Normal file
File diff suppressed because it is too large
Load Diff
5
libs/qdarktheme/themes/light/svg.py
Normal file
5
libs/qdarktheme/themes/light/svg.py
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user