[PATCH] GTK theming: tab prelight
Ruslan Kabatsayev
b7.10110111 at gmail.com
Sun May 27 12:22:16 PDT 2012
Hello,
It seems it won't hurt if GTK themes could do some way of prelighting
of inactive tabs on mouse hover. Although GTK doesn't support tab
prelighting, we may be able to pass GTK_STATE_PRELIGHT instead of
usual GTK_STATE_ACTIVE for inactive tabs.
This has a side effect though: some themes which don't support
GTK_STATE_PRELIGHT, render the tabs as active, but smaller in size.
Though it isn't quite correct from POV of those themes, it still gives
the user feedback that the tab is "alive" and clickable. Other themes,
which will be aware of this behavior, will render nice prelit tabs (I
plan to implement this in oxygen-gtk).
So, I'm attaching a patch which will do what's described above.
Another approach would be setting GObject data which would tell the
theme that tab is prelit. In this case no theme will render inactive
tabs as active, but prelight will only work with those themes which
are aware of this GObject data.
Regards,
Ruslan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-GTK-theming-pass-tab-prelight-state-to-theme-on-CTRL.patch
Type: application/octet-stream
Size: 1310 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120527/783ec1fb/attachment.obj>
More information about the LibreOffice
mailing list