Skip to content

Instantly share code, notes, and snippets.

@psifertex
Created September 15, 2016 19:10
Show Gist options
  • Save psifertex/61689e3131f263579671b13f1e26d33d to your computer and use it in GitHub Desktop.
Save psifertex/61689e3131f263579671b13f1e26d33d to your computer and use it in GitHub Desktop.
binary ninja dark theme colors
QColor background = QColor(42, 42, 42);
QColor backgroundDark = QColor(16, 16, 16);
QColor backgroundWindow = QColor(54, 54, 54);
QColor backgroundHighlight = QColor(74, 74, 74);
QColor content = QColor(224, 224, 224);
QColor disabled = QColor(144, 144, 144);
QColor selection = QColor(96, 96, 96);
QColor selectionLight = QColor(128, 128, 128);
QColor green = QColor(162, 217, 175);
QColor red = QColor(222, 143, 151);
QColor blue = QColor(128, 198, 233);
QColor cyan = QColor(142, 230, 237);
QColor lightCyan = QColor(176, 221, 228);
QColor orange = QColor(237, 189, 129);
QColor yellow = QColor(237, 223, 179);
QColor magenta = QColor(218, 196, 209);
Theme theme;
theme.name = "Dark";
theme.style = "Fusion";
theme.palette.setColor(QPalette::Window, backgroundWindow);
theme.palette.setColor(QPalette::WindowText, content);
theme.palette.setColor(QPalette::Base, backgroundDark);
theme.palette.setColor(QPalette::AlternateBase, background);
theme.palette.setColor(QPalette::ToolTipBase, backgroundHighlight);
theme.palette.setColor(QPalette::ToolTipText, content);
theme.palette.setColor(QPalette::Text, content);
theme.palette.setColor(QPalette::Button, backgroundHighlight);
theme.palette.setColor(QPalette::ButtonText, content);
theme.palette.setColor(QPalette::BrightText, yellow);
theme.palette.setColor(QPalette::Link, blue);
theme.palette.setColor(QPalette::Highlight, blue);
theme.palette.setColor(QPalette::HighlightedText, backgroundDark);
theme.palette.setColor(QPalette::Light, avgColor(backgroundDark, content));
theme.colors[AddressColor] = green;
theme.colors[ModifiedColor] = red;
theme.colors[InsertedColor] = blue;
theme.colors[NotPresentColor] = disabled;
theme.colors[SelectionColor] = selection;
theme.colors[OutlineColor] = content;
theme.colors[BackgroundHighlightDarkColor] = backgroundDark;
theme.colors[BackgroundHighlightLightColor] = backgroundWindow;
theme.colors[BoldBackgroundHighlightDarkColor] = backgroundDark;
theme.colors[BoldBackgroundHighlightLightColor] = selection;
theme.colors[AlphanumericHighlightColor] = blue;
theme.colors[PrintableHighlightColor] = lightCyan;
theme.colors[GraphBackgroundDarkColor] = background;
theme.colors[GraphBackgroundLightColor] = background;
theme.colors[GraphNodeDarkColor] = backgroundHighlight;
theme.colors[GraphNodeLightColor] = backgroundHighlight;
theme.colors[GraphNodeOutlineColor] = disabled;
theme.colors[TrueBranchColor] = green;
theme.colors[FalseBranchColor] = red;
theme.colors[UnconditionalBranchColor] = blue;
theme.colors[AltTrueBranchColor] = blue;
theme.colors[AltFalseBranchColor] = orange;
theme.colors[AltUnconditionalBranchColor] = content;
theme.colors[RegisterColor] = yellow;
theme.colors[NumberColor] = green;
theme.colors[CodeSymbolColor] = blue;
theme.colors[DataSymbolColor] = cyan;
theme.colors[StackVariableColor] = avgColor(green, content);
theme.colors[ImportColor] = orange;
theme.colors[InstructionHighlightColor] = selectionLight;
theme.colors[TokenHighlightColor] = red;
theme.colors[AnnotationColor] = magenta;
theme.colors[OpcodeColor] = disabled;
theme.colors[LinearDisassemblyFunctionHeaderColor] = backgroundHighlight;
theme.colors[LinearDisassemblyBlockColor] = background;
theme.colors[LinearDisassemblySeparatorColor] = disabled;
theme.colors[StringColor] = magenta;
theme.colors[ScriptConsoleOutputColor] = content;
theme.colors[ScriptConsoleErrorColor] = red;
theme.colors[ScriptConsoleEchoColor] = disabled;
theme.colors[BlueStandardHighlightColor] = blue;
theme.colors[GreenStandardHighlightColor] = green;
theme.colors[CyanStandardHighlightColor] = cyan;
theme.colors[RedStandardHighlightColor] = red;
theme.colors[MagentaStandardHighlightColor] = magenta;
theme.colors[YellowStandardHighlightColor] = yellow;
theme.colors[OrangeStandardHighlightColor] = orange;
theme.colors[WhiteStandardHighlightColor] = content;
theme.colors[BlackStandardHighlightColor] = QColor(0, 0, 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment