Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


Hello,

I'm trying to make statusbar items render correct window background
under themselves, i.e. the background specified by theme.
Attached is the experimental patch which I'd like to hear some
comments on, namely:
1. How could I avoid ignoring bOffScreen, i.e. how to render native
control (CTRL_WINDOW_BACKGROUND) on VirtualDevice? The problem with
ignoring bOffScreen is that e.g. when you move zoom slider, it
flickers because of repaint of window bg and the widget itself
directly on the Window. And at the same time, VirtualDevice itself
doesn't seem to support native control.
2. For the future (there're still plenty of widgets which don't render
their background correctly), maybe it's a good idea to add a new
method to class Window, which will render native themed background in
the rectangle specified if that's supported by theming backend, and
fill the rect with background color if no native bg is supported?

The images attached show how the status bar looks (with test bg image)
before and after the patch, so that the difference could be easily
spotted.

Regards,
Ruslan

Attachment: statusbar-bg.patch
Description: Binary data

Attachment: after patch.png
Description: PNG image

Attachment: before patch.png
Description: PNG image


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.