Skip to content

Instantly share code, notes, and snippets.

@Elemecca
Created December 11, 2017 11:56
Show Gist options
  • Save Elemecca/76db9b368e404e5e50dc3429d7ab4374 to your computer and use it in GitHub Desktop.
Save Elemecca/76db9b368e404e5e50dc3429d7ab4374 to your computer and use it in GitHub Desktop.
Dark theme for IDA Pro 7.0
import idaapi
from PyQt5.QtWidgets import QApplication
from PyQt5.QtGui import QColor, QPalette
class theme_t(idaapi.plugin_t):
flags = idaapi.PLUGIN_FIX
help = ""
comment = ""
wanted_name = ""
wanted_hotkey = ""
def init(self):
QApplication.setStyle('Fusion')
base = QColor( 60, 63, 65)
text = QColor(187, 187, 187)
palette = QApplication.palette()
palette.setColor(QPalette.Window, base)
palette.setColor(QPalette.WindowText, text)
palette.setColor(QPalette.Base, base)
palette.setColor(QPalette.Text, text)
palette.setColor(QPalette.AlternateBase, base)
palette.setColor(QPalette.BrightText, text)
palette.setColor(QPalette.Highlight, QColor(74, 101, 202))
palette.setColor(QPalette.HighlightedText, text)
palette.setColor(QPalette.ToolTipBase, base)
palette.setColor(QPalette.ToolTipText, text)
palette.setColor(QPalette.Button, base)
palette.setColor(QPalette.ButtonText, text)
palette.setColor(QPalette.Mid, QColor(81, 81, 81))
palette.setColor(QPalette.Dark, QColor(81, 81, 81))
palette.setColor(QPalette.Light, QColor(81, 81, 81))
palette.setColor(QPalette.Midlight, QColor(81, 81, 81))
QApplication.setPalette(palette)
return idaapi.PLUGIN_SKIP
def run(self):
pass
def term(self):
pass
def PLUGIN_ENTRY():
return theme_t()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment