Skip to content

Comments

add an option "flat_button" which acts in a similar way to the same option in xfce-panel's tasklist plugin#95

Closed
jpleau wants to merge 1 commit intogottcode:masterfrom
jpleau:flatbutton
Closed

add an option "flat_button" which acts in a similar way to the same option in xfce-panel's tasklist plugin#95
jpleau wants to merge 1 commit intogottcode:masterfrom
jpleau:flatbutton

Conversation

@jpleau
Copy link

@jpleau jpleau commented Jun 24, 2014

The single reason why I needed this was I was trying to theme the button that whiskermenu adds to the panel.

I was trying to add a transparent png with the pixmap engine, and thus needed to theme "state = NORMAL", however it was hard-coded as GTK_RELIEF_NONE. Rather than just changing the value manually in the code, I added a single checkbox next to the Display options for the icon.

Checking it sets the button's relief to GTK_RELIEF_NONE (by default, and that's the current setting)
Unchecking it sets the button's relief to GTK_RELIEF_NORMAL

@gottcode
Copy link
Owner

I'm sorry, I will not be merging this. However, I have added a widget name for the panel button itself ("whiskermenu-button") with commit 1caf5fb; you should now be able to theme the git verion's panel button however you like.

@gottcode gottcode closed this Jun 25, 2014
@jpleau
Copy link
Author

jpleau commented Jun 25, 2014

This option does not allow me to theme the button, as it does not draw my background (with pixmap engine) when the button's state is NORMAL (because of GTK_RELIEF_NONE)

I'm fine with you not merging since it's not an option that a lot of people would use, thanks for the quick reply.

gottcode added a commit that referenced this pull request Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants