-
Notifications
You must be signed in to change notification settings - Fork 356
Add clickable menu #1436
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
base: master
Are you sure you want to change the base?
Add clickable menu #1436
Conversation
fbc180d
to
bbf6888
Compare
hello. I like your idea and I also wanted to implement the buttons. I tried your branch and noticed some problems with the text alignment I think the best way would be to either specify a maximum amount of buttons allowed (then dmenu is used for extra action) or to wrap the buttons to a newline. squeezing all actions in a single line is impossible when there are a lot after all |
3f14999
to
ce35eed
Compare
ce35eed
to
e5fa05e
Compare
Implement menu structure and related functions, preparing for clickable menu feature. Add new menus array to preserve current actions. Signed-off-by: LI Qingwu <[email protected]>
Introduce built-in menu settings in dunstrc. Add corresponding settings in settings.h. Update settings_data.h with new menu-related options. Preparing for built-in clickable menu. Signed-off-by: LI Qingwu <[email protected]>
Add menu button drawing function. Update layout calculations for menu height. Integrate menu rendering into notification display. Signed-off-by: LI Qingwu <[email protected]>
Add function to handle built-in menu clicks. Trigger action invocation on menu button click. Signed-off-by: LI Qingwu <[email protected]>
Add menu_free_array call in notification_invalidate_actions, ensure proper cleanup of menu resources when invalidating actions Signed-off-by: LI Qingwu <[email protected]>
e5fa05e
to
595eb48
Compare
- Revise fixed value with settings.width.max in built-in menu. - Revise 'h_padding' parameter to align with the offical definition ub built-in menu. Signed-off-by: gujie <[email protected]>
Signed-off-by: gujie <[email protected]>
Signed-off-by: gujie <[email protected]>
Add menu related function to prepare key navigation feature. Signed-off-by: gujie <[email protected]>
We revised the settings parameter in the built-in menu and added support for a rounded corner menu in the built-in menu two commits ago. |
I will try the new changes 👍 |
Introduce built-in menu keybaord settings in dunstrc. Signed-off-by: gujie <[email protected]>
Signed-off-by: gujie <[email protected]>
Signed-off-by: gujie <[email protected]>
Add function to handle built-in menu key navigation. Signed-off-by: gujie <[email protected]>
The design now utilizes an inverted display when the key is in focus, with the first key being in focus when the menu appears. Signed-off-by: gujie <[email protected]>
Now we add key navigation inside of notification:
Tested it in Wayland, hope this makes the built-in menu more user-friendly. |
Hello fellow geeks,
I tring to implemented a built-in clickable menu feature,
Tested with wayland,