bbidulock / icewm

A window manager designed for speed, usability, and consistency
Other
596 stars 99 forks source link

Add visual effect when user click ybutton. #785

Closed lo2net closed 2 months ago

lo2net commented 2 months ago

When user click on ybutton, with different look settings(lookMetal/lookGtk/lookFlat etc.), user may or may not seen virtual effect indicating that click action, it's not intuitive, so I add this simple snippet code for that.

gijsbers commented 2 months ago

It is not clear from your description which buttons you want to change and which you don't. At least the workspace button behavior cannot be changed in this way.

lo2net commented 2 months ago

This will effect all YButton usage on taskbar, like fApplications, fWinList, fShowDesktop etc. see this comparison: before: before after: after

I'm using theme: Theme="Araita-Dark+/Srmx.theme" which is lookFlat: Look=flat But, IMHO, whichever theme used, there should have some visual effect indicating that user had clicked any buttons.

gijsbers commented 2 months ago

Look flat is flat. There are several button types which do have clear visual behavioral effects when pressed. This is a quick hack with insufficient investigational analysis.

lo2net commented 2 months ago

I'm not sure flat means can't have any visual effects, also I'm not sure that I've click these buttons...... At least, this is not friendly to user interface, we need improving that if not in this PR.

lo2net commented 2 months ago

@gijsbers