diff options
| author | Rusty Wagner <rusty.wagner@gmail.com> | 2025-08-28 19:29:44 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty.wagner@gmail.com> | 2025-08-29 15:42:09 -0400 |
| commit | 0e6389e4c0342a025859322fa1f45e125ca36675 (patch) | |
| tree | 5bfa4baa5d98e1d33dbf649ad288468991293725 | |
| parent | d97658070d579044ac658d5a4acf389b58e82e4c (diff) | |
Add theme color for panes with keyboard focus
| -rw-r--r-- | binaryninjacore.h | 5 | ||||
| -rw-r--r-- | ui/pane.h | 11 |
2 files changed, 10 insertions, 6 deletions
diff --git a/binaryninjacore.h b/binaryninjacore.h index 2723ceae..57d26de2 100644 --- a/binaryninjacore.h +++ b/binaryninjacore.h @@ -37,14 +37,14 @@ // Current ABI version for linking to the core. This is incremented any time // there are changes to the API that affect linking, including new functions, // new types, or modifications to existing functions or types. -#define BN_CURRENT_CORE_ABI_VERSION 130 +#define BN_CURRENT_CORE_ABI_VERSION 131 // Minimum ABI version that is supported for loading of plugins. Plugins that // are linked to an ABI version less than this will not be able to load and // will require rebuilding. The minimum version is increased when there are // incompatible changes that break binary compatibility, such as changes to // existing types or functions. -#define BN_MINIMUM_CORE_ABI_VERSION 130 +#define BN_MINIMUM_CORE_ABI_VERSION 131 #ifdef __GNUC__ #ifdef BINARYNINJACORE_LIBRARY @@ -2170,6 +2170,7 @@ extern "C" // Pane colors ActivePaneBackgroundColor, InactivePaneBackgroundColor, + FocusedPaneBackgroundColor, // Tab colors TabBarTabActiveColor, @@ -37,9 +37,10 @@ class BINARYNINJAUIAPI Pane : public QWidget PaneHeader* m_header = nullptr; CloseButton* m_closeButton = nullptr; bool m_active = false; + bool m_containerFocused = false; QVBoxLayout* m_layout = nullptr; - public: +public: Pane(QWidget* widget); QWidget* widget() const { return m_widget; } @@ -55,22 +56,24 @@ class BINARYNINJAUIAPI Pane : public QWidget virtual void setIsSinglePane(bool isSinglePane); virtual void setIsActivePane(bool active); + virtual void setIsContainerFocused(bool focused); virtual Qt::Orientation defaultSplitDirection() const { return Qt::Horizontal; } virtual void setDefaultSplitDirection(Qt::Orientation orientation); void setWidget(QWidget* widget); - protected: +protected: void init(PaneHeader* header); + void updateHeaderColor(); - Q_SIGNALS: +Q_SIGNALS: void paneCloseRequested(); void paneSplitRequested(Pane* newPane, Qt::Edge edge); void movePane(Pane* target, Qt::Edge edge); void newWindowForPane(QScreen* screen, QPoint pos); void notifyViewChanged(ViewFrame* frame); - public Q_SLOTS: +public Q_SLOTS: void splitButtonClicked(Qt::Orientation orientation); void closeButtonClicked(); void headerClicked(); |
