Skip to content

Commit 43b5f26

Browse files
committed
Added additional theming for sidebar icons
1 parent 3b3b051 commit 43b5f26

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

binaryninjacore.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2156,7 +2156,13 @@ extern "C"
21562156
// Sidebar colors
21572157
SidebarBackgroundColor,
21582158
SidebarInactiveIconColor,
2159+
SidebarHoverIconColor,
21592160
SidebarActiveIconColor,
2161+
SidebarFocusedIconColor,
2162+
SidebarHoverBackgroundColor,
2163+
SidebarActiveBackgroundColor,
2164+
SidebarFocusedBackgroundColor,
2165+
SidebarActiveIndicatorLineColor,
21602166
SidebarHeaderBackgroundColor, // Deprecated, has no effect (paints as QPalette::Window)
21612167
SidebarHeaderTextColor,
21622168
SidebarWidgetBackgroundColor,

ui/sidebarwidget.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ struct BINARYNINJAUIAPI SidebarIcon
2929
QImage original;
3030
QImage active;
3131
QImage inactive;
32+
QImage hover;
33+
QImage focused;
34+
35+
const QImage& iconForState(bool isActive, bool isHovered, bool isFocused) const;
3236

3337
static SidebarIcon generate(const QImage& src);
3438
};

0 commit comments

Comments
 (0)