开发者

How to catch GTK focus state in gtkrc?

开发者 https://www.devze.com 2023-01-21 12:51 出处:网络
GTK+ 2.x has the follow states: NORMAL, PRELIGHT, ACTIVE, INSENSITIVE, SELECTED for use in GTK themes and I can do things like...

GTK+ 2.x has the follow states: NORMAL, PRELIGHT, ACTIVE, INSENSITIVE, SELECTED for use in GTK themes and I can do things like...

bg[NORMAL] = "#f6f6f6"

.. to change background color when in NORMAL state.

Also, I can change the background image o开发者_如何转开发f a button (when the mouse is over it) by changing the PRELIGHT state image.

But I was not able to find a way to change the button background when the user cycle the focus using the TAB arrow (ie. when a dashed rectangle appears around the button). I want to do this using themes in gtkrc, is this possible ?


I don't think so. The RC file documentation doesn't even mention "focus", so I don't think it's possible to theme that in this way.

0

精彩评论

暂无评论...
验证码 换一张
取 消