How to add a custom item to the toolbar? #10616
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hi @alanmoyano! I'm Dosu and I’m helping the desktop team. Zen Browser supports a customizable toolbar where users can drag and drop items like History, Print, and Developer tools into the toolbar or overflow menu, managed through a UI customization interface. However, there isn't direct documentation or code references available about how to add a new custom item to this menu or where the relevant logic lives in the codebase. For projects like this, toolbar items are usually defined as UI components or modules, often found in folders named If you're new to the codebase, start from the main UI entry point or app shell, look for code comments, and check for any README files in UI-related folders. Iteratively exploring and experimenting—such as by tracing how a known toolbar item is added—can help you understand the structure and process for adding your own custom item. For more context on how the toolbar customization works and some of the issues users have encountered, you can check out this discussion and this issue. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
@mr-cheffy sorry for pinging. I got a basic idea of what I need to do but don't know how to achieve it. So if you have the chance to review it, it would be really nice. Thanks! I basically want to create a new button in the toolbar for toggling compact mode, but since Zen doesn't have any 'custom' widget I cannot find any reference of how to create one, and I'm having trouble building the browser in my mac (related issue) ![]() If there's any advice you can give me, I highly appreciate it! Thanks again. |
Beta Was this translation helpful? Give feedback.
I was thinking of doing this myself for the next release, I was wondering if I could tackle this one if you don't mind