Skip to content

Golden Gate: меню приложения по правому клику в Spotlight (Открыть, действия, Оставить в Dock) / Spotlight: an app's menu on a right click - #144

Closed
Alastor1991 wants to merge 3 commits into
MixaDoDs:mainfrom
Alastor1991:spotlight-app-menu

Conversation

@Alastor1991

Copy link
Copy Markdown
Contributor

Зачем

Оставить приложение в Dock можно было только из самого Dock (меню запущенной программы) или из Настроек → Dock. Из общего списка приложений закрепить его было нельзя.

Что добавлено

Правый клик по приложению в Spotlight, в сетке «Приложения» и в результатах поиска, открывает его меню, как у Dock:

  • Открыть;
  • действия программы из её .desktop (новое окно, приватное окно и т. п.);
  • Оставить в Dock, с галочкой. Это та же MacDockModel.setKept и те же id, что в меню Dock.

Как сделано

  • Меню – MacMenuView, нарисованный внутри Spotlight, поэтому он никогда не оказывается под его окном.
  • На стекле панели результатов стеклянное меню не читалось. Поэтому оно сплошное (GoldenGate.contentBg), а панель под ним слегка темнеет. У MacMenuView появилось свойство fill, по умолчанию glassFill, так что остальные меню не изменились. StartOverlay размывает фон и под этим меню.
  • Закрывается по Esc, клику мимо, вводу текста и смене раздела.

Проверено

На живом шелле (niri 26.04, angel-niri ce52b4a8, светлая тема): сетка и результаты, закрепление и снятие. scripts/qml-check.sh: 710 файлов, 0 ошибок.

EN

Apps could be kept in the Dock only from the Dock itself or from Settings → Dock. A right click on an app in Spotlight (the Apps grid or the results) now opens its menu, as the Dock's: Open, the app's own .desktop actions, Keep in Dock (a check; MacDockModel.setKept, the same ids as the Dock menu).

The menu is a MacMenuView drawn inside Spotlight, so it is never under its window. Over the results panel's glass a glass menu couldn't be read: it is solid (GoldenGate.contentBg; MacMenuView takes a fill now, glassFill by default) and the panel dims a little under it; StartOverlay blurs under it too. Esc, a click beside it, typing or another mode close it. Tested on a live shell (light theme); qml-check 710 files / 0 errors.

🤖 Generated with Claude Code

Alastor1991 and others added 3 commits November 1, 2026 15:51
…ons, Keep in Dock)

Apps could be kept in the Dock only from the Dock itself (a running app's menu)
or from Settings → Dock. A right click on an app in Spotlight, in the Apps grid
or among the results, now opens its menu, as the Dock's: Open, the app's own
.desktop actions, Keep in Dock (a check, MacDockModel.setKept, the same ids).

The menu is a MacMenuView drawn inside Spotlight, so it is never under its
window. Over the results panel's glass a glass menu couldn't be read, so it is
solid (GoldenGate.contentBg; MacMenuView takes a `fill` now, glassFill by
default) and the panel dims a little under it; StartOverlay blurs under it too.
Esc, a click beside it, typing or another mode close it.

Checked on a live shell (light theme, the grid and the results); qml-check:
710 files, 0 errors.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From a review of this PR: the .desktop actions and «Keep in Dock» were copied from the
Dock's menu (MacDockModel.menuFor). Both menus now take them from MacDockModel
(actionItems, keepItem). The two rows' click lambdas are one function, clickRow.

qml-check: 710 files, 0 errors.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rder note)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MixaDoDs

MixaDoDs commented Nov 5, 2026

Copy link
Copy Markdown
Owner

Вошло в angelOS вместе с остальными PR этой пачки — main 0821398 (обновление 05.11). Спасибо! / Shipped in main 0821398 (the 05.11 update). Thanks!

@MixaDoDs MixaDoDs closed this Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants