From d97658070d579044ac658d5a4acf389b58e82e4c Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Tue, 26 Aug 2025 14:51:35 -0400 Subject: Added additional theming for sidebar icons --- binaryninjacore.h | 6 ++++++ ui/sidebarwidget.h | 4 ++++ 2 files changed, 10 insertions(+) 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); }; -- cgit v1.3.1