Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make tool tips indicate the action that a click will acheive #3539

Open
Lonniebiz opened this issue Dec 29, 2021 · 1 comment
Open

Make tool tips indicate the action that a click will acheive #3539

Lonniebiz opened this issue Dec 29, 2021 · 1 comment

Comments

@Lonniebiz
Copy link

Lonniebiz commented Dec 29, 2021

The tool tips that display, upon hovering over a window's title-bar-buttons, would be more helpful to newcomers if the text shown was based on the current state of that toggle button.

For example, if a window is maximized, the tool tip could say "unmaximize", and if the window is not maximized it could say "maximize". Similar state-based tool-tips could be applied to all title-bar-buttons, instead of just statically displaying the same text across all states.

I realize that the icons themselves change based on state, but as a new user (who is unfamiliar with these pictorial states), I would appreciate tool tips that are more dynamically informative and less static. I understand that a lot of advanced users remove these title bars completely. So, it would be nice if their behavior catered more to newcomers.

awesome v4.3 (Too long)
• Compiled against Lua 5.3.3 (running with Lua 5.3)
• D-Bus support: ✔
• execinfo support: ✔
• xcb-randr version: 1.6
• LGI version: 0.9.2

@Aire-One
Copy link
Member

Aire-One commented Dec 30, 2021

Hello,

That's actually a "nice to have" improvement!

The titlebar buttons builder function already sets default tooltips with the button name :

if titlebar.enable_tooltip then
ret._private.tooltip = atooltip({ objects = {ret}, delay_show = 1 })
ret._private.tooltip:set_text(name)
end

I think it shouldn't be too hard to update the text based on the "active" status in this update function. This would be do-able by new contributors 😉

raven2cz added a commit to raven2cz/awesome that referenced this issue Jul 5, 2022
raven2cz added a commit to raven2cz/awesome that referenced this issue Jul 6, 2022
raven2cz added a commit to raven2cz/awesome that referenced this issue Sep 3, 2022
raven2cz added a commit to raven2cz/awesome that referenced this issue Sep 3, 2022
raven2cz added a commit to raven2cz/awesome that referenced this issue Sep 3, 2022
Elv13 pushed a commit that referenced this issue Sep 3, 2022
…3657)

* #3539: Make tool tips indicate the action that a click will achieve.
actionless pushed a commit to actionless/awesome that referenced this issue May 6, 2023
…acheive (awesomeWM#3657)

* awesomeWM#3539: Make tool tips indicate the action that a click will achieve.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants