summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRusty Wagner <rusty.wagner@gmail.com>2025-08-26 14:51:35 -0400
committerRusty Wagner <rusty.wagner@gmail.com>2025-08-29 15:42:09 -0400
commitd97658070d579044ac658d5a4acf389b58e82e4c (patch)
tree5a4d5eabe3d29bdc65c455ccf21a10e313023263
parent112b1ed7e58e8cb14ecba18bba74fc3bde372431 (diff)
Added additional theming for sidebar icons
-rw-r--r--binaryninjacore.h6
-rw-r--r--ui/sidebarwidget.h4
2 files changed, 10 insertions, 0 deletions
diff --git a/binaryninjacore.h b/binaryninjacore.h
index e278b446..2723ceae 100644
--- a/binaryninjacore.h
+++ b/binaryninjacore.h
@@ -2156,7 +2156,13 @@ extern "C"
// Sidebar colors
SidebarBackgroundColor,
SidebarInactiveIconColor,
+ SidebarHoverIconColor,
SidebarActiveIconColor,
+ SidebarFocusedIconColor,
+ SidebarHoverBackgroundColor,
+ SidebarActiveBackgroundColor,
+ SidebarFocusedBackgroundColor,
+ SidebarActiveIndicatorLineColor,
SidebarHeaderBackgroundColor, // Deprecated, has no effect (paints as QPalette::Window)
SidebarHeaderTextColor,
SidebarWidgetBackgroundColor,
diff --git a/ui/sidebarwidget.h b/ui/sidebarwidget.h
index 9567d344..bd31293e 100644
--- a/ui/sidebarwidget.h
+++ b/ui/sidebarwidget.h
@@ -29,6 +29,10 @@ struct BINARYNINJAUIAPI SidebarIcon
QImage original;
QImage active;
QImage inactive;
+ QImage hover;
+ QImage focused;
+
+ const QImage& iconForState(bool isActive, bool isHovered, bool isFocused) const;
static SidebarIcon generate(const QImage& src);
};