diff options
Diffstat (limited to 'src/gui/styles/base/BaseStyle.h')
-rw-r--r-- | src/gui/styles/base/BaseStyle.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gui/styles/base/BaseStyle.h b/src/gui/styles/base/BaseStyle.h index d6269fad7..d3c20915c 100644 --- a/src/gui/styles/base/BaseStyle.h +++ b/src/gui/styles/base/BaseStyle.h @@ -42,6 +42,8 @@ public: }; QPalette standardPalette() const override; + QIcon + standardIcon(StandardPixmap sp, const QStyleOption* opt = nullptr, const QWidget* widget = nullptr) const override; void drawPrimitive(PrimitiveElement elem, const QStyleOption* option, QPainter* painter, @@ -95,6 +97,15 @@ protected: return {}; } +#ifdef Q_OS_MACOS + /** + * Whether to draw a native macOS toolbar or fill it with a solid color instead. + * Can be set to false to avoid mixed themes if the OS theme isn't the same as + * the KeePassXC application theme. + */ + bool m_drawNativeMacOsToolBar = true; +#endif + BaseStylePrivate* d; }; |