diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-02-17 12:21:47 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-02-17 13:45:45 +0100 |
commit | 7decc4193028f27354556a007a99088c1ea0b32e (patch) | |
tree | f61d3217cecc360ec64056250cb918db54b7bcad /include/sfx2/infobar.hxx | |
parent | f3b0bd89a892d15179b9d6133c43e64bfcebbdf9 (diff) |
sfx2 infobar: allow setting the back/foreground color
It would be easier to set these after the infobar is created, but the
infobar is shown right after creating it, so that way the infobar would
be always yellow for a short period of time -> annoying flashing.
Change-Id: Ie23efd2fd1bba624cf2921f11a6fc40014ac4215
Diffstat (limited to 'include/sfx2/infobar.hxx')
-rw-r--r-- | include/sfx2/infobar.hxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/sfx2/infobar.hxx b/include/sfx2/infobar.hxx index 71123d0e6826..483c0f8750ca 100644 --- a/include/sfx2/infobar.hxx +++ b/include/sfx2/infobar.hxx @@ -13,6 +13,7 @@ #include <vcl/button.hxx> #include <vcl/fixed.hxx> +#include <basegfx/color/bcolor.hxx> #include <sfx2/dllapi.h> #include <sfx2/childwin.hxx> @@ -45,10 +46,14 @@ class SfxInfoBarWindow : public vcl::Window VclPtr<FixedText> m_pMessage; VclPtr<Button> m_pCloseBtn; std::vector< VclPtr<PushButton> > m_aActionBtns; + basegfx::BColor m_aBackgroundColor; + basegfx::BColor m_aForegroundColor; public: SfxInfoBarWindow( vcl::Window* parent, const OUString& sId, - const OUString& sMessage ); + const OUString& sMessage, + const basegfx::BColor* pBackgroundColor, + const basegfx::BColor* pForegroundColor ); virtual ~SfxInfoBarWindow( ); virtual void dispose() override; @@ -77,7 +82,7 @@ class SfxInfoBarContainerWindow : public vcl::Window virtual ~SfxInfoBarContainerWindow( ); virtual void dispose() override; - SfxInfoBarWindow* appendInfoBar(const OUString& sId, const OUString& sMessage); + SfxInfoBarWindow* appendInfoBar(const OUString& sId, const OUString& sMessage, const basegfx::BColor* pBackgroundColor, const basegfx::BColor* pForegroundColor); SfxInfoBarWindow* getInfoBar(const OUString& sId); void removeInfoBar(SfxInfoBarWindow* pInfoBar); |