feat(menu): Adds Menu widget with popup functionality#521
feat(menu): Adds Menu widget with popup functionality#521SavedByGrace251 wants to merge 2 commits intoamnweb:mainfrom
Conversation
Introduces a new Menu widget that allows users to display a customizable menu with items in a popup window. The menu can be configured with a label, icon, menu items, and various styling options such as blur, alignment, and animations. It enables users to launch applications or execute commands directly from the bar.
Addresses potential errors by checking for None values before applying shadows and styles to the menu widget. This prevents crashes when shadow configurations or styles are not defined. Also, clarifies type hints for menu items and shadow attributes to improve code readability.
|
Thanks for contributing! Since we already have a very similar widget Applications, I don’t think we need another one. But since your idea sounds good to me, maybe instead of creating a new widget, it would be better to extend the existing one with popup window support? There’s already a defined app list, so we can reuse it for the popup if it’s enabled. However, this is a very old widget, and some parts need to be updated, especially the section where we run apps and also I think we can remove yasb/src/core/utils/widgets/taskbar/pin_manager.py Lines 641 to 683 in 65f1fd8 |
|
Oh I didn't even think about extending the applications widget. I'll take a look at extending it and report back! |
Just make sure you don’t break the current users’ configurations if you decide to work on this widget, many themes still use it. |
|
Totally, my thought is a new optional param |
Introduces a new Menu widget that allows users to display a customizable menu with items in a popup window.
The menu can be configured with a label, icon, menu items, and various styling options such as blur, alignment, and animations.
It enables users to launch applications or execute commands directly from the bar.