Skip to content

Commit

Permalink
Theming: Use Base Palette Colour for Tooltip Background Instead of `Q…
Browse files Browse the repository at this point in the history
…t.white` (#402)
  • Loading branch information
sonic2kk authored May 20, 2024
1 parent 8c5ceee commit b9c0626
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pupgui2/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,14 @@

def PALETTE_DARK():
""" returns dark color palette """
palette_base = QColor(12, 12, 12)

palette_dark = QPalette()
palette_dark.setColor(QPalette.Window, QColor(30, 30, 30))
palette_dark.setColor(QPalette.WindowText, Qt.white)
palette_dark.setColor(QPalette.Base, QColor(12, 12, 12))
palette_dark.setColor(QPalette.Base, palette_base)
palette_dark.setColor(QPalette.AlternateBase, QColor(30, 30, 30))
palette_dark.setColor(QPalette.ToolTipBase, Qt.white)
palette_dark.setColor(QPalette.ToolTipBase, palette_base)
palette_dark.setColor(QPalette.ToolTipText, Qt.white)
palette_dark.setColor(QPalette.Text, Qt.white)
palette_dark.setColor(QPalette.Button, QColor(30, 30, 30))
Expand Down

0 comments on commit b9c0626

Please sign in to comment.