diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-09-02 12:01:26 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-09-02 20:23:26 +0200 |
commit | 6c8e9d47f9a8e09349dc1dbd3155461cc96034ff (patch) | |
tree | f4b1595a311757502b93530d3d88edd1839070fe /include/vcl | |
parent | 8d84d3800065b0c2d25479b84575da6906c035fc (diff) |
support attempting to set a background color for widgets
but try to discourage use of random colors
Change-Id: Iedd4dad7c039fbc4c5793f21e8ef3414ff0d4c96
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101944
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/weld.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx index 34234f05ed4e..9d68d839f641 100644 --- a/include/vcl/weld.hxx +++ b/include/vcl/weld.hxx @@ -264,6 +264,9 @@ public: virtual void set_title_background() = 0; //make this widget suitable for use in a toolbar virtual void set_toolbar_background() = 0; + //trying to use a custom color for a background is generally a bad idea. If your need + //fits one of the above categories then that's a somewhat better choice + virtual void set_background(const Color& rBackColor) = 0; virtual css::uno::Reference<css::datatransfer::dnd::XDropTarget> get_drop_target() = 0; |