Skip to content

Commit

Permalink
Improve resources (#76)
Browse files Browse the repository at this point in the history
* Refactor resources

* Refactor
  • Loading branch information
5yutan5 authored Jan 16, 2022
1 parent aaa360b commit 67e3ee8
Show file tree
Hide file tree
Showing 111 changed files with 2,900 additions and 3,335 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"pyupgrade",
"qdarktheme",
"QLCD",
"qproperty",
"qresource",
"qtbot",
"qtpy",
Expand Down
2 changes: 1 addition & 1 deletion qdarktheme/themes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
- 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.
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
Expand Down
60 changes: 30 additions & 30 deletions qdarktheme/themes/dark/palette.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,42 +4,42 @@
_palette = QPalette()

# base
_palette.setColor(QPalette.ColorRole.WindowText, QColor(228, 231, 235, 255))
_palette.setColor(QPalette.ColorRole.Button, QColor(32, 33, 36, 255))
_palette.setColor(QPalette.ColorRole.Text, QColor(239, 241, 241, 255))
_palette.setColor(QPalette.ColorRole.ButtonText, QColor(138, 180, 247, 255))
_palette.setColor(QPalette.ColorRole.Base, QColor(32, 33, 36, 255))
_palette.setColor(QPalette.ColorRole.Window, QColor(32, 33, 36, 255))
_palette.setColor(QPalette.ColorRole.Highlight, QColor(138, 180, 247, 255))
_palette.setColor(QPalette.ColorRole.HighlightedText, QColor(32, 33, 36, 255))
_palette.setColor(QPalette.ColorRole.Link, QColor(32, 33, 36, 255))
_palette.setColor(QPalette.ColorRole.AlternateBase, QColor(41, 43, 46, 255))
_palette.setColor(QPalette.ColorRole.ToolTipBase, QColor(41, 42, 45, 255))
_palette.setColor(QPalette.ColorRole.ToolTipText, QColor(228, 231, 235, 255))
_palette.setColor(QPalette.ColorRole.LinkVisited, QColor(197, 138, 248, 255))
_palette.setColor(QPalette.ColorRole.ToolTipText, QColor(41, 42, 45, 255))
_palette.setColor(QPalette.ColorRole.ToolTipBase, QColor(228, 231, 235, 255))
_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(228, 231, 235, 255)) # type: ignore
_palette.setColor(QPalette.ColorRole.Foreground, QColor("#e4e7eb")) # type: ignore
if hasattr(QPalette.ColorRole, "PlaceholderText"):
_palette.setColor(QPalette.ColorRole.PlaceholderText, QColor(138, 139, 141, 255))
_palette.setColor(QPalette.ColorRole.PlaceholderText, QColor("#8a8b8d"))

_palette.setColor(QPalette.ColorRole.Light, QColor(63, 64, 66, 255))
_palette.setColor(QPalette.ColorRole.Midlight, QColor(63, 64, 66, 255))
_palette.setColor(QPalette.ColorRole.Dark, QColor(228, 231, 235, 255))
_palette.setColor(QPalette.ColorRole.Mid, QColor(63, 64, 66, 255))
_palette.setColor(QPalette.ColorRole.Shadow, QColor(63, 64, 66, 255))
_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(105, 113, 119, 255))
_palette.setColor(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Text, QColor(105, 113, 119, 255))
_palette.setColor(QPalette.ColorGroup.Disabled, QPalette.ColorRole.ButtonText, QColor(63, 64, 66, 255))
_palette.setColor(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Highlight, QColor(83, 87, 91, 255))
_palette.setColor(QPalette.ColorGroup.Disabled, QPalette.ColorRole.HighlightedText, QColor(105, 113, 119, 255))
_palette.setColor(QPalette.ColorGroup.Disabled, QPalette.ColorRole.Link, QColor(105, 113, 119, 255))
_palette.setColor(QPalette.ColorGroup.Disabled, QPalette.ColorRole.LinkVisited, QColor(105, 113, 119, 255))
_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(57, 61, 65, 255))
_palette.setColor(QPalette.ColorGroup.Inactive, QPalette.ColorRole.Highlight, QColor("#393d41"))

PALETTE = _palette
Loading

0 comments on commit 67e3ee8

Please sign in to comment.