mirror of
https://github.com/zed-industries/zed.git
synced 2026-12-04 07:33:21 +01:00
title_bar: Add an option to open menus on hover (#48496)
Closes #45603 I wanted to open this and start a conversation/get some feedback after encouragement from people in the above discussion. Currently, the enabled `show_menus` setting causes them to open when hovered over, which generally breaks with a longstanding user expectation for desktop applications. It could be argued that this behavior shouldn't exist at all, but it's of course possible that some people prefer it. To that point, I explored adding an additional option, `show_menus_on_hover`, which is disabled by default. This also checks as to whether any menu is in use so that clicking a menu and then navigating through them opens them accordingly. As mentioned in the discussion, this doesn't address an existing bug where some of the pane icons will blink while moving through the menus. I'm unsure of how this specifically can or should be tested since I'm learning as I go, so for now there's just screenshots from the aforementioned discussion. I'm open to suggestions. As I'm sure some might guess, these changes don't really apply to macOS as the menus are always visible. I also do not have access to a Windows installation at this point. (Tested in Arch Linux / KDE Plasma 6.5.5; ran the release build to take clips)   <img width="1380" height="752" alt="setting" src="https://github.com/user-attachments/assets/7a3614ae-d5fd-4767-9ca4-330c91e40bcc" /> Release Notes: - Changed title-bar menus to require a click before opening. Enable `title_bar.open_menus_on_hover` to open them on hover instead. --------- Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
This commit is contained in:
1 parent
3794e5e979
commit
8a4fd5704c
7 files changed
+48
-10
No files matched your search
@@ -136,14 +136,15 @@ To disable this behavior use:
|
||||
// Control which items are shown/hidden in the title bar
|
||||
"title_bar": {
|
||||
"show_branch_status_icon": false, // Show git status on branch icon
|
||||
"show_branch_name": true, // Show/hide branch name
|
||||
"show_worktree_name": true, // Show/hide worktree name
|
||||
"show_project_items": true, // Show/hide project host and name
|
||||
"show_onboarding_banner": true, // Show/hide onboarding banners
|
||||
"show_user_picture": true, // Show/hide user avatar
|
||||
"show_user_menu": true, // Show/hide app user button
|
||||
"show_sign_in": true, // Show/hide sign-in button
|
||||
"show_menus": false // Show/hide menus
|
||||
"show_branch_name": true, // Show/hide branch name
|
||||
"show_worktree_name": true, // Show/hide worktree name
|
||||
"show_project_items": true, // Show/hide project host and name
|
||||
"show_onboarding_banner": true, // Show/hide onboarding banners
|
||||
"show_user_picture": true, // Show/hide user avatar
|
||||
"show_user_menu": true, // Show/hide app user button
|
||||
"show_sign_in": true, // Show/hide sign-in button
|
||||
"show_menus": false, // Show/hide menus
|
||||
"open_menus_on_hover": false // Automatically open menus on hover
|
||||
},
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user