Skip to content

Commit

Permalink
Merge pull request mantis-software-company#22 from geekdinazor/main
Browse files Browse the repository at this point in the history
wip: fix: don't forcing Fusion style for native look and feel & dark theme disabled buttons bugfix in Fusion style
  • Loading branch information
geekdinazor authored Oct 15, 2024
2 parents cc34480 + 8b6f7f7 commit 6c403a6
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions finch/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,25 @@

def apply_theme(app):
""" Apply Dark Theme """
app.setStyle("Fusion")
palette = QPalette()
palette.setColor(QPalette.Window, QColor(53, 53, 53))
palette.setColor(QPalette.WindowText, Qt.white)
palette.setColor(QPalette.Base, QColor(25, 25, 25))
palette.setColor(QPalette.Base, QColor(35, 35, 35))
palette.setColor(QPalette.AlternateBase, QColor(53, 53, 53))
palette.setColor(QPalette.ToolTipBase, Qt.black)
palette.setColor(QPalette.ToolTipBase, QColor(25, 25, 25))
palette.setColor(QPalette.ToolTipText, Qt.white)
palette.setColor(QPalette.Text, Qt.white)
palette.setColor(QPalette.Button, QColor(53, 53, 53))
palette.setColor(QPalette.ButtonText, Qt.white)
palette.setColor(QPalette.BrightText, Qt.red)
palette.setColor(QPalette.Link, QColor(42, 130, 218))
palette.setColor(QPalette.Highlight, QColor(42, 130, 218))
palette.setColor(QPalette.HighlightedText, Qt.black)
palette.setColor(QPalette.HighlightedText, QColor(35, 35, 35))
palette.setColor(QPalette.Active, QPalette.Button, QColor(53, 53, 53))
palette.setColor(QPalette.Disabled, QPalette.ButtonText, Qt.darkGray)
palette.setColor(QPalette.Disabled, QPalette.WindowText, Qt.darkGray)
palette.setColor(QPalette.Disabled, QPalette.Text, Qt.darkGray)
palette.setColor(QPalette.Disabled, QPalette.Light, QColor(53, 53, 53))
app.setPalette(palette)


Expand Down

0 comments on commit 6c403a6

Please sign in to comment.