mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-18 23:31:18 +00:00
Merge pull request #8257 from dotCooCoo/feat/palette-home-callout
Command Palette: the highlighted result points to where it lives
This commit is contained in:
@@ -1121,6 +1121,7 @@ pub(crate) fn show(app: &mut VectorcraftApp, ctx: &egui::Context) {
|
||||
ui.add_space((middle - BUTTON / 2.0 * row.len() as f32 - ui.cursor().min.x).max(0.0));
|
||||
for &(s, slot) in row {
|
||||
let Some((rect, shown)) = slot_button(ui, &t, &press, slot, &mut actions) else { continue };
|
||||
crate::palette::note_spot(ui, rect, || crate::palette::SpotAt::Slot(Some(bar.name.clone()), slot.clone()));
|
||||
if edit_this {
|
||||
buttons.push((s, rect));
|
||||
}
|
||||
|
||||
@@ -3365,6 +3365,9 @@ digits Malayalam Малаялам
|
||||
No menu item Няма елемент в менюто
|
||||
Toolbar Лента с инструменти
|
||||
{toolbar}, in the {tool} group {toolbar}, в групата на {tool}
|
||||
In the menu bar: {path} В лентата с менюта: {path}
|
||||
In the {group} group: press and hold to open it В групата {group}: натиснете и задръжте, за да я отворите
|
||||
{home}, not shown now {home}, не се показва сега
|
||||
@plural {n} result|{n} results {n} резултат|{n} резултата
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {shown} от {n} резултат. Продължете да пишете, за да ги стесните.|{shown} от {n} резултата. Продължете да пишете, за да ги стесните.
|
||||
Recent Commands Последни команди
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -4484,6 +4484,9 @@ font-technology Variable Varijabilni
|
||||
No menu item Nema stavke menija
|
||||
Toolbar Traka s alatima
|
||||
{toolbar}, in the {tool} group {toolbar}, u grupi {tool}
|
||||
In the menu bar: {path} Na traci menija: {path}
|
||||
In the {group} group: press and hold to open it U grupi {group}: pritisnite i držite da je otvorite
|
||||
{home}, not shown now {home}, trenutno nije prikazano
|
||||
@plural {n} result|{n} results {n} rezultat|{n} rezultata|{n} rezultata
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {shown} od {n} rezultata. Nastavite kucati da ih suzite.|{shown} od {n} rezultata. Nastavite kucati da ih suzite.|{shown} od {n} rezultata. Nastavite kucati da ih suzite.
|
||||
Recent Commands Nedavne naredbe
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -4308,6 +4308,9 @@ digits Malayalam Malaiàlam
|
||||
No menu item Cap element de menú
|
||||
Toolbar Barra d’eines
|
||||
{toolbar}, in the {tool} group {toolbar}, al grup {tool}
|
||||
In the menu bar: {path} A la barra de menús: {path}
|
||||
In the {group} group: press and hold to open it Al grup {group}: manteniu premut per obrir-lo
|
||||
{home}, not shown now {home}, ara no es mostra
|
||||
@plural {n} result|{n} results {n} resultat|{n} resultats
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {shown} de {n} resultat. Continueu escrivint per reduir-los.|{shown} de {n} resultats. Continueu escrivint per reduir-los.
|
||||
Recent Commands Ordres recents
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -4592,6 +4592,9 @@ font-technology Variable Variabilní
|
||||
No menu item Žádná položka nabídky
|
||||
Toolbar Panel nástrojů
|
||||
{toolbar}, in the {tool} group {toolbar}, ve skupině {tool}
|
||||
In the menu bar: {path} V řádku nabídek: {path}
|
||||
In the {group} group: press and hold to open it Ve skupině {group}: stisknutím a podržením ji otevřete
|
||||
{home}, not shown now {home}, nyní není zobrazeno
|
||||
@plural {n} result|{n} results {n} výsledek|{n} výsledky|{n} výsledků
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {shown} z {n} výsledku. Pište dál a výsledky se zúží.|{shown} z {n} výsledků. Pište dál a výsledky se zúží.|{shown} z {n} výsledků. Pište dál a výsledky se zúží.
|
||||
Recent Commands Nedávné příkazy
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7016,6 +7016,9 @@ font-technology Variable Variable
|
||||
No menu item Intet menupunkt
|
||||
Toolbar Værktøjslinje
|
||||
{toolbar}, in the {tool} group {toolbar}, i gruppen {tool}
|
||||
In the menu bar: {path} I menulinjen: {path}
|
||||
In the {group} group: press and hold to open it I gruppen {group}: tryk og hold for at åbne den
|
||||
{home}, not shown now {home}, vises ikke nu
|
||||
@plural {n} result|{n} results {n} resultat|{n} resultater
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {shown} af {n} resultat. Skriv videre for at indsnævre dem.|{shown} af {n} resultater. Skriv videre for at indsnævre dem.
|
||||
Recent Commands Seneste kommandoer
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3443,6 +3443,9 @@ digits Malayalam Malayalam
|
||||
No menu item Kein Menüeintrag
|
||||
Toolbar Werkzeugleiste
|
||||
{toolbar}, in the {tool} group {toolbar}, in der Gruppe „{tool}“
|
||||
In the menu bar: {path} In der Menüleiste: {path}
|
||||
In the {group} group: press and hold to open it In der Gruppe {group}: zum Öffnen gedrückt halten
|
||||
{home}, not shown now {home}, derzeit nicht angezeigt
|
||||
Tool Werkzeug
|
||||
Command Befehl
|
||||
@plural {n} result|{n} results {n} Ergebnis|{n} Ergebnisse
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -4184,6 +4184,9 @@ digits Malayalam Μαλαγιάλαμ
|
||||
No menu item Χωρίς στοιχείο μενού
|
||||
Toolbar Γραμμή εργαλείων
|
||||
{toolbar}, in the {tool} group {toolbar}, στην ομάδα {tool}
|
||||
In the menu bar: {path} Στη γραμμή μενού: {path}
|
||||
In the {group} group: press and hold to open it Στην ομάδα {group}: πατήστε παρατεταμένα για να ανοίξει
|
||||
{home}, not shown now {home}, δεν εμφανίζεται τώρα
|
||||
@plural {n} result|{n} results {n} αποτέλεσμα|{n} αποτελέσματα
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {shown} από {n} αποτέλεσμα. Συνεχίστε να πληκτρολογείτε για να τα περιορίσετε.|{shown} από {n} αποτελέσματα. Συνεχίστε να πληκτρολογείτε για να τα περιορίσετε.
|
||||
Recent Commands Πρόσφατες εντολές
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3478,6 +3478,9 @@ digits Malayalam Malayálam
|
||||
No menu item Sin elemento de menú
|
||||
Toolbar Barra de herramientas
|
||||
{toolbar}, in the {tool} group {toolbar}, en el grupo {tool}
|
||||
In the menu bar: {path} En la barra de menús: {path}
|
||||
In the {group} group: press and hold to open it En el grupo {group}: mantén pulsado para abrirlo
|
||||
{home}, not shown now {home}, no se muestra ahora
|
||||
@plural {n} result|{n} results {n} resultado|{n} resultados
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {shown} de {n} resultado. Sigue escribiendo para acotarlos.|{shown} de {n} resultados. Sigue escribiendo para acotarlos.
|
||||
Recent Commands Comandos recientes
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -4507,6 +4507,9 @@ font-technology Variable Muuttuvat
|
||||
No menu item Ei valikkokohdetta
|
||||
Toolbar Työkalurivi
|
||||
{toolbar}, in the {tool} group {toolbar}, ryhmässä {tool}
|
||||
In the menu bar: {path} Valikkorivillä: {path}
|
||||
In the {group} group: press and hold to open it Ryhmässä {group}: avaa painamalla pitkään
|
||||
{home}, not shown now {home}, ei näkyvissä nyt
|
||||
@plural {n} result|{n} results {n} tulos|{n} tulosta
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {shown}/{n} tulosta. Kirjoita lisää rajataksesi tuloksia.|{shown}/{n} tulosta. Kirjoita lisää rajataksesi tuloksia.
|
||||
Recent Commands Viimeisimmät komennot
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -3466,6 +3466,9 @@ digits Malayalam Malayalam
|
||||
No menu item Aucun élément de menu
|
||||
Toolbar Barre d’outils
|
||||
{toolbar}, in the {tool} group {toolbar}, dans le groupe {tool}
|
||||
In the menu bar: {path} Dans la barre des menus, sous {path}
|
||||
In the {group} group: press and hold to open it Dans le groupe {group}, maintenez enfoncé pour l’ouvrir
|
||||
{home}, not shown now {home}, non affiché pour l’instant
|
||||
@plural {n} result|{n} results {n} résultat|{n} résultats
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {shown} sur {n} résultat. Continuez à taper pour les affiner.|{shown} sur {n} résultats. Continuez à taper pour les affiner.
|
||||
Recent Commands Commandes récentes
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3576,6 +3576,9 @@
|
||||
No menu item કોઈ મેનૂ આઇટમ નથી
|
||||
Toolbar ટૂલબાર
|
||||
{toolbar}, in the {tool} group {toolbar}, {tool} જૂથમાં
|
||||
In the menu bar: {path} મેનૂ બારમાં: {path}
|
||||
In the {group} group: press and hold to open it {group} જૂથમાં: ખોલવા માટે દબાવીને પકડી રાખો
|
||||
{home}, not shown now {home}, હમણાં બતાવેલ નથી
|
||||
Tool ટૂલ
|
||||
Command કમાન્ડ
|
||||
Panel પેનલ
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 72 and column 5.
|
@@ -4660,6 +4660,9 @@ antiAlias Sharp शार्प
|
||||
No menu item कोई मेनू आइटम नहीं
|
||||
Toolbar टूलबार
|
||||
{toolbar}, in the {tool} group {toolbar}, {tool} समूह में
|
||||
In the menu bar: {path} मेनू बार में: {path}
|
||||
In the {group} group: press and hold to open it {group} समूह में: खोलने के लिए दबाकर रखें
|
||||
{home}, not shown now {home}, अभी नहीं दिखाया गया
|
||||
@plural {n} result|{n} results {n} परिणाम|{n} परिणाम
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {n} में से {shown} परिणाम। इन्हें सीमित करने के लिए लिखते रहें।|{n} में से {shown} परिणाम। इन्हें सीमित करने के लिए लिखते रहें।
|
||||
Recent Commands हाल के आदेश
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -4101,6 +4101,9 @@ mark-style Japanese Japán
|
||||
No menu item Nincs menüpont
|
||||
Toolbar Eszköztár
|
||||
{toolbar}, in the {tool} group {toolbar}, a(z) {tool} csoportjában
|
||||
In the menu bar: {path} A menüsorban: {path}
|
||||
In the {group} group: press and hold to open it A(z) {group} csoportban: a megnyitáshoz nyomja le és tartsa lenyomva
|
||||
{home}, not shown now {home}, most nem látható
|
||||
@plural {n} result|{n} results {n} találat
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {n} találatból {shown} látható. Gépeljen tovább a szűkítéshez.
|
||||
Recent Commands Legutóbbi parancsok
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -4232,6 +4232,9 @@ font-technology Variable Variabel
|
||||
No menu item Tidak ada item menu
|
||||
Toolbar Bilah alat
|
||||
{toolbar}, in the {tool} group {toolbar}, dalam grup {tool}
|
||||
In the menu bar: {path} Di bilah menu: {path}
|
||||
In the {group} group: press and hold to open it Di grup {group}: tekan dan tahan untuk membukanya
|
||||
{home}, not shown now {home}, tidak ditampilkan sekarang
|
||||
@plural {n} result|{n} results {n} hasil
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {shown} dari {n} hasil. Terus ketik untuk mempersempitnya.
|
||||
Recent Commands Perintah terbaru
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2538 and column 5.
|
@@ -3528,6 +3528,9 @@ digits Malayalam Malayalam
|
||||
No menu item Nessuna voce di menu
|
||||
Toolbar Barra degli strumenti
|
||||
{toolbar}, in the {tool} group {toolbar}, nel gruppo {tool}
|
||||
In the menu bar: {path} Nella barra dei menu: {path}
|
||||
In the {group} group: press and hold to open it Nel gruppo {group}: tieni premuto per aprirlo
|
||||
{home}, not shown now {home}, ora non visibile
|
||||
Tool Strumento
|
||||
Command Comando
|
||||
@plural {n} result|{n} results {n} risultato|{n} risultati
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3413,6 +3413,9 @@ mark-style Japanese 日本式
|
||||
No menu item メニュー項目なし
|
||||
Toolbar ツールバー
|
||||
{toolbar}, in the {tool} group {toolbar}、{tool} のグループ内
|
||||
In the menu bar: {path} メニューバー: {path}
|
||||
In the {group} group: press and hold to open it {group} のグループ内: 長押しで開きます
|
||||
{home}, not shown now {home}、現在は表示されていません
|
||||
@plural {n} result|{n} results {n} 件
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {n} 件中 {shown} 件。続けて入力すると絞り込めます。
|
||||
Recent Commands 最近使ったコマンド
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -6303,6 +6303,9 @@ font-technology Variable ცვლადი
|
||||
No menu item მენიუს ელემენტი არ არის
|
||||
Toolbar ხელსაწყოთა ზოლი
|
||||
{toolbar}, in the {tool} group {toolbar}, ჯგუფში {tool}
|
||||
In the menu bar: {path} მენიუს ზოლში: {path}
|
||||
In the {group} group: press and hold to open it ჯგუფში {group}: გასახსნელად დააჭირეთ და გეჭიროთ
|
||||
{home}, not shown now {home}, ახლა არ ჩანს
|
||||
@plural {n} result|{n} results {n} შედეგი
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {n} შედეგიდან {shown}. გააგრძელეთ აკრეფა მათ შესამცირებლად.
|
||||
Recent Commands ბოლოდროინდელი ბრძანებები
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3402,6 +3402,9 @@ mark-style Japanese 일본식
|
||||
No menu item 메뉴 항목 없음
|
||||
Toolbar 도구 모음
|
||||
{toolbar}, in the {tool} group {toolbar}, {tool} 그룹
|
||||
In the menu bar: {path} 메뉴 막대: {path}
|
||||
In the {group} group: press and hold to open it {group} 그룹: 길게 눌러 여세요
|
||||
{home}, not shown now {home}, 지금 표시되지 않음
|
||||
Tool 도구
|
||||
Command 명령
|
||||
@plural {n} result|{n} results 결과 {n}개
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -4889,6 +4889,9 @@ font-technology Variable Variabel
|
||||
No menu item Geen menu-item
|
||||
Toolbar Gereedschapsbalk
|
||||
{toolbar}, in the {tool} group {toolbar}, in de groep {tool}
|
||||
In the menu bar: {path} In de menubalk: {path}
|
||||
In the {group} group: press and hold to open it In de groep {group}: ingedrukt houden om te openen
|
||||
{home}, not shown now {home}, nu niet zichtbaar
|
||||
@plural {n} result|{n} results {n} resultaat|{n} resultaten
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {shown} van {n} resultaat. Typ verder om ze te beperken.|{shown} van {n} resultaten. Typ verder om ze te beperken.
|
||||
Recent Commands Recente opdrachten
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -4435,6 +4435,9 @@ font-technology Variable Zmienne
|
||||
No menu item Brak pozycji menu
|
||||
Toolbar Pasek narzędzi
|
||||
{toolbar}, in the {tool} group {toolbar}, w grupie {tool}
|
||||
In the menu bar: {path} Na pasku menu: {path}
|
||||
In the {group} group: press and hold to open it W grupie {group}: naciśnij i przytrzymaj, aby ją otworzyć
|
||||
{home}, not shown now {home}, teraz niewidoczne
|
||||
@plural {n} result|{n} results {n} wynik|{n} wyniki|{n} wyników
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {shown} z {n} wyniku. Pisz dalej, aby je zawęzić.|{shown} z {n} wyników. Pisz dalej, aby je zawęzić.|{shown} z {n} wyników. Pisz dalej, aby je zawęzić.
|
||||
Recent Commands Ostatnie polecenia
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -2930,6 +2930,9 @@ digits Malayalam Malaiala
|
||||
No menu item Nenhum item de menu
|
||||
Toolbar Barra de Ferramentas
|
||||
{toolbar}, in the {tool} group {toolbar}, no grupo {tool}
|
||||
In the menu bar: {path} Na barra de menus: {path}
|
||||
In the {group} group: press and hold to open it No grupo {group}: mantenha pressionado para abri-lo
|
||||
{home}, not shown now {home}, não exibido agora
|
||||
@plural {n} result|{n} results {n} resultado|{n} resultados
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {shown} de {n} resultado. Continue digitando para filtrá-los.|{shown} de {n} resultados. Continue digitando para filtrá-los.
|
||||
Recent Commands Comandos recentes
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3510,6 +3510,9 @@ digits Malayalam Малаялам
|
||||
No menu item Нет пункта меню
|
||||
Toolbar Панель инструментов
|
||||
{toolbar}, in the {tool} group {toolbar}, в группе «{tool}»
|
||||
In the menu bar: {path} В строке меню: {path}
|
||||
In the {group} group: press and hold to open it В группе {group}: нажмите и удерживайте, чтобы открыть её
|
||||
{home}, not shown now {home}, сейчас не показано
|
||||
@plural {n} result|{n} results {n} результат|{n} результата|{n} результатов
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {shown} из {n} результата. Продолжайте вводить, чтобы сузить их.|{shown} из {n} результатов. Продолжайте вводить, чтобы сузить их.|{shown} из {n} результатов. Продолжайте вводить, чтобы сузить их.
|
||||
Recent Commands Недавние команды
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3390,6 +3390,9 @@ digits Malayalam Malayalam
|
||||
No menu item Inget menyalternativ
|
||||
Toolbar Verktygsfält
|
||||
{toolbar}, in the {tool} group {toolbar}, i gruppen {tool}
|
||||
In the menu bar: {path} I menyraden: {path}
|
||||
In the {group} group: press and hold to open it I gruppen {group}: tryck och håll ned för att öppna den
|
||||
{home}, not shown now {home}, visas inte nu
|
||||
@plural {n} result|{n} results {n} resultat|{n} resultat
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {shown} av {n} resultat. Fortsätt skriva för att begränsa dem.|{shown} av {n} resultat. Fortsätt skriva för att begränsa dem.
|
||||
Recent Commands Senaste kommandon
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3268,6 +3268,9 @@ digits Malayalam Malayalam
|
||||
No menu item Menü öğesi yok
|
||||
Toolbar Araç Çubuğu
|
||||
{toolbar}, in the {tool} group {toolbar}, {tool} grubunda
|
||||
In the menu bar: {path} Menü çubuğunda: {path}
|
||||
In the {group} group: press and hold to open it {group} grubunda: açmak için basılı tutun
|
||||
{home}, not shown now {home}, şu anda gösterilmiyor
|
||||
@plural {n} result|{n} results {n} sonuç
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. {n} sonuçtan {shown} tanesi. Daraltmak için yazmaya devam edin.
|
||||
Recent Commands Son komutlar
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3520,6 +3520,9 @@ digits Malayalam Малаялам
|
||||
No menu item Немає пункту меню
|
||||
Toolbar Панель інструментів
|
||||
{toolbar}, in the {tool} group {toolbar}, у групі «{tool}»
|
||||
In the menu bar: {path} У рядку меню: {path}
|
||||
In the {group} group: press and hold to open it У групі {group}: натисніть і утримуйте, щоб відкрити її
|
||||
{home}, not shown now {home}, зараз не показано
|
||||
Tool Інструмент
|
||||
Command Команда
|
||||
@plural {n} result|{n} results {n} результат|{n} результати|{n} результатів
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3866,6 +3866,9 @@ mark-style Japanese Kiểu Nhật
|
||||
No menu item Không có mục menu
|
||||
Toolbar Thanh công cụ
|
||||
{toolbar}, in the {tool} group {toolbar}, trong nhóm {tool}
|
||||
In the menu bar: {path} Trên thanh menu: {path}
|
||||
In the {group} group: press and hold to open it Trong nhóm {group}: nhấn giữ để mở
|
||||
{home}, not shown now {home}, hiện không hiển thị
|
||||
Tool Công cụ
|
||||
Command Lệnh
|
||||
@plural {n} result|{n} results {n} kết quả
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3345,6 +3345,9 @@ digits Malayalam 马拉雅拉姆数字
|
||||
No menu item 无菜单项
|
||||
Toolbar 工具栏
|
||||
{toolbar}, in the {tool} group {toolbar},位于 {tool} 组中
|
||||
In the menu bar: {path} 在菜单栏中:{path}
|
||||
In the {group} group: press and hold to open it 在“{group}”组中:按住即可打开
|
||||
{home}, not shown now {home},当前未显示
|
||||
@plural {n} result|{n} results {n} 个结果
|
||||
@plural {shown} of {n} result. Keep typing to narrow them.|{shown} of {n} results. Keep typing to narrow them. 共 {n} 个结果,显示 {shown} 个。继续输入以缩小范围。
|
||||
Recent Commands 最近使用的命令
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -4724,6 +4724,9 @@ digits Malayalam 馬來亞拉姆數字
|
||||
No menu item 無選單項目
|
||||
Toolbar 工具列
|
||||
{toolbar}, in the {tool} group {toolbar},位於 {tool} 群組中
|
||||
In the menu bar: {path} 在選單列中:{path}
|
||||
In the {group} group: press and hold to open it 在「{group}」群組中:按住即可開啟
|
||||
{home}, not shown now {home},目前未顯示
|
||||
Tool 工具
|
||||
Command 指令
|
||||
@plural {n} result|{n} results {n} 個結果
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -37,6 +37,7 @@ pub fn menu_bar(app: &mut VectorcraftApp, ui: &mut egui::Ui) -> f32 {
|
||||
for (title, items) in tree.iter() {
|
||||
let text = egui::RichText::new(tl!(title)).size(13.0).color(t.text);
|
||||
let resp = ui.add(egui::Button::new(text));
|
||||
crate::palette::note_spot(ui, resp.rect, || crate::palette::SpotAt::Menu((*title).to_string()));
|
||||
egui::Popup::menu(&resp).show(|ui| menu_body(app, ui, items, &mut clicked));
|
||||
if *title == "File" {
|
||||
file_open = egui::Popup::is_id_open(ui.ctx(), egui::Popup::default_response_id(&resp));
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -103,8 +103,12 @@ pub(crate) fn mark(app: &mut VectorcraftApp, ctx: &Context, layer: LayerId, clip
|
||||
l.drawn = true;
|
||||
ctx.request_repaint_after_secs(left as f32);
|
||||
let t = Tokens::get(ctx);
|
||||
let painter = ctx.layer_painter(layer).with_clip_rect(clip.intersect(ctx.content_rect()));
|
||||
painter.rect_stroke(rect.shrink(1.0), CornerRadius::same(6), Stroke::new(MARK_WIDTH, t.selection), StrokeKind::Inside);
|
||||
outline(&ctx.layer_painter(layer).with_clip_rect(clip.intersect(ctx.content_rect())), rect, t.selection);
|
||||
}
|
||||
|
||||
/// Outline `rect`, a control that a mark points at, with `painter` in `color`.
|
||||
pub(crate) fn outline(painter: &egui::Painter, rect: Rect, color: egui::Color32) {
|
||||
painter.rect_stroke(rect.shrink(1.0), CornerRadius::same(6), Stroke::new(MARK_WIDTH, color), StrokeKind::Inside);
|
||||
}
|
||||
|
||||
/// After the toolbars and panels have drawn: Escape ends the locate, also an Escape that closed the
|
||||
@@ -161,46 +165,76 @@ pub(crate) fn locate_tool(app: &mut VectorcraftApp, p: &Value) -> Result<Value,
|
||||
Some(_) => return Err(format!("`{key}` must be a string")),
|
||||
};
|
||||
let tool = vectorcraft_tools::tool_info(tool).ok_or_else(|| format!("unknown tool `{tool}`"))?.id;
|
||||
let found = match find(app, tool, false) {
|
||||
Ok(found) => found,
|
||||
Err(reason) => return Ok(unavailable(tool, reason)),
|
||||
};
|
||||
match found.target {
|
||||
Target::Tools => {
|
||||
app.ui.toolbar = true;
|
||||
start(app, tool, Target::Tools);
|
||||
Ok(json!({"tool": tool, "location": found.location, "toolbar": null}))
|
||||
}
|
||||
Target::Custom(name) => {
|
||||
start(app, tool, Target::Custom(name.clone()));
|
||||
Ok(json!({"tool": tool, "location": found.location, "toolbar": name}))
|
||||
}
|
||||
Target::AllTools => {
|
||||
app.run("window.editToolbar", json!({"open": true}))?;
|
||||
start(app, tool, Target::AllTools);
|
||||
Ok(json!({"tool": tool, "location": "allTools", "toolbar": null}))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Where a toolbar holds a tool: [`find`]'s answer.
|
||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||
pub(crate) struct Found {
|
||||
/// The control that shows the tool.
|
||||
pub target: Target,
|
||||
/// `toolbar` (its slot's button shows it), `flyout` (it is hidden in its slot's group),
|
||||
/// `strip` (its group is torn off into a strip) or `allTools`.
|
||||
pub location: &'static str,
|
||||
/// The tool the slot's button shows, for `toolbar` and `flyout`.
|
||||
pub shown: Option<&'static str>,
|
||||
}
|
||||
|
||||
/// Where `tool` is in the current layout, without showing or opening anything: the Tools panel's
|
||||
/// toolbar first, also while Window › Tools hides it, then the shown toolbars made with New
|
||||
/// Toolbar, else the All Tools drawer. With `shown_first`, a hidden Tools panel comes after the
|
||||
/// toolbars made with New Toolbar. An error names why no toolbar can show the tool now.
|
||||
pub(crate) fn find(app: &VectorcraftApp, tool: &'static str, shown_first: bool) -> Result<Found, &'static str> {
|
||||
if app.ui.screen_mode >= 3 {
|
||||
return Ok(unavailable(tool, "Presentation Mode hides the toolbars: change the screen mode to show them"));
|
||||
return Err("Presentation Mode hides the toolbars: change the screen mode to show them");
|
||||
}
|
||||
// Tab hides the toolbars made with New Toolbar until the next Tab, also once Window › Tools
|
||||
// shows the Tools panel again.
|
||||
let tab_hid = app.ui.tab_hid.is_some();
|
||||
if tab_hid && !app.ui.toolbar {
|
||||
return Ok(unavailable(tool, "Tab has hidden the toolbars: press Tab to show them"));
|
||||
return Err("Tab has hidden the toolbars: press Tab to show them");
|
||||
}
|
||||
if let Some(slot) = crate::toolbar::slots(app).into_iter().map(|(_, s)| s).find(|s| s.contains(&tool)) {
|
||||
let location = if slot.len() > 1 && crate::toolbar::is_floating(app, None, slot[0]) {
|
||||
"strip"
|
||||
} else if crate::toolbar::shown_tool(app, &slot) == tool {
|
||||
"toolbar"
|
||||
let main = crate::toolbar::slots(app).into_iter().map(|(_, s)| s).find(|s| s.contains(&tool)).map(|slot| {
|
||||
if slot.len() > 1 && crate::toolbar::is_floating(app, None, slot[0]) {
|
||||
Found { target: Target::Tools, location: "strip", shown: None }
|
||||
} else {
|
||||
"flyout"
|
||||
};
|
||||
app.ui.toolbar = true;
|
||||
start(app, tool, Target::Tools);
|
||||
return Ok(json!({"tool": tool, "location": location, "toolbar": null}));
|
||||
let shown = crate::toolbar::shown_tool(app, &slot);
|
||||
Found { target: Target::Tools, location: if shown == tool { "toolbar" } else { "flyout" }, shown: Some(shown) }
|
||||
}
|
||||
});
|
||||
if let Some(main) = main.clone().filter(|_| !shown_first || app.ui.toolbar) {
|
||||
return Ok(main);
|
||||
}
|
||||
let active = app.session.tool_id();
|
||||
let custom = app.ui.custom_toolbars.iter().filter(|b| b.shown && !tab_hid).find_map(|bar| {
|
||||
let slot = bar.slots.iter().find(|s| s.iter().any(|t| t == tool))?;
|
||||
let tools: Vec<&'static str> = slot.iter().filter_map(|id| vectorcraft_tools::tool_info(id).map(|t| t.id)).collect();
|
||||
let first = *tools.first()?;
|
||||
let location = if tools.len() > 1 && crate::toolbar::is_floating(app, Some(&bar.name), first) {
|
||||
"strip"
|
||||
} else if crate::custom_toolbars::shown_tool(bar, active, &tools) == Some(tool) {
|
||||
"toolbar"
|
||||
} else {
|
||||
"flyout"
|
||||
};
|
||||
Some((bar.name.clone(), location))
|
||||
let target = Target::Custom(bar.name.clone());
|
||||
if tools.len() > 1 && crate::toolbar::is_floating(app, Some(&bar.name), first) {
|
||||
return Some(Found { target, location: "strip", shown: None });
|
||||
}
|
||||
let shown = crate::custom_toolbars::shown_tool(bar, active, &tools);
|
||||
Some(Found { target, location: if shown == Some(tool) { "toolbar" } else { "flyout" }, shown })
|
||||
});
|
||||
if let Some((name, location)) = custom {
|
||||
start(app, tool, Target::Custom(name.clone()));
|
||||
return Ok(json!({"tool": tool, "location": location, "toolbar": name}));
|
||||
}
|
||||
app.run("window.editToolbar", json!({"open": true}))?;
|
||||
start(app, tool, Target::AllTools);
|
||||
Ok(json!({"tool": tool, "location": "allTools", "toolbar": null}))
|
||||
Ok(custom.or(main).unwrap_or(Found { target: Target::AllTools, location: "allTools", shown: None }))
|
||||
}
|
||||
|
||||
@@ -298,6 +298,7 @@ fn body(app: &mut VectorcraftApp, ui: &mut Ui, cols: usize, floating: Option<egu
|
||||
let Some(shown) = tool_info(shown_tool(app, slot)).or_else(|| tool_info(slot[0])) else { continue };
|
||||
let is_active = slot.contains(&active);
|
||||
let (rect, resp) = ui.allocate_exact_size(vec2(36.0, PITCH - 1.0), Sense::click_and_drag());
|
||||
crate::palette::note_spot(ui, rect, || crate::palette::SpotAt::Slot(None, slot.iter().map(|s| s.to_string()).collect()));
|
||||
let well = egui::Rect::from_center_size(rect.center(), vec2(30.0, 27.5));
|
||||
if is_active {
|
||||
ui.painter().rect_filled(well, CornerRadius::same(6), t.tool_active);
|
||||
@@ -835,7 +836,7 @@ fn flyout_body(
|
||||
ui.spacing_mut().item_spacing = vec2(0.0, 0.0);
|
||||
ui.horizontal(|ui| {
|
||||
let rows = if floating {
|
||||
ui.horizontal(|ui| tool_strip(ui, t, active, tools, locate))
|
||||
ui.horizontal(|ui| tool_strip(ui, t, active, tools, toolbar, locate))
|
||||
} else {
|
||||
// A group taller than the window scrolls its rows (inside the frame's 1 pt border). The
|
||||
// rows' height is given, since the row this sits in starts one widget tall.
|
||||
@@ -975,11 +976,19 @@ fn grab_id(toolbar: Option<&str>, key: &str) -> egui::Id {
|
||||
|
||||
/// One icon button per tool, the active one lit, with its name and shortcut on hover. Returns the
|
||||
/// tool clicked and the button of `locate`.
|
||||
fn tool_strip(ui: &mut Ui, t: &Tokens, active: &str, tools: &[String], locate: Option<&str>) -> (Option<&'static str>, Option<egui::Rect>) {
|
||||
fn tool_strip(
|
||||
ui: &mut Ui,
|
||||
t: &Tokens,
|
||||
active: &str,
|
||||
tools: &[String],
|
||||
toolbar: Option<&str>,
|
||||
locate: Option<&str>,
|
||||
) -> (Option<&'static str>, Option<egui::Rect>) {
|
||||
let mut chosen = None;
|
||||
let mut located = None;
|
||||
for tool in tools.iter().filter_map(|id| tool_info(id)) {
|
||||
let (r, resp) = ui.allocate_exact_size(STRIP_BUTTON, Sense::click());
|
||||
crate::palette::note_spot(ui, r, || crate::palette::SpotAt::Strip(toolbar.map(str::to_string), tool.id.to_string()));
|
||||
let well = r.shrink(1.0);
|
||||
if active == tool.id {
|
||||
ui.painter().rect_filled(well, CornerRadius::same(6), t.tool_active);
|
||||
|
||||
@@ -1463,6 +1463,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur
|
||||
A Command Palette query word also finds a result whose name or menu path holds a word with the same meaning: "remove bg" lists Remove Background… first, "outline text" lists Type › Create Outlines first, and "flip", "combine", "vectorize" and "colour" list Reflect…, Unite, an Image Trace command and the Color panel among the first 3 results. The words come from VectorCraft's own table of 21 groups of English words (`palette/words.rs`, at most 60 groups of at most 6 words); a word that is the whole label of another command, such as Merge or Mirror, is in no group, and neither is Insert. A word or its English base word that is in a group meets the other words of its group in labels and menu paths, and their base words, but not ids or word starts. A result whose label holds the word itself ranks above one whose label holds a word with the same meaning, which ranks above one whose menu path holds the word, so "type" now lists Scale Text Attributes above Type › Orientation › Vertical. A catalog may add a group's words in its language with a row in the `search` context (the group's English words joined by ", ", then that language's words), used while that language is the UI language; no catalog has to have these rows (`palette::search` tests `a_word_with_the_same_meaning_finds_the_result`, `a_catalog_row_adds_words_to_a_group`, `words_with_the_same_meaning_find_the_command`; `palette::words` tests; `i18n` test `search_rows_name_a_group_and_add_single_words`).
|
||||
A Command Palette query word also finds a command by what the command's description says: "transparent background" lists Remove Background… among the first 3 results, and "png" lists it after every result with "png" in its name or menu path. The description is the command's params text (an engine or plug-in command's, a UI command's, or an effect's) without each `{…}` group that is not inside a `{`, `[` or `(` group, without each such `[…]` or `(…)` group just after a `→`, and without the `→` before a removed group, cut to its first 300 characters at the end of a word. The words of a schema ("corners" for Remove Background…) and of a result written as a group do not find the command; a result written as words after a `→` stays in the description. Words of 2 characters or fewer, words with no letter, and "the", "and", "ids", "true", "false" and "null" are left out. A query word that is a word of a description, shares an English base word with one, starts one or has the same meaning as one finds the result, and such a result ranks below every result that the query matches in its name, menu path or id, as text inside a word or through a typo. Descriptions are English only, and a typo does not match them. Tools, panels and filter plug-ins have no description (`palette::search` tests `a_description_leaves_out_the_schema_and_the_result`, `a_word_of_the_description_finds_the_result`, `a_description_match_ranks_below_a_typo`, `words_of_a_description_find_the_command`).
|
||||
Each Command Palette row starts with an icon for its kind (a tool's own icon, or one for a panel, an effect, a filter plug-in or a command) and shows where the result lives after its label, in smaller dim text: the menu path of the menu bar item that runs it, with that item's label when it differs from the result's ("File › Exit" for Quit VectorCraft), and "No menu item" for a command no item runs. A panel's row shows "Window". A row with a home shows its label without the menu path in front of it. A path that keeps two results' names apart stays in the label, unless the row's home shows the same path; a tool's row drops the "Tools" in front of its name. A tool's row names the toolbar it is on: "Toolbar" for its button on the Tools panel, or the name of a toolbar made with New Toolbar, followed by ", in the <tool> group" when the tool is hidden in the group of a slot whose button shows another tool ("Toolbar, in the Direct Selection Tool group" for the Group Selection Tool), and "All Tools" when no toolbar holds it. A toolbar shown now comes first (the Tools panel, then the toolbars made with New Toolbar), then a hidden Tools panel, then hidden toolbars made with New Toolbar; toolbars count as hidden in Presentation Mode and while Tab hides the panels. The Learn command (`window.learn`), which Window › Learn runs, takes the Window menu as its home, so a search reads its menu path like any other result's, and among results that tie on everything else it ranks as a command of the menu bar, before panels and after tools. The home is cut short with "…" before the label, and a label too long for the row keeps the id it shows after its name unless the id alone is wider than the row. A cut row shows all its text while the pointer rests on it, and screen readers read the kind, the label, the home and the shortcut. The row height is unchanged (`palette` tests `rows_show_where_each_result_lives`, `no_two_rows_read_alike`, `a_tool_row_names_its_toolbar_slot`, `a_narrow_row_cuts_the_home_first_and_keeps_the_id`, `screen_readers_hear_the_kind_and_home`, `catalogs_translate_the_kind_and_home_words`).
|
||||
While the Command Palette is open, the highlighted result points to where it lives, in the same frame the arrow keys or the pointer move the highlight. A result with an item of the in-window menu bar has that menu's title outlined, with the item's whole path in a box under it ("Effect › Stylize › Round Corners…"); a panel points at the Window menu. A tool has its slot's button outlined on the toolbar the row names, or its own button on a strip torn off its group, with a box on the canvas side of the toolbar that names the tool, or says "In the Direct Selection Tool group: press and hold to open it" for a tool hidden in a group; screen readers hear that sentence with the search field's description. The box stays inside the window and off the button and the palette's popup: beside a button, its text wraps to up to three rows to fit before the popup or the window's edge, and where it still does not fit, the footer shows the text and only the outline is drawn; when the popup covers the control, nothing is drawn and the footer names the home. Nothing opens or shows: no menu, flyout, toolbar or All Tools drawer, and the chosen tool stays. With the system's menu bar, the footer reads "In the menu bar:" and the path instead; when no control in view shows the home (Presentation Mode, toolbars hidden by Window › Tools or Tab, a button scrolled out of view or under a floating panel or another toolbar) the footer names the home followed by "not shown now", and a command with no menu item reads "No menu item" with its shortcut. The menu bar and the toolbars note where they drew their controls only while the palette is open, and the palette uses only what this pass drew in its own window (`palette` tests `the_highlighted_result_outlines_its_menu_title`, `with_a_native_menu_bar_the_footer_names_the_path`, `a_tool_result_outlines_its_toolbar_slot`, `a_tool_on_a_toolbar_made_with_new_toolbar_is_outlined_there`, `a_strip_torn_off_the_tools_panel_is_pointed_at`, `a_box_beside_a_button_wraps_to_fit_beside_the_popup`, `the_box_keeps_off_its_button`, `the_callout_stays_off_the_palette`, `the_callout_keeps_off_a_popup_that_grew_in_the_same_pass`, `a_home_out_of_view_is_named_in_the_footer`, `the_pass_that_opens_the_palette_names_no_home_as_hidden`, `the_callout_follows_the_pointer`, `the_callout_follows_the_highlight_and_reveals_nothing`, `only_a_control_in_view_in_this_pass_is_pointed_at`, `a_control_under_a_window_is_not_pointed_at`, `the_noted_controls_hold_one_pass_per_viewport`, `catalogs_translate_the_callout_words`).
|
||||
`object.setProps` with `visible: false` or `locked: true` deselects every selected object that is then hidden or locked, the key object included, as the eye and lock columns do.
|
||||
Ctrl/Cmd+Alt-clicking an eye switches the other layers to Outline and the row's layer to Preview, or switches all layers back to Preview when the others are in Outline (`layer.outlineOthers`, `layer.previewAll`).
|
||||
Ctrl/Cmd+Alt-clicking New Layer adds a layer directly below the current layer, at its level (`layer.new {below: true}`), and Ctrl/Cmd+Alt-clicking New Sublayer adds a sublayer under the contents of the layer it goes into (`layer.newSublayer {bottom: true}`), each in one undo step. The reference app's [Default keyboard shortcuts](https://web.archive.org/web/20260726060015/https://helpx.adobe.com/illustrator/using/default-keyboard-shortcuts.html) page lists these clicks for placing a layer below the selected layer and a new sublayer at the bottom of the layer list.
|
||||
|
||||
Reference in New Issue
Block a user