diff --git a/crates/ui-egui/locales/cs.json b/crates/ui-egui/locales/cs.json index 6a056bbfb90..f35ff08fa88 100644 --- a/crates/ui-egui/locales/cs.json +++ b/crates/ui-egui/locales/cs.json @@ -299,6 +299,7 @@ "Blue channel": "Modrý kanál", "Blue label": "Modrý štítek", "Blue/Yellow Fringe": "Modrý/žlutý lem", + "Blue/Yellow": "Modrá/žlutá", "Blurry photos below the score are flagged as rejects.": "Rozmazaným fotografiím se skóre pod limitem se nastaví příznak Odmítnuto.", "Boundary Warp": "Deformace hranic", "Bright & Airy": "Světlé a vzdušné", @@ -883,6 +884,8 @@ "Hours": "Hodiny", "How to install the model": "Jak nainstalovat model", "Hue": "Odstín", + "Hue Low": "Dolní mez odstínu", + "Hue High": "Horní mez odstínu", "Hue Range": "Rozsah odstínu", "I have read these terms and accept them for my own use": "Tyto podmínky jsem si přečetl(a) a přijímám je pro vlastní použití", "ISO Speed": "Citlivost ISO", @@ -1513,6 +1516,7 @@ "Red channel": "Červený kanál", "Red label": "Červený štítek", "Red/Cyan Fringe": "Červený/azurový lem", + "Red/Cyan": "Červená/azurová", "Redo": "Znovu", "Reference": "Reference", "Reference View": "Referenční zobrazení", @@ -2234,6 +2238,7 @@ "Update to Current Process": "Aktualizovat na aktuální proces", "HDR Headroom": "Rezerva HDR", "SDR Brightness": "Jas SDR", + "Brightness": "Jas", "SDR Clarity": "Zřetelnost SDR", "SDR Contrast": "Kontrast SDR", "SDR Highlights": "Světla SDR", diff --git a/crates/ui-egui/locales/de.json b/crates/ui-egui/locales/de.json index 405c54a4640..d6e5a93dafb 100644 --- a/crates/ui-egui/locales/de.json +++ b/crates/ui-egui/locales/de.json @@ -178,6 +178,7 @@ "Blue channel": "Blaukanal", "Blue label": "Blaue Markierung", "Blue/Yellow Fringe": "Blaue/gelbe Farbsäume", + "Blue/Yellow": "Blau/Gelb", "Blurry photos below the score are flagged as rejects.": "Unscharfe Fotos unterhalb des Grenzwerts werden als abgelehnt markiert.", "Boundary Warp": "Randverkrümmung", "Bright & Airy": "Hell und luftig", @@ -693,6 +694,8 @@ "Horizontal text": "Horizontaler Text", "Hours": "Stunden", "Hue": "Farbton", + "Hue Low": "Unterer Farbton", + "Hue High": "Oberer Farbton", "Hue Range": "Farbtonbereich", "ISO Speed": "ISO-Empfindlichkeit", "ISO speed": "ISO-Empfindlichkeit", @@ -1201,6 +1204,7 @@ "Red channel": "Rotkanal", "Red label": "Rote Markierung", "Red/Cyan Fringe": "Rote/cyanfarbene Farbsäume", + "Red/Cyan": "Rot/Cyan", "Redo": "Wiederholen", "Reference": "Referenz", "Reference View": "Referenzansicht", @@ -2454,6 +2458,7 @@ "Display Profile": "Bildschirmprofil", "HDR Headroom": "HDR-Spielraum", "SDR Brightness": "SDR-Helligkeit", + "Brightness": "Helligkeit", "SDR Contrast": "SDR-Kontrast", "SDR Highlights": "SDR-Lichter", "SDR Shadows": "SDR-Tiefen", diff --git a/crates/ui-egui/locales/es.json b/crates/ui-egui/locales/es.json index e43ae8c49b0..75d78dfa1d0 100644 --- a/crates/ui-egui/locales/es.json +++ b/crates/ui-egui/locales/es.json @@ -161,6 +161,7 @@ "Blue channel": "Canal azul", "Blue label": "Etiqueta azul", "Blue/Yellow Fringe": "Franja azul/amarilla", + "Blue/Yellow": "Azul/amarillo", "Blurry photos below the score are flagged as rejects.": "Las fotos borrosas por debajo de la puntuación se marcan como rechazadas.", "Boundary Warp": "Deformación del contorno", "Bright & Airy": "Luminoso y etéreo", @@ -701,6 +702,8 @@ "Hours": "Horas", "How to install the model": "Cómo instalar el modelo", "Hue": "Tono", + "Hue Low": "Tono bajo", + "Hue High": "Tono alto", "Hue Range": "Rango de tono", "ISO Speed": "Sensibilidad ISO", "ISO speed": "Sensibilidad ISO", @@ -1208,6 +1211,7 @@ "Red channel": "Canal rojo", "Red label": "Etiqueta roja", "Red/Cyan Fringe": "Franja roja/cian", + "Red/Cyan": "Rojo/cian", "Redo": "Rehacer", "Reference": "Referencia", "Reference View": "Vista de referencia", @@ -2378,6 +2382,7 @@ "The photos are imported once it ends": "Las fotos se importarán después", "An import is running. Drop photos when it has finished": "Hay una importación en curso. Suelta las fotos cuando termine", "Finish Lightroom catalog import before adding photos": "Termina la importación del catálogo de Lightroom antes de añadir fotos", + "Brightness": "Brillo", "Thumbnail size": "Tamaño de las miniaturas", "Import Thumbnail Size": "Tamaño de las miniaturas de importación", "Face recognition is on": "El reconocimiento facial está activado", diff --git a/crates/ui-egui/locales/fi.json b/crates/ui-egui/locales/fi.json index ff7e03c0662..7423383455b 100644 --- a/crates/ui-egui/locales/fi.json +++ b/crates/ui-egui/locales/fi.json @@ -214,6 +214,7 @@ "Blue channel": "Sininen kanava", "Blue label": "Sininen merkintä", "Blue/Yellow Fringe": "Sini/keltareunus", + "Blue/Yellow": "Sini/kelta", "Blurry photos below the score are flagged as rejects.": "Pisteitä heikommat epäterävät kuvat merkitään hylätyiksi.", "Bottom": "Alareuna", "Boundary Warp": "Reunan vääntö", @@ -884,6 +885,8 @@ "Hours": "Tunnit", "How to install the model": "Mallin asentaminen", "Hue": "Sävy", + "Hue Low": "Sävy ala", + "Hue High": "Sävy ylä", "Hue Range": "Sävyalue", "Human Eye Tracking": "Ihmissilmien seuranta", "I have read these terms and accept them for my own use": "Olen lukenut nämä ehdot ja hyväksyn ne omaan käyttööni", @@ -1581,6 +1584,7 @@ "Red channel": "Punainen kanava", "Red label": "Punainen merkintä", "Red/Cyan Fringe": "Puna/syaanireunus", + "Red/Cyan": "Puna/syaani", "Redo": "Tee uudelleen", "Reference": "Vertailukuva", "Reference View": "Vertailunäkymä", @@ -1708,6 +1712,7 @@ "SAM 3 download stopped: it resumes where it left off next time.": "SAM 3:n lataus pysähtyi: se jatkuu seuraavalla kerralla siitä, mihin jäi.", "SDR": "SDR", "SDR Brightness": "SDR-kirkkaus", + "Brightness": "Kirkkaus", "SDR Clarity": "SDR-selkeys", "SDR Contrast": "SDR-kontrasti", "SDR Highlights": "SDR-huippuvalot", diff --git a/crates/ui-egui/locales/fr.json b/crates/ui-egui/locales/fr.json index e032cf52f30..fa659dadbb2 100644 --- a/crates/ui-egui/locales/fr.json +++ b/crates/ui-egui/locales/fr.json @@ -160,6 +160,7 @@ "Blue channel": "Canal bleu", "Blue label": "Étiquette bleue", "Blue/Yellow Fringe": "Frange bleue/jaune", + "Blue/Yellow": "Bleu/jaune", "Blurry photos below the score are flagged as rejects.": "Les photos floues en dessous du score sont marquées comme rejetées.", "Boundary Warp": "Déformation des bords", "Bright & Airy": "Lumineux et aérien", @@ -659,6 +660,8 @@ "Hours": "Heures", "How to install the model": "Comment installer le modèle", "Hue": "Teinte", + "Hue Low": "Teinte basse", + "Hue High": "Teinte haute", "Hue Range": "Plage de teintes", "ISO Speed": "Sensibilité ISO", "ISO speed": "Sensibilité ISO", @@ -1147,6 +1150,7 @@ "Red channel": "Canal rouge", "Red label": "Étiquette rouge", "Red/Cyan Fringe": "Frange rouge/cyan", + "Red/Cyan": "Rouge/cyan", "Redo": "Rétablir", "Reference": "Référence", "Reference View": "Vue de référence", @@ -2409,6 +2413,7 @@ "The photos are imported once a library is open": "Les photos seront importées dès qu'une bibliothèque sera ouverte", "Open a library first, then drop the presets again": "Ouvrez d'abord une bibliothèque, puis déposez à nouveau les préréglages", "This library couldn't be checked:": "Impossible de vérifier cette bibliothèque :", + "Brightness": "Luminosité", "Face recognition is on": "La reconnaissance des visages est activée", "Face recognition is off. Turn it on to get name suggestions and see look-alike faces together.": "La reconnaissance des visages est désactivée. Activez-la pour obtenir des suggestions de noms et voir ensemble les visages qui se ressemblent.", "Turn on": "Activer", diff --git a/crates/ui-egui/locales/id.json b/crates/ui-egui/locales/id.json index 1c70f263446..3bd762ad29c 100644 --- a/crates/ui-egui/locales/id.json +++ b/crates/ui-egui/locales/id.json @@ -218,6 +218,7 @@ "Blue channel": "Kanal biru", "Blue label": "Label biru", "Blue/Yellow Fringe": "Fringe biru/kuning", + "Blue/Yellow": "Biru/kuning", "Blurry photos below the score are flagged as rejects.": "Foto buram dengan skor di bawah batas ini ditandai sebagai ditolak.", "Bottom": "Bawah", "Boundary Warp": "Pelengkungan tepi", @@ -886,6 +887,8 @@ "Hours": "Jam", "How to install the model": "Cara menginstal model", "Hue": "Hue", + "Hue Low": "Hue bawah", + "Hue High": "Hue atas", "Hue Range": "Rentang hue", "Human Eye Tracking": "Pelacakan mata manusia", "I have read these terms and accept them for my own use": "Saya telah membaca ketentuan ini dan menyetujuinya untuk penggunaan pribadi", @@ -1570,6 +1573,7 @@ "Red channel": "Kanal merah", "Red label": "Label merah", "Red/Cyan Fringe": "Fringe merah/sian", + "Red/Cyan": "Merah/sian", "Redo": "Ulangi", "Reference": "Referensi", "Reference View": "Tampilan referensi", @@ -1700,6 +1704,7 @@ "SAM 3 download stopped: it resumes where it left off next time.": "Unduhan SAM 3 dihentikan: lain kali unduhan dilanjutkan dari titik terakhir.", "SDR": "SDR", "SDR Brightness": "Kecerahan SDR", + "Brightness": "Kecerahan", "SDR Clarity": "Kejernihan SDR", "SDR Contrast": "Kontras SDR", "SDR Highlights": "Sorotan SDR", diff --git a/crates/ui-egui/locales/it.json b/crates/ui-egui/locales/it.json index a0d39d0610e..1bf6bd3642c 100644 --- a/crates/ui-egui/locales/it.json +++ b/crates/ui-egui/locales/it.json @@ -161,6 +161,7 @@ "Blue channel": "Canale blu", "Blue label": "Etichetta blu", "Blue/Yellow Fringe": "Frange blu/gialle", + "Blue/Yellow": "Blu/giallo", "Blurry photos below the score are flagged as rejects.": "Le foto sfocate sotto il punteggio vengono contrassegnate come scartate.", "Boundary Warp": "Deformazione dei bordi", "Bright & Airy": "Luminoso e arioso", @@ -660,6 +661,8 @@ "Hours": "Ore", "How to install the model": "Come installare il modello", "Hue": "Tonalità", + "Hue Low": "Tonalità bassa", + "Hue High": "Tonalità alta", "Hue Range": "Intervallo di tonalità", "ISO Speed": "Sensibilità ISO", "ISO speed": "Sensibilità ISO", @@ -1155,6 +1158,7 @@ "Red channel": "Canale rosso", "Red label": "Etichetta rossa", "Red/Cyan Fringe": "Frange rosse/ciano", + "Red/Cyan": "Rosso/ciano", "Redo": "Ripeti", "Reference": "Riferimento", "Reference View": "Vista di riferimento", @@ -1881,6 +1885,7 @@ "Update to Current Process": "Aggiorna al processo attuale", "HDR Headroom": "Margine HDR", "SDR Brightness": "Luminosità SDR", + "Brightness": "Luminosità", "SDR Clarity": "Chiarezza SDR", "SDR Contrast": "Contrasto SDR", "SDR Highlights": "Luci SDR", diff --git a/crates/ui-egui/locales/ja.json b/crates/ui-egui/locales/ja.json index 5f80d7896b6..d2b84d35ed2 100644 --- a/crates/ui-egui/locales/ja.json +++ b/crates/ui-egui/locales/ja.json @@ -161,6 +161,7 @@ "Blue channel": "ブルーチャンネル", "Blue label": "ブルーラベル", "Blue/Yellow Fringe": "青/黄のフリンジ", + "Blue/Yellow": "青/黄", "Blurry photos below the score are flagged as rejects.": "基準値未満のぼけた写真に不採用フラグを付けます", "Boundary Warp": "境界の変形", "Bright & Airy": "明るく軽やか", @@ -830,6 +831,8 @@ "History & Activity (Y)": "履歴と処理状況(Y)", "Horizontal": "水平", "Hue": "色相", + "Hue Low": "色相下限", + "Hue High": "色相上限", "Hue Range": "色相の範囲", "If file exists": "同名ファイルがある場合", "Import": "読み込み", @@ -1126,6 +1129,7 @@ "Red Saturation": "レッドの彩度", "Red channel": "レッドチャンネル", "Red/Cyan Fringe": "赤/シアンのフリンジ", + "Red/Cyan": "赤/シアン", "Redo": "やり直す", "Reference": "参照", "Reference View": "参照表示", @@ -2376,6 +2380,7 @@ "The photos are imported once it ends": "終わりしだい写真を読み込みます", "An import is running. Drop photos when it has finished": "読み込み中です。完了してから写真をドロップしてください", "Finish Lightroom catalog import before adding photos": "写真を追加する前に Lightroom カタログの読み込みを完了してください", + "Brightness": "明るさ", "Thumbnail size": "サムネイルのサイズ", "Import Thumbnail Size": "読み込みサムネイルのサイズ", "Face recognition is on": "顔認識をオンにしました", diff --git a/crates/ui-egui/locales/ka.json b/crates/ui-egui/locales/ka.json index 0ea7d3d8052..b37b091d8f4 100644 --- a/crates/ui-egui/locales/ka.json +++ b/crates/ui-egui/locales/ka.json @@ -275,6 +275,7 @@ "Blue channel": "ლურჯი არხი", "Blue label": "ლურჯი იარლიყი", "Blue/Yellow Fringe": "ლურჯი/ყვითელი შარავანდი", + "Blue/Yellow": "ლურჯი/ყვითელი", "Blurry photos below the score are flagged as rejects.": "ზღვარზე დაბალი შეფასების ბუნდოვან ფოტოებს უარყოფილის დროშა ედება.", "Bold text in other scripts": "მუქი ტექსტი სხვა დამწერლობებში", "Boundary Warp": "საზღვრების დეფორმაცია", @@ -948,6 +949,8 @@ "Hours": "საათი", "How to install the model": "როგორ დავაინსტალიროთ მოდელი", "Hue": "ფერის ტონი", + "Hue Low": "ფერის ტონის ქვედა ზღვარი", + "Hue High": "ფერის ტონის ზედა ზღვარი", "Hue Range": "ფერის ტონის დიაპაზონი", "I have read these terms and accept them for my own use": "წავიკითხე ეს პირობები და ვეთანხმები მათ ჩემი საკუთარი გამოყენებისთვის", "ICC Profiles": "ICC პროფილები", @@ -1658,6 +1661,7 @@ "Red channel": "წითელი არხი", "Red label": "წითელი იარლიყი", "Red/Cyan Fringe": "წითელი/ცისფერი შარავანდი", + "Red/Cyan": "წითელი/ცისფერი", "Redo": "ხელახლა შესრულება", "Reference": "ეტალონი", "Reference View": "ეტალონური ხედი", @@ -1787,6 +1791,7 @@ "SAM 3 download stopped: it resumes where it left off next time.": "SAM 3-ის ჩამოტვირთვა შეწყდა: შემდეგ ჯერზე იქიდან გაგრძელდება, სადაც შეჩერდა.", "SDR": "SDR", "SDR Brightness": "SDR სიკაშკაშე", + "Brightness": "სიკაშკაშე", "SDR Clarity": "SDR სიცხადე", "SDR Contrast": "SDR კონტრასტი", "SDR Highlights": "SDR ღია ტონები", diff --git a/crates/ui-egui/locales/pl.json b/crates/ui-egui/locales/pl.json index bb3729a5b67..078c667d827 100644 --- a/crates/ui-egui/locales/pl.json +++ b/crates/ui-egui/locales/pl.json @@ -156,6 +156,7 @@ "Blue channel": "Kanał niebieski", "Blue label": "Niebieska etykieta", "Blue/Yellow Fringe": "Niebiesko-żółte obwódki", + "Blue/Yellow": "Niebieski/żółty", "Blurry photos below the score are flagged as rejects.": "Nieostre zdjęcia z oceną poniżej progu są oznaczane jako odrzucone.", "Boundary Warp": "Dopasowanie granic", "Bright & Airy": "Jasne i lekkie", @@ -641,6 +642,8 @@ "Horizontal text": "Tekst poziomy", "Hours": "Godziny", "Hue": "Odcień", + "Hue Low": "Dolny zakres odcienia", + "Hue High": "Górny zakres odcienia", "Hue Range": "Zakres odcieni", "ISO Speed": "Czułość ISO", "ISO speed": "Czułość ISO", @@ -1119,6 +1122,7 @@ "Red channel": "Kanał czerwony", "Red label": "Czerwona etykieta", "Red/Cyan Fringe": "Czerwono-turkusowa obwódka", + "Red/Cyan": "Czerwony/turkusowy", "Redo": "Ponów", "Reference": "Odniesienie", "Reference View": "Widok referencyjny", @@ -2278,6 +2282,7 @@ "Display Profile": "Profil ekranu", "HDR Headroom": "Zapas jasności HDR", "SDR Brightness": "Jasność SDR", + "Brightness": "Jasność", "SDR Contrast": "Kontrast SDR", "SDR Highlights": "Światła SDR", "SDR Shadows": "Cienie SDR", diff --git a/crates/ui-egui/locales/pt-br.json b/crates/ui-egui/locales/pt-br.json index a0884dc56a1..edc17a9dbc0 100644 --- a/crates/ui-egui/locales/pt-br.json +++ b/crates/ui-egui/locales/pt-br.json @@ -165,6 +165,7 @@ "Blue channel": "Canal azul", "Blue label": "Rótulo azul", "Blue/Yellow Fringe": "Franja azul/amarela", + "Blue/Yellow": "Azul/amarelo", "Blurry photos below the score are flagged as rejects.": "Fotos desfocadas abaixo da pontuação são marcadas como rejeitadas.", "Boundary Warp": "Deformação de borda", "Bright & Airy": "Luminoso e arejado", @@ -668,6 +669,8 @@ "Hours": "Horas", "How to install the model": "Como instalar o modelo", "Hue": "Matiz", + "Hue Low": "Matiz baixo", + "Hue High": "Matiz alto", "Hue Range": "Faixa de matiz", "ISO Speed": "Sensibilidade ISO", "ISO speed": "Sensibilidade ISO", @@ -1166,6 +1169,7 @@ "Red channel": "Canal vermelho", "Red label": "Rótulo vermelho", "Red/Cyan Fringe": "Franja vermelha/ciano", + "Red/Cyan": "Vermelho/ciano", "Redo": "Refazer", "Reference": "Referência", "Reference View": "Exibição de referência", @@ -2222,6 +2226,7 @@ "The photos are imported once it ends": "As fotos serão importadas depois", "An import is running. Drop photos when it has finished": "Uma importação está em andamento. Solte as fotos quando ela terminar", "Finish Lightroom catalog import before adding photos": "Conclua a importação do catálogo do Lightroom antes de adicionar fotos", + "Brightness": "Brilho", "Thumbnail size": "Tamanho das miniaturas", "Import Thumbnail Size": "Tamanho das miniaturas de importação", "Face recognition is on": "O reconhecimento facial está ativado", diff --git a/crates/ui-egui/locales/ru.json b/crates/ui-egui/locales/ru.json index 598893c3bcc..e63ceefb722 100644 --- a/crates/ui-egui/locales/ru.json +++ b/crates/ui-egui/locales/ru.json @@ -328,6 +328,7 @@ "Blue channel": "Синий канал", "Blue label": "Синяя метка", "Blue/Yellow Fringe": "Сине-жёлтая кайма", + "Blue/Yellow": "Синий/жёлтый", "Blurry photos below the score are flagged as rejects.": "Размытые фото с оценкой ниже порога помечаются как отклонённые.", "Boundary Warp": "Деформация границ", "Bright & Airy": "Светлый и воздушный", @@ -747,6 +748,8 @@ "Horizontal text": "Горизонтальный текст", "How to install the model": "Как установить модель", "Hue": "Тон", + "Hue Low": "Тон (низ)", + "Hue High": "Тон (верх)", "Hue Range": "Диапазон тонов", "If file exists": "Если файл существует", "Image": "Изображение", @@ -1187,6 +1190,7 @@ "Red channel": "Красный канал", "Red label": "Красная метка", "Red/Cyan Fringe": "Красно-голубая кайма", + "Red/Cyan": "Красный/голубой", "Redo": "Повторить", "Reference": "Эталон", "Reference View": "Режим эталона", @@ -2584,6 +2588,7 @@ "The photos are imported once it ends": "Фото будут импортированы после этого", "An import is running. Drop photos when it has finished": "Импорт уже выполняется. Перетащите фото, когда он закончится", "Finish Lightroom catalog import before adding photos": "Завершите импорт каталога Lightroom, прежде чем добавлять фото", + "Brightness": "Яркость", "★ Favorites": "★ Избранное", "Import Thumbnail Size": "Размер миниатюр при импорте", "Face recognition is on": "Распознавание лиц включено", diff --git a/crates/ui-egui/locales/sv.json b/crates/ui-egui/locales/sv.json index f229b9547c0..7d907ac385c 100644 --- a/crates/ui-egui/locales/sv.json +++ b/crates/ui-egui/locales/sv.json @@ -247,6 +247,7 @@ "Blue Primary": "Blå primärfärg", "Blue Saturation": "Blå mättnad", "Blue/Yellow Fringe": "Blå/gul färgkant", + "Blue/Yellow": "Blå/gul", "Blurry photos below the score are flagged as rejects.": "Suddiga foton under poängen flaggas som refuserade.", "Bottom": "Nederkant", "Boundary Warp": "Gränsförvrängning", @@ -944,6 +945,8 @@ "How to install the model": "Så installerar du modellen", "how to restore it or delete it permanently and import it afresh. (For a fresh start on a photo, Reset Edits,": "hur du återställer den eller raderar den permanent och importerar den på nytt. (För att börja om med ett foto, Återställ redigeringar,", "Hue": "Nyans", + "Hue Low": "Nyans, låg", + "Hue High": "Nyans, hög", "Hue Range": "Nyansintervall", "I have read these terms and accept them for my own use": "Jag har läst villkoren och godkänner dem för eget bruk", "Identity plate": "Identitetsplåt", @@ -1718,6 +1721,7 @@ "Red Primary": "Röd primärfärg", "Red Saturation": "Röd mättnad", "Red/Cyan Fringe": "Röd/cyan fransning", + "Red/Cyan": "Röd/cyan", "Redo": "Gör om", "Reference": "Referens", "Reference the files where they are": "Referera till filerna där de ligger", @@ -1897,6 +1901,7 @@ "Scroll menu up": "Rulla menyn uppåt", "SDR": "SDR", "SDR Brightness": "SDR-ljusstyrka", + "Brightness": "Ljusstyrka", "SDR Clarity": "SDR-klarhet", "SDR Contrast": "SDR-kontrast", "SDR Highlights": "SDR-högdagrar", diff --git a/crates/ui-egui/locales/uk.json b/crates/ui-egui/locales/uk.json index a4efe34a608..a4f1a4109d6 100644 --- a/crates/ui-egui/locales/uk.json +++ b/crates/ui-egui/locales/uk.json @@ -172,6 +172,8 @@ "History": "Історія", "Horizontal": "Горизонтальна", "Hue": "Тон", + "Hue Low": "Нижня межа тону", + "Hue High": "Верхня межа тону", "Import": "Імпорт", "Import Presets": "Імпортувати набори налаштувань", "Info": "Інформація", @@ -491,6 +493,7 @@ "Blue channel": "Синій канал", "Blue label": "Синя мітка", "Blue/Yellow Fringe": "Синя/жовта облямівка", + "Blue/Yellow": "Синій/жовтий", "Blurry photos below the score are flagged as rejects.": "Розмиті фото з оцінкою нижче порога позначаються як відхилені.", "Boundary Warp": "Деформація меж", "Bright & Airy": "Світле й легке", @@ -1229,6 +1232,7 @@ "Red Saturation": "Насиченість червоного", "Red channel": "Червоний канал", "Red/Cyan Fringe": "Червона/блакитна облямівка", + "Red/Cyan": "Червоний/блакитний", "Reference": "Еталон", "Reference View": "Еталонне подання", "Reference the files where they are": "Посилатися на файли в їхньому розташуванні", @@ -2374,6 +2378,7 @@ "The photos are imported once it ends": "Фото буде імпортовано після цього", "An import is running. Drop photos when it has finished": "Імпорт уже виконується. Перетягніть фото, коли він завершиться", "Finish Lightroom catalog import before adding photos": "Завершіть імпорт каталогу Lightroom, перш ніж додавати фото", + "Brightness": "Яскравість", "Thumbnail size": "Розмір мініатюр", "Import Thumbnail Size": "Розмір мініатюр імпорту", "Face recognition is on": "Розпізнавання облич увімкнено", diff --git a/crates/ui-egui/locales/vi.json b/crates/ui-egui/locales/vi.json index c1610e428fc..1e69d350fc7 100644 --- a/crates/ui-egui/locales/vi.json +++ b/crates/ui-egui/locales/vi.json @@ -207,6 +207,7 @@ "Blue channel": "Kênh xanh lam", "Blue label": "Nhãn lam", "Blue/Yellow Fringe": "Viền xanh lam/vàng", + "Blue/Yellow": "Xanh lam/vàng", "Blurry photos below the score are flagged as rejects.": "Ảnh mờ dưới điểm ngưỡng được gắn cờ đã loại.", "Boundary Warp": "Biến dạng biên", "Bright & Airy": "Sáng và thoáng", @@ -812,6 +813,8 @@ "Hours": "Giờ", "How to install the model": "Cách cài mô hình", "Hue": "Sắc độ", + "Hue Low": "Sắc độ thấp", + "Hue High": "Sắc độ cao", "Hue Range": "Dải sắc độ", "I have read these terms and accept them for my own use": "Tôi đã đọc các điều khoản này và chấp nhận cho việc sử dụng của mình", "ISO Speed": "Tốc độ ISO", @@ -1451,7 +1454,8 @@ "Red Saturation": "Độ bão hòa đỏ", "Red channel": "Kênh đỏ", "Red label": "Nhãn đỏ", - "Red/Cyan Fringe": "Viền đỏ/lam", + "Red/Cyan Fringe": "Viền đỏ/xanh lơ", + "Red/Cyan": "Đỏ/xanh lơ", "Redo": "Làm lại", "Reference": "Tham chiếu", "Reference View": "Xem tham chiếu", @@ -1572,6 +1576,7 @@ "SAM 3 download stopped: it resumes where it left off next time.": "Tải SAM 3 đã dừng: lần sau sẽ tiếp tục từ chỗ dừng.", "SDR": "SDR", "SDR Brightness": "Độ sáng SDR", + "Brightness": "Độ sáng", "SDR Clarity": "Độ rõ SDR", "SDR Contrast": "Tương phản SDR", "SDR Highlights": "Vùng sáng SDR", diff --git a/crates/ui-egui/locales/zh-hans.json b/crates/ui-egui/locales/zh-hans.json index ea867f35e6b..365380e06b9 100644 --- a/crates/ui-egui/locales/zh-hans.json +++ b/crates/ui-egui/locales/zh-hans.json @@ -164,6 +164,7 @@ "Blue channel": "蓝色通道", "Blue label": "蓝色标签", "Blue/Yellow Fringe": "蓝/黄边缘", + "Blue/Yellow": "蓝/黄", "Blurry photos below the score are flagged as rejects.": "低于该分值的模糊照片将被标记为排除。", "Boundary Warp": "边界变形", "Bright & Airy": "明亮通透", @@ -794,6 +795,8 @@ "Horizontal": "水平", "Horizontal text": "横排文字", "Hue": "色相", + "Hue Low": "色相下限", + "Hue High": "色相上限", "Hue Range": "色相范围", "If file exists": "如果文件已存在", "Image": "图像", @@ -1175,6 +1178,7 @@ "Red Saturation": "红色饱和度", "Red channel": "红色通道", "Red/Cyan Fringe": "红/青边缘", + "Red/Cyan": "红/青", "Redo": "重做", "Reference": "参考", "Reference View": "参考视图", @@ -2221,6 +2225,7 @@ "The photos are imported once it ends": "结束后即导入这些照片", "An import is running. Drop photos when it has finished": "正在导入。导入完成后再拖放照片", "Finish Lightroom catalog import before adding photos": "添加照片前,请先完成 Lightroom 目录的导入", + "Brightness": "亮度", "Thumbnail size": "缩略图大小", "Import Thumbnail Size": "导入缩略图大小", "\"saved in memory but not written to disk\", the top bar shows a warning, and LightCraft keeps retrying until the": "“已保存在内存中但未写入磁盘”,顶栏会显示警告,LightCraft 会持续重试,直到", diff --git a/crates/ui-egui/locales/zh-hant.json b/crates/ui-egui/locales/zh-hant.json index 90b3670ec3d..8b6563b930c 100644 --- a/crates/ui-egui/locales/zh-hant.json +++ b/crates/ui-egui/locales/zh-hant.json @@ -164,6 +164,7 @@ "Blue channel": "藍色通道", "Blue label": "藍色標籤", "Blue/Yellow Fringe": "藍/黃色邊緣", + "Blue/Yellow": "藍/黃", "Blurry photos below the score are flagged as rejects.": "焦點分數低於門檻的模糊照片會標記為排除。", "Boundary Warp": "邊界變形", "Bright & Airy": "明亮輕盈", @@ -795,6 +796,8 @@ "Horizontal": "水平", "Horizontal text": "水平文字", "Hue": "色相", + "Hue Low": "色相下限", + "Hue High": "色相上限", "Hue Range": "色相範圍", "If file exists": "檔案已存在時", "Image": "圖片", @@ -1176,6 +1179,7 @@ "Red Saturation": "紅色飽和度", "Red channel": "紅色通道", "Red/Cyan Fringe": "紅/青色邊緣", + "Red/Cyan": "紅/青", "Redo": "重做", "Reference": "參考", "Reference View": "參考檢視", @@ -2177,6 +2181,7 @@ "The photos are imported once it ends": "結束後即匯入這些照片", "An import is running. Drop photos when it has finished": "正在匯入。匯入完成後再拖放照片", "Finish Lightroom catalog import before adding photos": "新增照片前,請先完成 Lightroom 目錄的匯入", + "Brightness": "亮度", "Thumbnail size": "縮圖大小", "Import Thumbnail Size": "匯入縮圖大小", "\"saved in memory but not written to disk\", the top bar shows a warning, and LightCraft keeps retrying until the": "「已儲存在記憶體中但尚未寫入磁碟」,頂端列會顯示警告,LightCraft 會持續重試,直到", diff --git a/crates/ui-egui/src/app/frame.rs b/crates/ui-egui/src/app/frame.rs index a434881ae5f..01507f72430 100644 --- a/crates/ui-egui/src/app/frame.rs +++ b/crates/ui-egui/src/app/frame.rs @@ -444,7 +444,12 @@ impl LightcraftApp { // right panels and left panel run to the bottom; the bottom bar sits between them). panels::topbar::show(self, ui); panels::library_problem::banner(self, ui); - panels::strip::show(self, ui); + // the tools stand in a row at the top of the right-hand panel; only while it is closed (or + // out of sight: minimized, or a tab behind another panel) do they stand at the window's + // edge, to open it again + if self.ui.right == state::RightPanel::None || !docking::exposed(self, docking::Panel::Tools) { + panels::strip::show(self, ui); + } // filled: the gaps the dock leaves between its panes show chrome, not the dark clear colour let chrome = theme::Tokens::get(&ctx).chrome; egui::CentralPanel::default().frame(egui::Frame::NONE.fill(chrome)).show(ui, |ui| docking::show(self, ui)); diff --git a/crates/ui-egui/src/dialogs/import/tags.rs b/crates/ui-egui/src/dialogs/import/tags.rs index 1ae10ca0212..7a53c08028a 100644 --- a/crates/ui-egui/src/dialogs/import/tags.rs +++ b/crates/ui-egui/src/dialogs/import/tags.rs @@ -60,7 +60,7 @@ pub(crate) fn insert_at_cursor(ctx: &egui::Context, edit_id: egui::Id, text: &mu pub(crate) fn tag_help(ui: &mut egui::Ui, key: &str, text: &mut String, edit_id: egui::Id) { use lightcraft_engine::rename::{DATE_DIRECTIVES, TEMPLATE_NOTES, TOKENS, token_example}; let t = Tokens::get(ui.ctx()); - egui::Frame::new().fill(t.inset).corner_radius(4.0).inner_margin(6.0).show(ui, |ui| { + egui::Frame::new().fill(t.inset).corner_radius(crate::theme::RADIUS).inner_margin(6.0).show(ui, |ui| { ui.label( egui::RichText::new(crate::i18n::tr("Click a tag to insert it. Examples are for IMG_0042.CR3 taken 14 Jan 2026, 05:58:48.")) .color(t.text_dim) diff --git a/crates/ui-egui/src/dialogs/settings/appearance.rs b/crates/ui-egui/src/dialogs/settings/appearance.rs index 5f8f428d451..5d2d9b745e0 100644 --- a/crates/ui-egui/src/dialogs/settings/appearance.rs +++ b/crates/ui-egui/src/dialogs/settings/appearance.rs @@ -51,7 +51,7 @@ fn theme_card(ui: &mut egui::Ui, t: &Tokens, card: ThemeCar egui::Frame::new() .fill(t.inset) .stroke(egui::Stroke::new(1.0, if active { t.accent } else { t.field_border })) - .corner_radius(6) + .corner_radius(crate::theme::RADIUS_PANEL) .inner_margin(8) .show(ui, |ui| { ui.vertical(|ui| { diff --git a/crates/ui-egui/src/dialogs/settings/slide_templates.rs b/crates/ui-egui/src/dialogs/settings/slide_templates.rs index d32cb05524a..99cb039bda2 100644 --- a/crates/ui-egui/src/dialogs/settings/slide_templates.rs +++ b/crates/ui-egui/src/dialogs/settings/slide_templates.rs @@ -135,7 +135,7 @@ fn template_row(app: &mut LightcraftApp, ui: &mut egui::Ui, t: &Tokens, tpl: &Te } let p = ui.painter(); if resp.hovered() { - p.rect_filled(rect, 3.0, t.hover); + p.rect_filled(rect, crate::theme::RADIUS, t.hover); } if current { p.rect_stroke(rect.shrink(0.5), 3.0, Stroke::new(1.0, t.accent), egui::StrokeKind::Inside); diff --git a/crates/ui-egui/src/headless/tests.rs b/crates/ui-egui/src/headless/tests.rs index 7ba584faf02..c2dc98b25fa 100644 --- a/crates/ui-egui/src/headless/tests.rs +++ b/crates/ui-egui/src/headless/tests.rs @@ -3564,13 +3564,15 @@ fn capture_time_dialog_shifts_time_zone() { h.request("engine.execute", json!({"command": "library.select", "params": {"ids": [id.0]}}), t); h.request("ui.set", json!({"view": "detail", "right": "info"}), t); let before = h.app.session.catalog.photo(id).unwrap().captured.clone().unwrap(); - // The dock header leaves less vertical space; bring the metadata action into view. + // The dock header leaves less vertical space; bring the metadata action into view when it + // starts below the visible panel (the denser panel may already show it). let panel = h.app.widgets.iter().find(|(id, _)| id == "panel:right_panel").unwrap().1; - let clipped_action = h.app.widgets.iter().find(|(id, _)| id == "icon:editCaptureTime").unwrap().1; - assert!(!panel.contains_rect(clipped_action), "the capture-time action starts below the visible panel: {clipped_action:?}"); - h.request("ui.move", json!({"x": panel.center().x, "y": panel.center().y}), t); - h.request("ui.scroll", json!({"dy": -160.0}), t); - h.settle(SETTLE); + let first = h.app.widgets.iter().find(|(id, _)| id == "icon:editCaptureTime").unwrap().1; + if !panel.contains_rect(first) { + h.request("ui.move", json!({"x": panel.center().x, "y": panel.center().y}), t); + h.request("ui.scroll", json!({"dy": -160.0}), t); + h.settle(SETTLE); + } let action = h.app.widgets.iter().find(|(id, _)| id == "icon:editCaptureTime").unwrap().1; assert!(panel.contains_rect(action), "capture-time action must be visible before clicking: {action:?} in {panel:?}"); let r = h.request("ui.clickWidget", json!({"id": "icon:editCaptureTime"}), t); diff --git a/crates/ui-egui/src/panels.rs b/crates/ui-egui/src/panels.rs index ed9c45fb5d8..77af14b0b48 100644 --- a/crates/ui-egui/src/panels.rs +++ b/crates/ui-egui/src/panels.rs @@ -107,7 +107,7 @@ pub fn toast(app: &mut LightcraftApp, ctx: &egui::Context) { // a slideshow's playback controls sit at the bottom: the toast goes to the top there, clear of them let y = if app.ui.slideshow.is_some() { canvas.top() + 60.0 } else { canvas.bottom() - 60.0 }; let r = Rect::from_center_size(pos2(canvas.center().x, y), size); - painter.rect_filled(r, 6.0, background.gamma_multiply(fade)); + painter.rect_filled(r, crate::theme::RADIUS_PANEL, background.gamma_multiply(fade)); painter.galley(r.center() - galley.size() / 2.0, galley, foreground); ctx.request_repaint_after(std::time::Duration::from_millis(30)); } diff --git a/crates/ui-egui/src/panels/activity.rs b/crates/ui-egui/src/panels/activity.rs index dffdd1c4d33..6eb476145b3 100644 --- a/crates/ui-egui/src/panels/activity.rs +++ b/crates/ui-egui/src/panels/activity.rs @@ -72,7 +72,11 @@ pub fn show(app: &mut LightcraftApp, ctx: &egui::Context) { let max_height = (ctx.content_rect().height() - t.top_bar_h - 60.0).max(80.0); let mut cancel = None; let mut toggle = false; - let frame = egui::Frame::NONE.fill(t.chrome).stroke(Stroke::new(1.0, t.field_border)).corner_radius(6).inner_margin(Margin::same(MARGIN)); + let frame = egui::Frame::NONE + .fill(t.chrome) + .stroke(Stroke::new(1.0, t.field_border)) + .corner_radius(crate::theme::RADIUS_PANEL) + .inner_margin(Margin::same(MARGIN)); egui::Area::new(egui::Id::unique("activity-stack")).order(egui::Order::Middle).fixed_pos(pos2(8.0, t.top_bar_h + 8.0)).show(ctx, |ui| { // An area lays out in the size it had last frame, and the scroll area would take that as all the room there // is: the stack would never grow when rows are added. Give it the whole height below the top bar instead diff --git a/crates/ui-egui/src/panels/denoise.rs b/crates/ui-egui/src/panels/denoise.rs index 4bb3ceeb334..19d9b5be281 100644 --- a/crates/ui-egui/src/panels/denoise.rs +++ b/crates/ui-egui/src/panels/denoise.rs @@ -144,7 +144,7 @@ fn watch_downloads(app: &mut LightcraftApp, ctx: &egui::Context) { /// Per-photo AI Denoise switch, including a request waiting for model installation. pub fn detail_toggle(app: &mut LightcraftApp, ui: &mut egui::Ui, id: PhotoId, on: bool, applicable: bool) { let mut enabled = on || crate::model_setup::denoise_requested(app, id); - egui::Frame::NONE.inner_margin(egui::Margin { left: 24, right: 22, top: 6, bottom: 2 }).show(ui, |ui| { + egui::Frame::NONE.inner_margin(crate::widgets::row_margin(4, 2)).show(ui, |ui| { let r = ui.add_enabled(applicable, egui::Checkbox::new(&mut enabled, crate::i18n::tr("AI Denoise"))); register(ui, "denoise:enabled", r.rect); if r.changed() { @@ -174,7 +174,7 @@ pub(crate) fn settings_bar(ui: &mut egui::Ui, done: u64, total: u64, text: Strin pub fn detail_status(app: &mut LightcraftApp, ui: &mut egui::Ui, id: PhotoId, amount: f64) { let t = Tokens::get(ui.ctx()); let state = app.session.denoise_photo_state(id); - let pad = egui::Margin { left: 24, right: 22, top: 0, bottom: 6 }; + let pad = crate::widgets::row_margin(0, 4); let note = |ui: &mut egui::Ui, text: &str, color: egui::Color32| { ui.add(egui::Label::new(RichText::new(crate::i18n::tr(text)).size(11.0).color(color)).wrap()); }; diff --git a/crates/ui-egui/src/panels/edit.rs b/crates/ui-egui/src/panels/edit.rs index 31b1303bf5d..da098197c15 100644 --- a/crates/ui-egui/src/panels/edit.rs +++ b/crates/ui-egui/src/panels/edit.rs @@ -57,14 +57,14 @@ pub fn show(app: &mut LightcraftApp, ui: &mut egui::Ui, id: PhotoId) { } let preview_only = app.session.catalog.photo(id).and_then(|p| p.preview_only.clone()); + // (the histogram stands above the panel's scrolling content: `right::show`) if app.ui.soft_proof { soft_proofing(app, ui, id); } - // header: Edit + Auto / B&W / HDR + // header: Auto / B&W / HDR … Reset, one row that wraps when a language or a narrow panel needs it + // (no "Edit" title: the tool row says which panel this is) let mut reset_clicked = false; - let (hr, _) = ui.allocate_exact_size(vec2(ui.available_width(), 40.0), Sense::hover()); - ui.painter().text(pos2(hr.left() + 24.0, hr.bottom() - 10.0), Align2::LEFT_CENTER, crate::i18n::tr("Edit"), t.semibold(15.0), t.text); - egui::Frame::NONE.inner_margin(egui::Margin { left: 24, right: 22, top: 8, bottom: 14 }).show(ui, |ui| { + egui::Frame::NONE.inner_margin(crate::widgets::row_margin(5, 5)).show(ui, |ui| { let tip = reset_tip(&app.ui.settings.keymap, ui.ctx().os() == egui::os::OperatingSystem::Mac); let clicks = header_buttons(ui, crate::is_bw(&d), d.hdr.enabled, &tip); if clicks.auto { @@ -81,7 +81,7 @@ pub fn show(app: &mut LightcraftApp, ui: &mut egui::Ui, id: PhotoId) { }); if let Some(why) = &preview_only { let reload = egui::Frame::NONE - .inner_margin(egui::Margin { left: 24, right: 22, top: 0, bottom: 12 }) + .inner_margin(crate::widgets::row_margin(0, 4)) .show(ui, |ui| crate::widgets::preview_only_notice(ui, "edit", why)) .inner; if reload { @@ -93,7 +93,7 @@ pub fn show(app: &mut LightcraftApp, ui: &mut egui::Ui, id: PhotoId) { quick_develop(app, ui, n); } if app.session.auto_sync && n > 1 { - egui::Frame::NONE.inner_margin(egui::Margin { left: 24, right: 22, top: 0, bottom: 10 }).show(ui, |ui| { + egui::Frame::NONE.inner_margin(crate::widgets::row_margin(0, 4)).show(ui, |ui| { ui.horizontal(|ui| { ui.label(egui::RichText::new(crate::i18n::tr_format!("Auto Sync: edits apply to {n} photos", n = n)).color(t.accent).size(12.0)); ui.with_layout(egui::Layout::right_to_left(egui::Align::Center), |ui| { @@ -106,14 +106,14 @@ pub fn show(app: &mut LightcraftApp, ui: &mut egui::Ui, id: PhotoId) { } divider(ui); // profile row - egui::Frame::NONE.inner_margin(egui::Margin { left: 24, right: 22, top: 14, bottom: 14 }).show(ui, |ui| { + egui::Frame::NONE.inner_margin(crate::widgets::row_margin(4, 4)).show(ui, |ui| { ui.horizontal(|ui| { - ui.label(egui::RichText::new(crate::i18n::tr("Profile")).font(t.font(13.0)).color(t.text_dim)); + ui.label(egui::RichText::new(crate::i18n::tr("Profile")).font(t.font(12.0)).color(t.text_dim)); let name = app.session.profile_info(&d.profile.id).map(|(name, _)| name).unwrap_or("Color"); // a long name is cut short before Browse Profiles: a wider row would widen the whole panel's // content, and the sliders below would run past its edge - let max = ui.available_width() - 28.0 - ui.spacing().item_spacing.x; - let r = crate::widgets::dropdown_within(ui, "profile", crate::i18n::profile_label(&d.profile.id, name), t.font(15.0), t.text_label, max); + let max = ui.available_width() - 22.0 - ui.spacing().item_spacing.x; + let r = crate::widgets::dropdown_within(ui, "profile", crate::i18n::profile_label(&d.profile.id, name), t.font(13.0), t.text_label, max); let below = r.rect.bottom(); egui::Popup::menu(&r).show(|ui| profile_menu(app, ui, &d, below)); ui.with_layout(egui::Layout::right_to_left(egui::Align::Center), |ui| { @@ -121,7 +121,7 @@ pub fn show(app: &mut LightcraftApp, ui: &mut egui::Ui, id: PhotoId) { ui, "profileBrowser", Icon::ProfileGrid, - vec2(28.0, 28.0), + vec2(22.0, 22.0), false, true, crate::i18n::tr("Browse Profiles"), @@ -135,12 +135,12 @@ pub fn show(app: &mut LightcraftApp, ui: &mut egui::Ui, id: PhotoId) { }); if d.profile.id != "lc.color" { control(app, ui, &d, "profile.amount", true); - ui.add_space(6.0); + ui.add_space(3.0); } // a raw carrying its own local tone mapping (Apple ProRAW's gain table map): off renders it as // Lightroom Classic does, on as the camera does if app.session.source_info(id).local_tone.is_some() { - egui::Frame::NONE.inner_margin(egui::Margin { left: 24, right: 22, top: 0, bottom: 10 }).show(ui, |ui| { + egui::Frame::NONE.inner_margin(crate::widgets::row_margin(0, 4)).show(ui, |ui| { let mut on = d.profile.camera_local_tone; let r = ui.checkbox(&mut on, crate::i18n::tr("Camera local tone mapping")); crate::widgets::register(ui, "check:profile.cameraLocalTone", r.rect); @@ -156,17 +156,19 @@ pub fn show(app: &mut LightcraftApp, ui: &mut egui::Ui, id: PhotoId) { for c in ["light.exposure", "light.contrast", "light.highlights", "light.shadows", "light.whites", "light.blacks"] { control(app, ui, d, c, true); } - ui.add_space(6.0); + ui.add_space(3.0); if d.hdr.enabled { let open = app.ui.flyout_open("sdrRendition"); if flyout_row(ui, "sdrRendition", "SDR Rendition", Icon::Sliders, open).clicked() { app.ui.toggle_flyout("sdrRendition"); } if open { - for c in ["hdr.sdrBrightness", "hdr.sdrContrast", "hdr.sdrHighlights", "hdr.sdrShadows", "hdr.sdrWhites", "hdr.sdrClarity"] { - control(app, ui, d, c, true); - } - ui.add_space(6.0); + crate::widgets::slider_group(ui, "sdrRendition", |ui| { + for c in ["hdr.sdrBrightness", "hdr.sdrContrast", "hdr.sdrHighlights", "hdr.sdrShadows", "hdr.sdrWhites", "hdr.sdrClarity"] { + control(app, ui, d, c, true); + } + ui.add_space(3.0); + }); } } let open = app.ui.flyout_open("curve"); @@ -174,16 +176,18 @@ pub fn show(app: &mut LightcraftApp, ui: &mut egui::Ui, id: PhotoId) { app.ui.toggle_flyout("curve"); } if open { - curve_editor(app, ui, id, d); + crate::widgets::slider_group(ui, "curve", |ui| { + curve_editor(app, ui, id, d); + }); } - ui.add_space(8.0); + ui.add_space(4.0); }); section(app, ui, &d, "color", "Color", |app, ui, d| { // White balance row - egui::Frame::NONE.inner_margin(egui::Margin { left: 24, right: 22, top: 2, bottom: 2 }).show(ui, |ui| { + egui::Frame::NONE.inner_margin(crate::widgets::row_margin(2, 2)).show(ui, |ui| { ui.horizontal(|ui| { - ui.label(egui::RichText::new(crate::i18n::tr("White Balance")).font(t.font(13.0)).color(t.text_dim)); - let r = crate::widgets::dropdown(ui, "wbMode", crate::i18n::tr(d.wb.mode.label()), t.font(14.0), t.text_label); + ui.label(egui::RichText::new(crate::i18n::tr("White Balance")).font(t.font(12.0)).color(t.text_dim)); + let r = crate::widgets::dropdown(ui, "wbMode", crate::i18n::tr(d.wb.mode.label()), t.font(12.5), t.text_label); egui::Popup::menu(&r).show(|ui| { for m in WbMode::ALL { if m == WbMode::Custom { @@ -201,7 +205,7 @@ pub fn show(app: &mut LightcraftApp, ui: &mut egui::Ui, id: PhotoId) { ui, "wbPicker", Icon::Picker, - vec2(28.0, 28.0), + vec2(22.0, 22.0), active, true, crate::i18n::tr("White Balance Selector (W)"), @@ -229,13 +233,15 @@ pub fn show(app: &mut LightcraftApp, ui: &mut egui::Ui, id: PhotoId) { } control(app, ui, d, "color.vibrance", true); control(app, ui, d, "color.saturation", true); - ui.add_space(6.0); + ui.add_space(3.0); let open = app.ui.flyout_open("mixer"); if flyout_row(ui, "mixer", if crate::is_bw(d) { "B&W Mixer" } else { "Color Mixer" }, Icon::Radial, open).clicked() { app.ui.toggle_flyout("mixer"); } if open { - mixer(app, ui, d); + crate::widgets::slider_group(ui, "mixer", |ui| { + mixer(app, ui, d); + }); } if !crate::is_bw(d) { let open = app.ui.flyout_open("pointColor"); @@ -243,7 +249,9 @@ pub fn show(app: &mut LightcraftApp, ui: &mut egui::Ui, id: PhotoId) { app.ui.toggle_flyout("pointColor"); } if open { - point_color(app, ui, d); + crate::widgets::slider_group(ui, "pointColor", |ui| { + point_color(app, ui, d); + }); } } let open = app.ui.flyout_open("grading"); @@ -251,9 +259,11 @@ pub fn show(app: &mut LightcraftApp, ui: &mut egui::Ui, id: PhotoId) { app.ui.toggle_flyout("grading"); } if open { - grading(app, ui, d, id); + crate::widgets::slider_group(ui, "grading", |ui| { + grading(app, ui, d, id); + }); } - ui.add_space(8.0); + ui.add_space(4.0); }); section(app, ui, &d, "effects", "Effects", |app, ui, d| { for c in ["effects.texture", "effects.clarity", "effects.dehaze"] { @@ -270,7 +280,7 @@ pub fn show(app: &mut LightcraftApp, ui: &mut egui::Ui, id: PhotoId) { let items: Vec<(&str, &str)> = styles.iter().map(|(_, l, k)| (*l, *k)).collect(); let active = styles.iter().position(|(v, _, _)| *v == d.vignette.style); let mut chosen = None; - egui::Frame::NONE.inner_margin(egui::Margin { left: 24, right: 22, top: 2, bottom: 4 }).show(ui, |ui| { + egui::Frame::NONE.inner_margin(crate::widgets::row_margin(2, 4)).show(ui, |ui| { chosen = crate::widgets::segmented(ui, "vignetteStyle", &items, active, 3); }); if let Some(i) = chosen { @@ -288,9 +298,10 @@ pub fn show(app: &mut LightcraftApp, ui: &mut egui::Ui, id: PhotoId) { for c in ["grain.amount", "grain.size", "grain.roughness"] { control(app, ui, d, c, c == "grain.amount" || d.grain.amount != 0.0); } - ui.add_space(8.0); + ui.add_space(4.0); }); section(app, ui, &d, "detail", "Detail", |app, ui, d| { + sub_title(ui, crate::i18n::tr("Sharpening")); for c in ["detail.sharpenAmount", "detail.sharpenRadius", "detail.sharpenDetail", "detail.sharpenMasking"] { control(app, ui, d, c, c == "detail.sharpenAmount" || d.detail.sharpen_amount > 0.0); } @@ -307,11 +318,11 @@ pub fn show(app: &mut LightcraftApp, ui: &mut egui::Ui, id: PhotoId) { { control(app, ui, d, c, true); } - ui.add_space(8.0); + ui.add_space(4.0); }); section(app, ui, &d, "optics", "Optics", |app, ui, d| { let has_lens = app.session.catalog.photo(id).is_some_and(|p| p.embedded_lens.is_some()); - egui::Frame::NONE.inner_margin(egui::Margin { left: 24, right: 22, top: 4, bottom: 4 }).show(ui, |ui| { + egui::Frame::NONE.inner_margin(crate::widgets::row_margin(4, 4)).show(ui, |ui| { let mut ca = d.optics.remove_ca; if ui.checkbox(&mut ca, crate::i18n::tr("Remove Chromatic Aberration")).changed() { let _ = app.run("develop.merge", json!({"settings": {"optics": {"remove_ca": ca}}, "label": "Remove CA"})); @@ -327,6 +338,7 @@ pub fn show(app: &mut LightcraftApp, ui: &mut egui::Ui, id: PhotoId) { } }); if d.optics.lens_profile { + sub_title(ui, crate::i18n::tr("Profile")); for c in ["optics.profileDistortion", "optics.profileVignetting"] { control(app, ui, d, c, has_lens); } @@ -336,25 +348,29 @@ pub fn show(app: &mut LightcraftApp, ui: &mut egui::Ui, id: PhotoId) { control(app, ui, d, c, true); } control(app, ui, d, "optics.vignettingMidpoint", d.optics.vignetting != 0.0); - ui.add_space(6.0); + ui.add_space(3.0); let open = app.ui.flyout_open("defringe"); if flyout_row(ui, "defringe", crate::i18n::tr("Defringe"), Icon::Picker, open).clicked() { app.ui.toggle_flyout("defringe"); } if open { - control(app, ui, d, "optics.defringePurple", true); - let on = d.optics.defringe_purple_amount > 0.0; - control(app, ui, d, "optics.defringePurpleHueLo", on); - control(app, ui, d, "optics.defringePurpleHueHi", on); - control(app, ui, d, "optics.defringeGreen", true); - let on = d.optics.defringe_green_amount > 0.0; - control(app, ui, d, "optics.defringeGreenHueLo", on); - control(app, ui, d, "optics.defringeGreenHueHi", on); - sub_title(ui, crate::i18n::tr("Lateral Chromatic Aberration")); - control(app, ui, d, "optics.caRed", true); - control(app, ui, d, "optics.caBlue", true); + crate::widgets::slider_group(ui, "defringe", |ui| { + sub_title(ui, crate::i18n::tr("Purple")); + control(app, ui, d, "optics.defringePurple", true); + let on = d.optics.defringe_purple_amount > 0.0; + control(app, ui, d, "optics.defringePurpleHueLo", on); + control(app, ui, d, "optics.defringePurpleHueHi", on); + sub_title(ui, crate::i18n::tr("Green")); + control(app, ui, d, "optics.defringeGreen", true); + let on = d.optics.defringe_green_amount > 0.0; + control(app, ui, d, "optics.defringeGreenHueLo", on); + control(app, ui, d, "optics.defringeGreenHueHi", on); + sub_title(ui, crate::i18n::tr("Lateral Chromatic Aberration")); + control(app, ui, d, "optics.caRed", true); + control(app, ui, d, "optics.caBlue", true); + }); } - ui.add_space(8.0); + ui.add_space(4.0); }); // Lightroom Classic's Calibration panel (the cloud app hides it): last, like there. section(app, ui, &d, "calibration", "Calibration", |app, ui, d| { @@ -365,7 +381,7 @@ pub fn show(app: &mut LightcraftApp, ui: &mut egui::Ui, id: PhotoId) { control(app, ui, d, &format!("calibration.{k}Hue"), true); control(app, ui, d, &format!("calibration.{k}Sat"), true); } - ui.add_space(8.0); + ui.add_space(4.0); }); ui.add_space(40.0); // A pending numeric edit commits on blur before the explicit Reset takes precedence. diff --git a/crates/ui-egui/src/panels/edit/curve.rs b/crates/ui-egui/src/panels/edit/curve.rs index 0eec3a5e447..ea64652691e 100644 --- a/crates/ui-egui/src/panels/edit/curve.rs +++ b/crates/ui-egui/src/panels/edit/curve.rs @@ -165,7 +165,7 @@ fn param_drag(app: &mut LightcraftApp, ui: &mut egui::Ui, r: Rect, resp: &egui:: pub(super) fn curve_editor(app: &mut LightcraftApp, ui: &mut egui::Ui, id: PhotoId, d: &DevelopSettings) { let t = Tokens::get(ui.ctx()); // channel selector - egui::Frame::NONE.inner_margin(egui::Margin { left: 24, right: 22, top: 6, bottom: 4 }).show(ui, |ui| { + egui::Frame::NONE.inner_margin(crate::widgets::row_margin(4, 4)).show(ui, |ui| { ui.horizontal(|ui| { for (ch, c) in [ ("parametric", Color32::from_gray(200)), @@ -396,7 +396,7 @@ pub(super) fn curve_editor(app: &mut LightcraftApp, ui: &mut egui::Ui, id: Photo fn curve_footer(app: &mut LightcraftApp, ui: &mut egui::Ui, d: &DevelopSettings) { use lightcraft_engine::cmd::curves::{all_presets, matching_preset}; let t = Tokens::get(ui.ctx()); - egui::Frame::NONE.inner_margin(egui::Margin { left: 24, right: 22, top: 2, bottom: 4 }).show(ui, |ui| { + egui::Frame::NONE.inner_margin(crate::widgets::row_margin(2, 4)).show(ui, |ui| { ui.horizontal(|ui| { ui.label(RichText::new(crate::i18n::tr("Point Curve")).font(t.font(12.0)).color(t.text_label)); let current = matching_preset(&app.session, &d.curve); diff --git a/crates/ui-egui/src/panels/edit/grading.rs b/crates/ui-egui/src/panels/edit/grading.rs index 61f154300da..69342e4a5d7 100644 --- a/crates/ui-egui/src/panels/edit/grading.rs +++ b/crates/ui-egui/src/panels/edit/grading.rs @@ -19,7 +19,7 @@ const GRADING_WHEELS: [(&str, &str); 3] = [("shadows", "Shadows"), ("midtones", pub(super) fn grading(app: &mut LightcraftApp, ui: &mut egui::Ui, d: &DevelopSettings, photo: PhotoId) { let mode = GRADING_TABS.iter().find(|(k, ..)| *k == app.ui.grading_mode).map_or("3way", |(k, ..)| *k); - egui::Frame::NONE.inner_margin(egui::Margin { left: 24, right: 22, top: 6, bottom: 2 }).show(ui, |ui| { + egui::Frame::NONE.inner_margin(crate::widgets::row_margin(4, 2)).show(ui, |ui| { ui.horizontal(|ui| { ui.spacing_mut().item_spacing.x = 4.0; for (key, tip, icon) in GRADING_TABS { diff --git a/crates/ui-egui/src/panels/edit/histogram.rs b/crates/ui-egui/src/panels/edit/histogram.rs index df21b1d7982..25456ef0738 100644 --- a/crates/ui-egui/src/panels/edit/histogram.rs +++ b/crates/ui-egui/src/panels/edit/histogram.rs @@ -234,7 +234,7 @@ pub(crate) fn histogram(app: &mut LightcraftApp, ui: &mut egui::Ui, id: PhotoId) pub(super) fn soft_proofing(app: &mut LightcraftApp, ui: &mut egui::Ui, id: PhotoId) { use lightcraft_engine::pipeline::OutputSpace; let t = Tokens::get(ui.ctx()); - egui::Frame::NONE.inner_margin(egui::Margin { left: 24, right: 22, top: 8, bottom: 6 }).show(ui, |ui| { + egui::Frame::NONE.inner_margin(crate::widgets::row_margin(4, 4)).show(ui, |ui| { ui.horizontal(|ui| { ui.label(RichText::new(crate::i18n::tr("Soft Proofing")).color(t.text).strong()); ui.with_layout(egui::Layout::right_to_left(egui::Align::Center), |ui| { diff --git a/crates/ui-egui/src/panels/edit/mixer.rs b/crates/ui-egui/src/panels/edit/mixer.rs index 0bddba375d8..6bcf544ad89 100644 --- a/crates/ui-egui/src/panels/edit/mixer.rs +++ b/crates/ui-egui/src/panels/edit/mixer.rs @@ -8,7 +8,7 @@ pub(super) fn mixer(app: &mut LightcraftApp, ui: &mut egui::Ui, d: &DevelopSetti let t = Tokens::get(ui.ctx()); let bands = lightcraft_develop::MIXER_BANDS; let sel = bands.iter().position(|b| *b == app.ui.mixer_mode).unwrap_or(0); - egui::Frame::NONE.inner_margin(egui::Margin { left: 24, right: 22, top: 8, bottom: 4 }).show(ui, |ui| { + egui::Frame::NONE.inner_margin(crate::widgets::row_margin(4, 4)).show(ui, |ui| { ui.horizontal(|ui| { ui.spacing_mut().item_spacing.x = 5.0; for (i, b) in bands.iter().enumerate() { @@ -27,7 +27,7 @@ pub(super) fn mixer(app: &mut LightcraftApp, ui: &mut egui::Ui, d: &DevelopSetti }); }); // targeted adjustment: pick the attribute, then drag on the photo - egui::Frame::NONE.inner_margin(egui::Margin { left: 24, right: 22, top: 2, bottom: 2 }).show(ui, |ui| { + egui::Frame::NONE.inner_margin(crate::widgets::row_margin(2, 2)).show(ui, |ui| { ui.horizontal(|ui| { ui.spacing_mut().item_spacing.x = 6.0; let (r, _) = ui.allocate_exact_size(vec2(20.0, 20.0), Sense::hover()); @@ -85,7 +85,7 @@ pub(super) fn point_color(app: &mut LightcraftApp, ui: &mut egui::Ui, d: &Develo app.ui.point_color = n - 1; } let sel = app.ui.point_color; - egui::Frame::NONE.inner_margin(egui::Margin { left: 24, right: 22, top: 8, bottom: 4 }).show(ui, |ui| { + egui::Frame::NONE.inner_margin(crate::widgets::row_margin(4, 4)).show(ui, |ui| { ui.horizontal(|ui| { ui.spacing_mut().item_spacing.x = 5.0; let active = app.ui.tool == "pointColor"; @@ -118,7 +118,7 @@ pub(super) fn point_color(app: &mut LightcraftApp, ui: &mut egui::Ui, d: &Develo }); }); if n == 0 { - egui::Frame::NONE.inner_margin(egui::Margin { left: 24, right: 22, top: 2, bottom: 8 }).show(ui, |ui| { + egui::Frame::NONE.inner_margin(crate::widgets::row_margin(2, 4)).show(ui, |ui| { ui.label(egui::RichText::new(crate::i18n::tr("Pick a colour on the photo with the eyedropper.")).size(12.0).color(t.text_dim)); }); return; @@ -130,7 +130,7 @@ pub(super) fn point_color(app: &mut LightcraftApp, ui: &mut egui::Ui, d: &Develo for k in ["range", "hueRange", "satRange", "lumRange"] { control(app, ui, d, &format!("pointColor.{sel}.{k}"), true); } - egui::Frame::NONE.inner_margin(egui::Margin { left: 24, right: 22, top: 4, bottom: 8 }).show(ui, |ui| { + egui::Frame::NONE.inner_margin(crate::widgets::row_margin(4, 4)).show(ui, |ui| { ui.horizontal(|ui| { let mut v = app.ui.point_color_visualize; if ui.checkbox(&mut v, crate::i18n::tr("Visualize range")).changed() { diff --git a/crates/ui-egui/src/panels/edit/sliders.rs b/crates/ui-egui/src/panels/edit/sliders.rs index 78a402087e4..6a2b1b6f6fb 100644 --- a/crates/ui-egui/src/panels/edit/sliders.rs +++ b/crates/ui-egui/src/panels/edit/sliders.rs @@ -1,6 +1,6 @@ use super::{ - Align2, ControlSpec, DevelopSettings, Icon, LightcraftApp, PhotoId, Section, Sense, SliderOut, Tokens, Track, Value, controls, divider, json, - pos2, register, section_header, slider, vec2, + ControlSpec, DevelopSettings, Icon, LightcraftApp, PhotoId, Section, Sense, SliderOut, Tokens, Track, Value, controls, divider, json, pos2, + register, section_header, vec2, }; /// Commit a slider interaction: begin → live updates → end, so a drag is one undo step. @@ -26,10 +26,39 @@ pub fn apply_slider_out( pub(crate) fn control(app: &mut LightcraftApp, ui: &mut egui::Ui, d: &DevelopSettings, id: &str, enabled: bool) { let Some(spec) = controls::find(id) else { return }; let v = controls::get(d, id).unwrap_or(spec.default); - let out = slider(ui, spec, v, enabled, None); + // (the short name is for the eye; screen readers announce the full one) + let out = crate::widgets::slider_named(ui, spec, v, enabled, short_name(id), None); apply_slider_out(app, spec, out, |app, v| app.run("develop.set", json!({"control": id, "value": v}))); } +/// The short name a slider shows under its group's caption (Grain ▸ Amount, Red Primary ▸ Hue, +/// as Lightroom Classic labels them), so a section's name column stays narrow and its tracks +/// long. The control keeps its full name everywhere else (commands, the console, menus, and what +/// screen readers announce). +pub(crate) fn short_name(id: &str) -> Option<&'static str> { + Some(match id { + "vignette.amount" | "grain.amount" | "detail.sharpenAmount" | "optics.defringePurple" | "optics.defringeGreen" => "Amount", + "detail.nrLuminance" => "Luminance", + "detail.nrColor" => "Color", + "optics.profileDistortion" => "Distortion", + "optics.profileVignetting" => "Vignetting", + "optics.defringePurpleHueLo" | "optics.defringeGreenHueLo" => "Hue Low", + "optics.defringePurpleHueHi" | "optics.defringeGreenHueHi" => "Hue High", + "optics.caRed" => "Red/Cyan", + "optics.caBlue" => "Blue/Yellow", + "calibration.shadowsTint" => "Tint", + "calibration.redHue" | "calibration.greenHue" | "calibration.blueHue" => "Hue", + "calibration.redSat" | "calibration.greenSat" | "calibration.blueSat" => "Saturation", + "hdr.sdrBrightness" => "Brightness", + "hdr.sdrContrast" => "Contrast", + "hdr.sdrHighlights" => "Highlights", + "hdr.sdrShadows" => "Shadows", + "hdr.sdrWhites" => "Whites", + "hdr.sdrClarity" => "Clarity", + _ => return None, + }) +} + /// Relative temperature scale for rendered (non-raw) files: −100..100 ↔ Kelvin via mired shift. pub(super) const REL_TEMP: ControlSpec = ControlSpec { id: "wb.tempRel", @@ -172,8 +201,16 @@ fn profile_menu_rows(app: &mut LightcraftApp, ui: &mut egui::Ui, d: &DevelopSett pub fn sub_title(ui: &mut egui::Ui, title: &str) { let t = Tokens::get(ui.ctx()); - let (r, _) = ui.allocate_exact_size(vec2(ui.available_width(), 30.0), Sense::hover()); - ui.painter().text(pos2(r.left() + 24.0, r.center().y + 4.0), Align2::LEFT_CENTER, crate::i18n::tr(title), t.semibold(13.0), t.text_label); + let (r, _) = ui.allocate_exact_size(vec2(ui.available_width(), 20.0), Sense::hover()); + let left = r.left() + crate::widgets::PAD_L; + let right = r.right() - crate::widgets::PAD_R; + let g = crate::widgets::one_line(ui.painter(), crate::i18n::tr(title), t.semibold(11.0), t.text_dim, (right - left).max(1.0)); + let y = r.center().y + 2.0; + let text_right = left + g.size().x; + ui.painter().galley(pos2(left, y - g.size().y / 2.0), g, t.text_dim); + if right > text_right + 12.0 { + ui.painter().hline((text_right + 6.0)..=right, y.round() + 0.5, egui::Stroke::new(1.0, t.divider.gamma_multiply(0.75))); + } } pub(super) fn section( @@ -221,7 +258,7 @@ pub(super) fn hdr_row(app: &mut LightcraftApp, ui: &mut egui::Ui, d: &DevelopSet if !d.hdr.enabled { return; } - egui::Frame::NONE.inner_margin(egui::Margin { left: 24, right: 22, top: 4, bottom: 4 }).show(ui, |ui| { + egui::Frame::NONE.inner_margin(crate::widgets::row_margin(4, 4)).show(ui, |ui| { let mut v = app.ui.hdr_visualize; let r = ui.checkbox(&mut v, "Visualize HDR"); register(ui, "check:hdrVisualize", r.rect); @@ -236,7 +273,7 @@ pub(super) fn hdr_row(app: &mut LightcraftApp, ui: &mut egui::Ui, d: &DevelopSet /// photo from its own value. pub(super) fn quick_develop(app: &mut LightcraftApp, ui: &mut egui::Ui, n: usize) { let t = Tokens::get(ui.ctx()); - egui::Frame::NONE.inner_margin(egui::Margin { left: 24, right: 22, top: 0, bottom: 10 }).show(ui, |ui| { + egui::Frame::NONE.inner_margin(crate::widgets::row_margin(0, 4)).show(ui, |ui| { ui.label(egui::RichText::new(crate::i18n::tr_format!("Quick Develop · {n} photos", n = n)).color(t.text_label).size(12.5)); ui.add_space(4.0); let rows: [(&str, &str, f64, f64); 9] = [ @@ -309,7 +346,7 @@ pub(super) struct HeaderClicks { /// row starts the next one (long translations in a narrow panel, such as German *Zurücksetzen* beside HDR), so none /// covers another; Reset stays right-aligned on whichever row it lands. pub(super) fn header_buttons(ui: &mut egui::Ui, bw: bool, hdr: bool, reset_tip: &str) -> HeaderClicks { - const GAP: f32 = 8.0; + const GAP: f32 = 4.0; let mut clicks = HeaderClicks::default(); let avail = ui.available_width(); let left = [("auto", "Auto", false), ("bw", "B&W", bw), ("hdr", "HDR", hdr)]; @@ -378,6 +415,28 @@ pub(super) fn reset_tip(keymap: &crate::shortcuts::Keymap, mac: bool) -> String mod tests { use super::*; + /// Every short slider name has a translation in every catalog: a missing one would show the + /// English name under a translated caption. + #[test] + fn every_short_name_is_translated() { + let names: std::collections::BTreeSet<&str> = lightcraft_develop::CONTROLS.iter().filter_map(|c| super::short_name(c.id)).collect(); + assert!(names.contains("Hue Low") && names.contains("Brightness"), "{names:?}"); + let dir = std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("locales"); + let mut catalogs = 0; + for entry in std::fs::read_dir(dir).unwrap() { + let path = entry.unwrap().path(); + let name = path.file_name().unwrap().to_string_lossy().to_string(); + if !name.ends_with(".json") || name.ends_with("-formats.json") { + continue; + } + catalogs += 1; + let catalog: std::collections::BTreeMap = serde_json::from_str(&std::fs::read_to_string(&path).unwrap()).unwrap(); + let missing: Vec<&&str> = names.iter().filter(|n| !catalog.contains_key(**n)).collect(); + assert!(missing.is_empty(), "{name} lacks {missing:?}"); + } + assert!(catalogs > 0); + } + /// The Edit header's buttons never cover each other or run past the panel, in any language: a button that doesn't /// fit starts the next row, and Reset stays right-aligned. Before, Reset covered HDR in 11 of the 18 languages at /// the default 222 pt (German *Zurücksetzen* among them) and in all but the two Chinese ones at some width. 200 pt @@ -419,7 +478,8 @@ mod tests { } } crate::i18n::set_language(Locale::En); - assert!(wrapped.contains(&(Locale::De, 222.0)), "German wraps in the default panel: {wrapped:?}"); + // (the dense buttons fit German's Zurücksetzen in one row at 222 pt; at the narrowest panel it wraps) + assert!(wrapped.contains(&(Locale::De, 200.0)), "German wraps in the narrowest panel: {wrapped:?}"); // English keeps its single row from the default width up assert!(!wrapped.iter().any(|&(l, w)| l == Locale::En && w >= 222.0), "{wrapped:?}"); } diff --git a/crates/ui-egui/src/panels/keyword_list.rs b/crates/ui-egui/src/panels/keyword_list.rs index 2da58c594ac..8ecef903ca3 100644 --- a/crates/ui-egui/src/panels/keyword_list.rs +++ b/crates/ui-egui/src/panels/keyword_list.rs @@ -178,9 +178,9 @@ fn row(app: &mut LightcraftApp, ui: &mut egui::Ui, r: &Row, selection: &[PhotoId let picked = app.ui.keyword_list_selected.as_deref().is_some_and(|k| same(k, &r.path)); let inner = Rect::from_min_max(rect.min + vec2(16.0, 0.0), rect.max - vec2(16.0, 0.0)); if picked { - ui.painter().rect_filled(inner, 4.0, t.canvas); + ui.painter().rect_filled(inner, crate::theme::RADIUS, t.canvas); } else if resp.hovered() { - ui.painter().rect_filled(inner, 4.0, t.hover.gamma_multiply(0.6)); + ui.painter().rect_filled(inner, crate::theme::RADIUS, t.hover.gamma_multiply(0.6)); } let x = inner.left() + 4.0 + r.depth as f32 * INDENT; let cy = rect.center().y; diff --git a/crates/ui-egui/src/panels/keywording.rs b/crates/ui-egui/src/panels/keywording.rs index 4861d4c6fa7..88ba3a67cb0 100644 --- a/crates/ui-egui/src/panels/keywording.rs +++ b/crates/ui-egui/src/panels/keywording.rs @@ -450,7 +450,7 @@ pub(crate) fn offers_below(ui: &egui::Ui, below: egui::Rect, offers: &Offers, at let resp = ui.interact(r, id, Sense::click()).union(resp); resp.widget_info(|| egui::WidgetInfo::selected(egui::Role::Button, true, lit, said)); if lit || resp.hovered() { - ui.painter().rect_filled(r, 4.0, if lit { t.pressed } else { t.hover }); + ui.painter().rect_filled(r, crate::theme::RADIUS, if lit { t.pressed } else { t.hover }); } let font = t.font(13.0); let measure = |s: &str, f: &egui::FontId| ui.painter().layout_no_wrap(s.to_string(), f.clone(), t.text).size().x; diff --git a/crates/ui-egui/src/panels/left/rows.rs b/crates/ui-egui/src/panels/left/rows.rs index 08877a8ac84..1ed63f0e03a 100644 --- a/crates/ui-egui/src/panels/left/rows.rs +++ b/crates/ui-egui/src/panels/left/rows.rs @@ -177,10 +177,10 @@ fn draw_row(app: &mut LightcraftApp, ui: &mut egui::Ui, row: Row) -> egui::Respo let edge = r.right().min(visible_right); let inner = Rect::from_min_max(r.min + vec2(8.0, 0.0), pos2((r.right() - 8.0).min(edge - 8.0).max(r.left() + 8.0), r.bottom())); if selected { - ui.painter().rect_filled(inner, 4.0, t.canvas); + ui.painter().rect_filled(inner, crate::theme::RADIUS, t.canvas); register(ui, format!("highlight:{id}"), inner); } else if resp.hovered() { - ui.painter().rect_filled(inner, 4.0, t.hover.gamma_multiply(0.6)); + ui.painter().rect_filled(inner, crate::theme::RADIUS, t.hover.gamma_multiply(0.6)); } paint( ui.painter(), diff --git a/crates/ui-egui/src/panels/left/sections.rs b/crates/ui-egui/src/panels/left/sections.rs index b7a3ad39021..c375cfbfc5f 100644 --- a/crates/ui-egui/src/panels/left/sections.rs +++ b/crates/ui-egui/src/panels/left/sections.rs @@ -213,7 +213,7 @@ fn section_header(app: &mut LightcraftApp, ui: &mut egui::Ui, section: SidebarSe let hovered = resp.hovered() && app.ui.dragging_section.is_none(); if hovered { let bar = Rect::from_min_max(r.min + vec2(8.0, 2.0), pos2((edge - 8.0).max(r.left() + 8.0), r.bottom() - 2.0)); - ui.painter().rect_filled(bar, 4.0, t.hover.gamma_multiply(0.6)); + ui.painter().rect_filled(bar, crate::theme::RADIUS, t.hover.gamma_multiply(0.6)); } let c = pos2(r.left() + 10.0, r.center().y); register(ui, format!("{widget}Chevron:{id}"), Rect::from_center_size(c, vec2(16.0, 16.0))); diff --git a/crates/ui-egui/src/panels/mask_effects.rs b/crates/ui-egui/src/panels/mask_effects.rs index d1c4fe1f498..cff5978a2c4 100644 --- a/crates/ui-egui/src/panels/mask_effects.rs +++ b/crates/ui-egui/src/panels/mask_effects.rs @@ -147,7 +147,7 @@ fn menu_rows(effects: &[MaskEffect], query: &str) -> Vec<(String, String, String /// The Effect menu above the mask's sliders. pub fn effect_row(app: &mut LightcraftApp, ui: &mut egui::Ui, mask: &Mask) { let t = Tokens::get(ui.ctx()); - egui::Frame::NONE.inner_margin(egui::Margin { left: 24, right: 22, top: 2, bottom: 4 }).show(ui, |ui| { + egui::Frame::NONE.inner_margin(crate::widgets::row_margin(2, 4)).show(ui, |ui| { ui.horizontal(|ui| { ui.label(egui::RichText::new(crate::i18n::tr("Effect")).font(t.font(12.0)).color(t.text_label)); let current = fx::matching_effect(&app.session, &mask.adjust); @@ -227,7 +227,7 @@ fn menu(app: &mut LightcraftApp, ui: &mut egui::Ui, mask: &Mask, current: Option } let lit = st.highlight == Some(i) || resp.hovered(); if lit { - ui.painter().rect_filled(rect, 3.0, t.hover); + ui.painter().rect_filled(rect, crate::theme::RADIUS, t.hover); } if current == Some(name.as_str()) { ui.painter().text(rect.left_center() + vec2(4.0, 0.0), egui::Align2::LEFT_CENTER, "✓", t.font(12.0), t.accent); @@ -548,9 +548,9 @@ pub fn manage_body( register(ui, format!("effectRow:{}", e.name), rect); } if sel { - ui.painter().rect_filled(rect, 3.0, t.tool_active); + ui.painter().rect_filled(rect, crate::theme::RADIUS, t.tool_active); } else if r.hovered() { - ui.painter().rect_filled(rect, 3.0, t.hover); + ui.painter().rect_filled(rect, crate::theme::RADIUS, t.hover); } let g = crate::widgets::one_line(ui.painter(), &display_name(&e.name), t.font(12.5), t.text, rect.width() - 8.0); let elided = g.elided; diff --git a/crates/ui-egui/src/panels/masking.rs b/crates/ui-egui/src/panels/masking.rs index ce28482c464..bb0d50173ed 100644 --- a/crates/ui-egui/src/panels/masking.rs +++ b/crates/ui-egui/src/panels/masking.rs @@ -61,6 +61,8 @@ fn kind_label(s: &MaskShape) -> (&'static str, Icon) { const TILE: f32 = 52.0; const TILE_GAP: f32 = 6.0; +/// Height of a Create New Mask tile. +const TILE_H: f32 = 36.0; /// Room left and right of a tile's label. const TILE_PAD: f32 = 3.0; @@ -90,9 +92,9 @@ pub fn show(app: &mut LightcraftApp, ui: &mut egui::Ui, id: PhotoId) { let t = Tokens::get(ui.ctx()); let d = app.session.develop_of(id).unwrap_or_default(); header(ui, "Masking"); - egui::Frame::NONE.inner_margin(egui::Margin { left: 24, right: 22, top: 0, bottom: 10 }).show(ui, |ui| { + egui::Frame::NONE.inner_margin(crate::widgets::row_margin(0, 4)).show(ui, |ui| { ui.label(egui::RichText::new(crate::i18n::tr("Create New Mask")).color(t.text_dim)); - ui.add_space(6.0); + ui.add_space(3.0); let tiles: [(&str, &str, Icon); 10] = [ ("object", "Object", Icon::Subject), ("prompt", "Describe", Icon::Subject), @@ -116,16 +118,16 @@ pub fn show(app: &mut LightcraftApp, ui: &mut egui::Ui, id: PhotoId) { let (cols, tile, size) = tile_layout(ui.available_width(), widest); egui::Grid::new("mask-tiles").spacing(vec2(TILE_GAP, TILE_GAP)).show(ui, |ui| { for (i, (kind, label, icon)) in tiles.iter().enumerate() { - let (r, resp) = ui.allocate_exact_size(vec2(tile, 52.0), Sense::click()); + let (r, resp) = ui.allocate_exact_size(vec2(tile, TILE_H), Sense::click()); crate::widgets::announce(&resp, crate::i18n::tr(label)); register(ui, format!("maskNew:{kind}"), r); - ui.painter().rect_filled(r, 4.0, if resp.hovered() { t.hover } else { t.inset }); - paint(ui.painter(), Rect::from_center_size(r.center() - vec2(0.0, 7.0), vec2(20.0, 20.0)), *icon, t.text_label); + ui.painter().rect_filled(r, crate::theme::RADIUS, if resp.hovered() { t.hover } else { t.inset }); + paint(ui.painter(), Rect::from_center_size(r.center() - vec2(0.0, 5.0), vec2(14.0, 14.0)), *icon, t.text_label); // (cut short only in a panel too narrow for the label: the full name on hover) let label = crate::i18n::tr(label); let g = one_line(ui.painter(), label, t.font(size), t.text_dim, tile - 2.0 * TILE_PAD); let elided = g.elided; - let at = pos2(r.center().x, r.bottom() - 9.0) - g.size() / 2.0; + let at = pos2(r.center().x, r.bottom() - 7.0) - g.size() / 2.0; register(ui, format!("maskNewLabel:{kind}"), Rect::from_min_size(at, g.size())); ui.painter().galley(at, g, t.text_dim); let resp = if elided { resp.on_hover_text(label) } else { resp }; @@ -305,7 +307,7 @@ pub fn show(app: &mut LightcraftApp, ui: &mut egui::Ui, id: PhotoId) { let Some(mid) = app.session.active_mask else { return }; let Some(m) = d.masks.iter().find(|m| m.id == mid).cloned() else { return }; divider(ui); - egui::Frame::NONE.inner_margin(egui::Margin { left: 24, right: 22, top: 8, bottom: 8 }).show(ui, |ui| { + egui::Frame::NONE.inner_margin(crate::widgets::row_margin(4, 4)).show(ui, |ui| { for (i, c) in m.components.iter().enumerate() { let (kind, icon) = kind_label(&c.shape); let label = c.name.clone().unwrap_or_else(|| match &c.shape { @@ -382,12 +384,23 @@ pub fn show(app: &mut LightcraftApp, ui: &mut egui::Ui, id: PhotoId) { brush_settings(app, ui); } divider(ui); + // the mask's edges: a setting of its shape, not one of its effects, so above them + let refine = ControlSpec { + id: "refine", + label: "Refine Edges", + section: Section::Light, + min: 0.0, + max: 100.0, + default: 0.0, + step: 1.0, + decimals: 0, + track: Track::Plain, + }; + let out = slider(ui, &refine, m.refine, true, None); + apply_slider_out(app, &refine, out, |app, v| app.run("mask.refine", json!({"value": v}))); + divider(ui); super::mask_effects::effect_row(app, ui, &m); - for s in LOCAL { - let v = local_get(&m.adjust, s.id); - let out = slider(ui, s, v, true, None); - apply_slider_out(app, s, out, |app, v| app.run("mask.adjust", json!({"values": {s.id: v}}))); - } + // how strongly the mask's adjustments apply, above them let amt = ControlSpec { id: "amount", label: "Amount", @@ -401,23 +414,46 @@ pub fn show(app: &mut LightcraftApp, ui: &mut egui::Ui, id: PhotoId) { }; let out = slider(ui, &amt, m.adjust.amount, true, None); apply_slider_out(app, &amt, out, |app, v| app.run("mask.adjust", json!({"values": {"amount": v}}))); - let refine = ControlSpec { - id: "refine", - label: "Refine Edges", - section: Section::Light, - min: 0.0, - max: 100.0, - default: 0.0, - step: 1.0, - decimals: 0, - track: Track::Plain, - }; - let out = slider(ui, &refine, m.refine, true, None); - apply_slider_out(app, &refine, out, |app, v| app.run("mask.refine", json!({"value": v}))); + ui.add_space(2.0); + // the effect sliders in sections, as the Edit panel's: Tone, Color, Effects, Details + for (section, title, keys) in MASK_GROUPS { + divider(ui); + if !mask_section(app, ui, section, title) { + continue; + } + for key in *keys { + let Some(s) = LOCAL.iter().find(|s| s.id == *key) else { continue }; + let v = local_get(&m.adjust, s.id); + let out = slider(ui, s, v, true, None); + apply_slider_out(app, s, out, |app, v| app.run("mask.adjust", json!({"values": {s.id: v}}))); + } + ui.add_space(3.0); + } + ui.add_space(30.0); let _ = Stroke::NONE; } +/// The mask's effect sliders in sections, in Lightroom Classic's order: section id (folded state +/// in [`crate::state::UiState::folded_sections`]), title, and the `LOCAL` keys in it. Every +/// `LOCAL` key is in one. +pub(crate) const MASK_GROUPS: &[(&str, &str, &[&str])] = &[ + ("maskTone", "Tone", &["exposure", "contrast", "highlights", "shadows", "whites", "blacks"]), + ("maskColor", "Color", &["temp", "tint", "hue", "saturation"]), + ("maskEffects", "Effects", &["texture", "clarity", "dehaze"]), + ("maskDetails", "Details", &["sharpness", "noise", "moire", "defringe"]), +]; + +/// A mask section's header (the Edit panel's), folding it on a click. True while it is open. +fn mask_section(app: &mut LightcraftApp, ui: &mut egui::Ui, id: &str, title: &str) -> bool { + let open = !app.ui.section_folded(id); + let (resp, _) = crate::widgets::section_header(ui, id, title, open, None); + if resp.clicked() { + app.ui.toggle_folded(id); + } + open +} + /// Translate fixed action labels, but never mutate or translate user-entered mask names. fn menu_label(source: &str) -> &str { crate::i18n::tr(source) @@ -875,7 +911,7 @@ fn component_menu(app: &mut LightcraftApp, ui: &mut egui::Ui, op: &str) { fn brush_settings(app: &mut LightcraftApp, ui: &mut egui::Ui) { let t = Tokens::get(ui.ctx()); - egui::Frame::NONE.inner_margin(egui::Margin { left: 24, right: 22, top: 6, bottom: 0 }).show(ui, |ui| { + egui::Frame::NONE.inner_margin(crate::widgets::row_margin(4, 0)).show(ui, |ui| { ui.horizontal(|ui| { ui.label(egui::RichText::new(crate::i18n::tr("Brush")).font(t.semibold(13.0))); if text_button(ui, "brushAdd", crate::i18n::tr("Add"), !app.ui.brush_erase).clicked() { diff --git a/crates/ui-egui/src/panels/right.rs b/crates/ui-egui/src/panels/right.rs index b28445d5de1..df1406f43b4 100644 --- a/crates/ui-egui/src/panels/right.rs +++ b/crates/ui-egui/src/panels/right.rs @@ -1,4 +1,4 @@ -//! The right-hand panel next to the tool strip: Edit, Crop, Remove, Masking, Red Eye, Info, +//! The right-hand panel, its tool row at the top: Edit, Crop, Remove, Masking, Red Eye, Info, //! Keywords, Versions, Activity. use egui::{Align2, Rect, Sense, pos2, vec2}; @@ -32,6 +32,19 @@ pub fn show(app: &mut LightcraftApp, ui: &mut egui::Ui) { let t = Tokens::get(ui.ctx()); let frame = egui::Frame::NONE.fill(t.chrome).stroke(egui::Stroke::new(1.0, t.divider)); frame.show(ui, |ui| { + ui.spacing_mut().item_spacing.y = 0.0; + // fixed at the top, as the panel's content scrolls under them: the photo's histogram + // (while developing it), then the tool row + if app.ui.histogram + && let Some(id) = app.session.active() + && matches!( + app.ui.right, + RightPanel::Edit | RightPanel::Profiles | RightPanel::Crop | RightPanel::Remove | RightPanel::Masking | RightPanel::RedEye + ) + { + super::edit::histogram(app, ui, id); + } + super::strip::row(app, ui); // (taken on every pass the panel is drawn; one from earlier than the pass before is forgotten) let held = held_offset(ui.ctx()); let Some(id) = app.session.active() else { @@ -59,11 +72,6 @@ pub fn show(app: &mut LightcraftApp, ui: &mut egui::Ui) { } return; }; - // the Edit panel's histogram stays above its sliders as they scroll (#2679) - if app.ui.right == RightPanel::Edit && app.ui.histogram { - ui.spacing_mut().item_spacing.y = 0.0; - super::edit::histogram(app, ui, id); - } let mut area = egui::ScrollArea::vertical().id_salt("right-scroll").auto_shrink([false, false]); if let Some(offset) = held { area = area.vertical_scroll_offset(offset); @@ -78,7 +86,7 @@ pub fn show(app: &mut LightcraftApp, ui: &mut egui::Ui) { None => d.remove::(egui::Id::unique(OFFSET)), }); let scrolled = area.show(ui, |ui| { - ui.spacing_mut().item_spacing.y = 0.0; + compact_style(ui); match app.ui.right { RightPanel::Edit => super::edit::show(app, ui, id), RightPanel::Profiles => super::profiles::show(app, ui, id), @@ -97,6 +105,23 @@ pub fn show(app: &mut LightcraftApp, ui: &mut egui::Ui) { }); } +/// The panel's text, checkboxes and radio buttons at the dense rows' size: 12 pt text, 16 pt +/// rows, small boxes, little space between rows. +pub(crate) fn compact_style(ui: &mut egui::Ui) { + let style = ui.style_mut(); + style.spacing.item_spacing.y = 0.0; + style.spacing.interact_size.y = 16.0; + style.spacing.icon_width = 12.0; + style.spacing.icon_width_inner = 6.0; + style.spacing.icon_spacing = 5.0; + style.spacing.button_padding = egui::vec2(5.0, 1.0); + for (text, size) in [(egui::TextStyle::Body, 12.0), (egui::TextStyle::Button, 12.0)] { + if let Some(font) = style.text_styles.get_mut(&text) { + font.size = size; + } + } +} + /// The panel's scroll area, its offset as the last pass started, and how far /// [`hold_list_in_place`] asks it to move. const AREA: &str = "right-scroll-id"; @@ -117,14 +142,14 @@ fn held_offset(ctx: &egui::Context) -> Option { pub fn header(ui: &mut egui::Ui, title: &str) { let t = Tokens::get(ui.ctx()); - let (r, _) = ui.allocate_exact_size(vec2(ui.available_width(), 46.0), Sense::hover()); - ui.painter().text(pos2(r.left() + 24.0, r.center().y + 2.0), Align2::LEFT_CENTER, crate::i18n::tr(title), t.semibold(15.0), t.text); + let (r, _) = ui.allocate_exact_size(vec2(ui.available_width(), t.section_h), Sense::hover()); + ui.painter().text(pos2(r.left() + crate::widgets::PAD_L, r.center().y), Align2::LEFT_CENTER, crate::i18n::tr(title), t.semibold(12.5), t.text); } /// A panel title that folds its section shut and open again (`section:{id}`; kept in /// [`crate::state::UiState::folded_sections`]). Says whether the section is open. pub fn fold_header(app: &mut LightcraftApp, ui: &mut egui::Ui, id: &str, title: &str) -> bool { - let (r, resp) = ui.allocate_exact_size(vec2(ui.available_width(), 46.0), Sense::click()); + let (r, resp) = ui.allocate_exact_size(vec2(ui.available_width(), Tokens::get(ui.ctx()).section_h), Sense::click()); let title = crate::i18n::tr(title); fold_title(app, ui, id, r, &resp, title) } @@ -136,14 +161,12 @@ pub fn fold_title(app: &mut LightcraftApp, ui: &egui::Ui, id: &str, r: Rect, res crate::widgets::announce_disclosure(resp, true, open, title); register(ui, format!("section:{id}"), r); let p = ui.painter(); - if resp.hovered() { - p.rect_filled(r, 0.0, t.chrome.gamma_multiply(1.06)); - } + crate::widgets::paint_section_band(p, r, &t, resp.hovered()); if resp.has_focus() { - p.rect_stroke(r.shrink(2.0), 4.0, egui::Stroke::new(1.5, t.accent), egui::StrokeKind::Inside); + p.rect_stroke(r.shrink(2.0), crate::theme::RADIUS, egui::Stroke::new(1.5, t.accent), egui::StrokeKind::Inside); } - p.text(pos2(r.left() + 24.0, r.center().y + 2.0), Align2::LEFT_CENTER, title, t.semibold(15.0), t.text); - let chevron = Rect::from_center_size(pos2(r.right() - 30.0, r.center().y + 2.0), vec2(14.0, 14.0)); + p.text(pos2(r.left() + crate::widgets::PAD_L, r.center().y), Align2::LEFT_CENTER, title, t.semibold(crate::widgets::SECTION_TITLE), t.text); + let chevron = Rect::from_center_size(pos2(r.right() - crate::widgets::PAD_R - 8.0, r.center().y), vec2(12.0, 12.0)); paint(p, chevron, if open { Icon::ChevronDown } else { Icon::ChevronRight }, t.icon); if resp.clicked() { app.ui.toggle_folded(id); @@ -159,7 +182,7 @@ pub fn label_row(ui: &mut egui::Ui, label: &str, value: &str) { } fn padded(ui: &mut egui::Ui, add: impl FnOnce(&mut egui::Ui)) { - egui::Frame::NONE.inner_margin(egui::Margin { left: 24, right: 22, top: 6, bottom: 6 }).show(ui, add); + egui::Frame::NONE.inner_margin(crate::widgets::row_margin(4, 4)).show(ui, add); } #[cfg(test)] diff --git a/crates/ui-egui/src/panels/right/history.rs b/crates/ui-egui/src/panels/right/history.rs index d434075adc5..0d9e9a5f791 100644 --- a/crates/ui-egui/src/panels/right/history.rs +++ b/crates/ui-egui/src/panels/right/history.rs @@ -34,7 +34,7 @@ pub(super) fn versions(app: &mut LightcraftApp, ui: &mut egui::Ui, id: PhotoId) register(ui, format!("version:{i}"), r); let current = *v.settings == *p.develop; if resp.hovered() { - ui.painter().rect_filled(r, 4.0, t.hover.gamma_multiply(0.7)); + ui.painter().rect_filled(r, crate::theme::RADIUS, t.hover.gamma_multiply(0.7)); } // thumbnail of the version's look let tr = Rect::from_min_size(r.min + vec2(4.0, 5.0), vec2(72.0, 48.0)); @@ -145,9 +145,9 @@ pub(super) fn activity(app: &mut LightcraftApp, ui: &mut egui::Ui, id: PhotoId) register(ui, format!("history:{i}"), r); let row = history_row(i, cursor); if row == HistoryRow::Current { - ui.painter().rect_filled(r, 3.0, t.pressed); + ui.painter().rect_filled(r, crate::theme::RADIUS, t.pressed); } else if resp.hovered() { - ui.painter().rect_filled(r, 3.0, t.hover); + ui.painter().rect_filled(r, crate::theme::RADIUS, t.hover); } let (icon, text) = if row == HistoryRow::Undone { (t.text_disabled, t.text_disabled) } else { (t.icon, t.text_label) }; paint(ui.painter(), Rect::from_min_size(r.min + vec2(0.0, 4.0), vec2(16.0, 16.0)), Icon::Clock, icon); diff --git a/crates/ui-egui/src/panels/right/info.rs b/crates/ui-egui/src/panels/right/info.rs index 5810a0f2721..f6463d26b91 100644 --- a/crates/ui-egui/src/panels/right/info.rs +++ b/crates/ui-egui/src/panels/right/info.rs @@ -228,7 +228,7 @@ pub(super) fn info(app: &mut LightcraftApp, ui: &mut egui::Ui, id: PhotoId) { fn camera_card(ui: &mut egui::Ui, p: &lightcraft_catalog::Photo) { let t = Tokens::get(ui.ctx()); let m = &p.meta; - egui::Frame::NONE.fill(t.canvas).corner_radius(6.0).inner_margin(egui::Margin::symmetric(12, 10)).show(ui, |ui| { + egui::Frame::NONE.fill(t.canvas).corner_radius(crate::theme::RADIUS_PANEL).inner_margin(egui::Margin::symmetric(12, 10)).show(ui, |ui| { ui.set_width(ui.available_width()); let dim = |s: &str| egui::RichText::new(s.to_string()).size(12.0).color(t.text_label); if !m.camera.is_empty() { @@ -240,7 +240,7 @@ fn camera_card(ui: &mut egui::Ui, p: &lightcraft_catalog::Photo) { ui.horizontal(|ui| { ui.label(dim(&format!("{} × {} · {}", p.width, p.height, human_size(p.file_size)))); ui.with_layout(egui::Layout::right_to_left(egui::Align::Center), |ui| { - egui::Frame::NONE.fill(t.chrome).corner_radius(3.0).inner_margin(egui::Margin::symmetric(5, 1)).show(ui, |ui| { + egui::Frame::NONE.fill(t.chrome).corner_radius(crate::theme::RADIUS).inner_margin(egui::Margin::symmetric(5, 1)).show(ui, |ui| { ui.label(egui::RichText::new(p.format.to_uppercase()).size(10.5).color(t.text_label)); }); }); diff --git a/crates/ui-egui/src/panels/strip.rs b/crates/ui-egui/src/panels/strip.rs index faf527be9af..00fe2e9a9fd 100644 --- a/crates/ui-egui/src/panels/strip.rs +++ b/crates/ui-egui/src/panels/strip.rs @@ -1,4 +1,8 @@ -//! The vertical tool strip at the far right (Presets, Edit, Crop, Remove, Masking, Red Eye …). +//! The tool strip: one horizontal row of tool icons at the top of the right-hand panel, under the +//! histogram (Edit, Crop, Remove, Masking …, rarely used tools in its "…" menu), as Lightroom +//! Classic has it, so the panel keeps the whole width for its sliders. While the +//! panel is closed, the same tools stand in a vertical strip at the window's right edge, to open it +//! again. use egui::vec2; use serde_json::json; @@ -81,6 +85,121 @@ pub fn show(app: &mut LightcraftApp, ui: &mut egui::Ui) { }); } +/// Height of one line of the horizontal tool row. +pub const ROW_H: f32 = 30.0; + +/// The narrowest a tool button in the row gets (pt): a hit target of at least 24 × 24, so a +/// narrow panel wraps the row onto a second line instead of shrinking the buttons below it. +pub const ROW_BUTTON_MIN: f32 = 24.0; + +/// The widest a tool button in the row gets (pt). +const ROW_BUTTON_MAX: f32 = 30.0; +const ROW_GAP: f32 = 2.0; +const ROW_SIDE: f32 = 8.0; + +/// The tools in the horizontal row: id (`icon:{id}`), icon, panel, tooltip, enabled without a photo. +const ROW_TOOLS: [(&str, Icon, RightPanel, &str, bool); 8] = [ + ("edit", Icon::Sliders, RightPanel::Edit, "Edit (E)", false), + ("crop", Icon::Crop, RightPanel::Crop, "Crop & Rotate (C)", false), + ("remove", Icon::Eraser, RightPanel::Remove, "Remove (H)", false), + ("masking", Icon::Mask, RightPanel::Masking, "Masking (M)", false), + ("versions", Icon::Versions, RightPanel::Versions, "Versions (Shift+V)", false), + ("activity", Icon::Activity, RightPanel::Activity, "History & Activity (Y)", true), + ("keywords", Icon::Tag, RightPanel::Keywords, "Keywords (K)", false), + ("info", Icon::Info, RightPanel::Info, "Info (I)", false), +]; + +/// How the row's `count` buttons fit a panel `w` wide: buttons per line, lines, and the button +/// width. One line while the buttons can be at least [`ROW_BUTTON_MIN`] wide, else as many lines +/// as that takes (a panel too narrow for even one keeps one button a line). +pub(crate) fn row_fit(w: f32, count: usize) -> (usize, usize, f32) { + let count = count.max(1); + let room = if w.is_finite() { (w - 2.0 * ROW_SIDE).max(0.0) } else { 0.0 }; + // (a cast of a finite, non-negative number of buttons; at least one a line) + let fits = (((room + ROW_GAP) / (ROW_BUTTON_MIN + ROW_GAP)).floor() as usize).clamp(1, count); + let lines = count.div_ceil(fits); + // the lines share the buttons evenly, so the last isn't a lone one + let per_line = count.div_ceil(lines); + let bw = ((room - ROW_GAP * (per_line as f32 - 1.0)) / per_line as f32).clamp(ROW_BUTTON_MIN, ROW_BUTTON_MAX); + (per_line, lines, bw) +} + +/// One button of the horizontal row. +#[derive(Clone, Copy)] +enum RowItem { + Tool(usize), + Presets, + More, +} + +/// The horizontal tool row at the top of the right-hand panel (under the histogram): the tools, +/// Presets, and "…" with the rarely used ones (Red Eye) and About. Same widget ids as the +/// vertical strip (`icon:edit` …), so scripts and shortcuts don't change. On a panel too narrow +/// for every button at [`ROW_BUTTON_MIN`] it wraps onto a second line (Tab and screen readers go +/// through it left to right, line by line). +pub fn row(app: &mut LightcraftApp, ui: &mut egui::Ui) { + let t = Tokens::get(ui.ctx()); + let has_photo = app.session.active().is_some(); + // the tools, Presets, … + let items: Vec = (0..ROW_TOOLS.len()).map(RowItem::Tool).chain([RowItem::Presets, RowItem::More]).collect(); + let w = ui.available_width(); + let (per_line, lines, bw) = row_fit(w, items.len()); + let (r, _) = ui.allocate_exact_size(vec2(w, ROW_H * lines as f32), egui::Sense::hover()); + crate::widgets::register(ui, "toolRow", r); + let mut outer = ui.new_child(egui::UiBuilder::new().max_rect(r).layout(egui::Layout::top_down(egui::Align::Center))); + // the same toolbar as the strip at the window's edge, standing in the panel now + crate::widgets::announce_region(&outer, egui::accesskit::Role::Toolbar, crate::i18n::tr("Tool strip")); + let sz = vec2(bw, ROW_H - 4.0); + for (line, chunk) in items.chunks(per_line).enumerate() { + let n = chunk.len() as f32; + let total = bw * n + ROW_GAP * (n - 1.0); + let line_rect = egui::Rect::from_min_size(egui::pos2(r.left(), r.top() + ROW_H * line as f32), vec2(r.width(), ROW_H)); + let mut child = outer.new_child( + egui::UiBuilder::new() + .max_rect(egui::Rect::from_center_size(line_rect.center(), vec2(total, ROW_H))) + .layout(egui::Layout::left_to_right(egui::Align::Center)), + ); + let ui = &mut child; + ui.spacing_mut().item_spacing.x = ROW_GAP; + for item in chunk { + match *item { + RowItem::Tool(i) => { + let Some(&(id, icon, panel, tip, without_photo)) = ROW_TOOLS.get(i) else { continue }; + let on = app.ui.right == panel || (panel == RightPanel::Edit && app.ui.right == RightPanel::Profiles); + if icon_button(ui, id, icon, sz, on, has_photo || without_photo, tip).clicked() { + let _ = app.run(&format!("panel.{id}"), json!({})); + } + } + RowItem::Presets => { + if icon_button(ui, "presets", Icon::Presets, sz, app.ui.presets, has_photo, "Presets (Shift+P)").clicked() { + let _ = app.run("panel.presets", json!({})); + } + } + RowItem::More => more_menu(app, ui, sz, has_photo), + } + } + } + let p = ui.painter(); + p.hline(r.x_range(), r.bottom() - 0.5, egui::Stroke::new(1.0, t.divider)); +} + +/// The row's "…" button and its menu: Red Eye and About. +fn more_menu(app: &mut LightcraftApp, ui: &mut egui::Ui, sz: egui::Vec2, has_photo: bool) { + let more = icon_button(ui, "more", Icon::More, sz, app.ui.right == RightPanel::RedEye, true, "More tools"); + egui::Popup::menu(&more).show(|ui| { + let r = ui.add_enabled(has_photo, egui::Button::new(crate::i18n::tr("Red Eye"))); + crate::widgets::register_response("menuItem:toolRow:redeye", r.rect, &r); + if r.clicked() { + let _ = app.run("panel.redeye", json!({})); + } + let r = ui.button(crate::i18n::tr("About LightCraft")); + crate::widgets::register_response("menuItem:toolRow:about", r.rect, &r); + if r.clicked() { + app.ui.dialog = Some(crate::state::Dialog::About); + } + }); +} + fn separator(ui: &mut egui::Ui, t: &Tokens) { let (r, _) = ui.allocate_exact_size(vec2(t.strip_w - 16.0, 1.0), egui::Sense::hover()); ui.painter().rect_filled(r, 0.0, t.button_border.gamma_multiply(0.7)); diff --git a/crates/ui-egui/src/shortcuts/tests.rs b/crates/ui-egui/src/shortcuts/tests.rs index a6fbb133321..37db1071ab6 100644 --- a/crates/ui-egui/src/shortcuts/tests.rs +++ b/crates/ui-egui/src/shortcuts/tests.rs @@ -226,6 +226,24 @@ fn classic_f8_shows_a_minimized_tools_window_and_keeps_its_mode() { assert!(crate::docking::exposed(&h.app, Panel::Tools), "the window opens"); } +/// A minimized Tools window keeps its mode, so its tool row is out of sight: the tools stand at +/// the window's edge, as when the panel is closed, to open it again. +#[test] +fn a_minimized_tools_window_shows_the_tools_at_the_edge() { + use crate::{docking::Panel, state::RightPanel}; + let mut h = library(); + h.app.ui.view = crate::state::ViewMode::Detail; + h.app.ui.right = RightPanel::Edit; + h.settle(std::time::Duration::from_secs(10)); + h.app.run("ui.dock", json!({"operation": "float", "panel": "tools", "rect": [400, 100, 320, 500]})).unwrap(); + h.app.run("ui.dock", json!({"action": {"SetMinimized": {"panel": "tools", "minimized": true}}})).unwrap(); + h.step(); + h.step(); + assert!(!crate::docking::exposed(&h.app, Panel::Tools)); + assert_eq!(h.app.ui.right, RightPanel::Edit, "the window keeps its mode"); + assert!(h.app.widgets.iter().any(|(w, _)| w == "icon:edit"), "the tools stand at the edge: {:?}", h.app.widgets); +} + #[test] fn shift_culling_keys_advance_exactly_once() { use lightcraft_catalog::{ColorLabel, Flag, PhotoId}; diff --git a/crates/ui-egui/src/state/view.rs b/crates/ui-egui/src/state/view.rs index 61100264751..b835bece264 100644 --- a/crates/ui-egui/src/state/view.rs +++ b/crates/ui-egui/src/state/view.rs @@ -362,7 +362,8 @@ impl PanelWidth { pub const LEFT_WIDTH: PanelWidth = PanelWidth { min: 200.0, default: 268.0, max: 480.0 }; /// The right panel (Edit, Masking, Info, …). -pub const RIGHT_WIDTH: PanelWidth = PanelWidth { min: 250.0, default: 270.0, max: 520.0 }; +/// (318 by default since the tool strip became a row in it: the 270 it had plus the strip's 48.) +pub const RIGHT_WIDTH: PanelWidth = PanelWidth { min: 250.0, default: 318.0, max: 520.0 }; /// The photo area the side panels always leave free (as far as their minimum widths allow). pub const MIN_PHOTO_WIDTH: f32 = 360.0; diff --git a/crates/ui-egui/src/tests.rs b/crates/ui-egui/src/tests.rs index 09e7703d776..90962318ce6 100644 --- a/crates/ui-egui/src/tests.rs +++ b/crates/ui-egui/src/tests.rs @@ -78,6 +78,7 @@ mod rename_person; mod rules_editor; mod sam_setup; mod scroll; +mod slider_columns; mod slider_reset; mod slideshow; mod solo_sections; @@ -89,6 +90,7 @@ mod temp_slider; mod text_prompt; mod titlebar; mod tool_overlay; +mod tool_row; mod unsaved; mod view_cost; mod wb_selector; diff --git a/crates/ui-egui/src/tests/dialog_fit.rs b/crates/ui-egui/src/tests/dialog_fit.rs index e2e9dd4bf2b..166365fd674 100644 --- a/crates/ui-egui/src/tests/dialog_fit.rs +++ b/crates/ui-egui/src/tests/dialog_fit.rs @@ -94,12 +94,14 @@ fn export_dialog_is_unchanged_in_a_tall_window() { assert_fits(&h, "Export at 1600×1000"); let dialog = rect(&h, "dialog:window"); // (846 tall as before #781: the whole dialog, nothing scrolled away, plus the Export to row - // since #956; 615 wide since the format row gained JPEG XL, #780. On macOS the dialog has one - // more row, "Add to Apple Photos" (#236), so it is 30 taller there. 8 more since its footer's - // buttons are the button component's medium size, 30 points, as the welcome's and every dialog's) - let height = if cfg!(target_os = "macos") { 916.0 } else { 886.0 }; + // since #956; 615 wide since the format row gained JPEG XL, #780, 566 since the format buttons + // are the panels' smaller buttons. On macOS the dialog has one more row, "Add to Apple Photos" + // (#236), so it is 30 taller there. 8 more since its footer's buttons are the button + // component's medium size, 30 points, as the welcome's and every dialog's; 100 less since its + // four sliders are one-line rows, 25 points shorter each) + let height = if cfg!(target_os = "macos") { 816.0 } else { 786.0 }; assert!((dialog.height() - height).abs() <= 1.0, "{dialog:?}"); - assert!((dialog.width() - 615.2).abs() <= 1.0, "{dialog:?}"); + assert!((dialog.width() - 566.0).abs() <= 1.0, "{dialog:?}"); } // Scenario: other long dialogs fit a short window too, with their buttons on screen diff --git a/crates/ui-egui/src/tests/dialogs.rs b/crates/ui-egui/src/tests/dialogs.rs index 2e96b59e791..e909d98928c 100644 --- a/crates/ui-egui/src/tests/dialogs.rs +++ b/crates/ui-egui/src/tests/dialogs.rs @@ -135,8 +135,16 @@ fn a_click_outside_an_open_dropdown_keeps_the_dialog() { let mut h = demo([1400.0, 1000.0], json!({"view": "detail", "right": "edit"})); h.app.ui.settings.close_dialogs_outside = true; h.app.run("dialog.export", json!({})).unwrap(); - h.step(); - h.step(); + // (the dialog sizes itself to its rows over its first frames: click once it stands still) + let mut last = None; + for _ in 0..10 { + h.step(); + let now = h.app.widgets.iter().find(|(w, _)| w == "dialog:window").map(|(_, r)| *r); + if now.is_some() && now == last { + break; + } + last = now; + } let r = h.request("ui.clickWidget", json!({"id": "combo:exportPreset"}), T); assert_eq!(r["ok"], true, "{r}"); h.step(); diff --git a/crates/ui-egui/src/tests/docking_acceptance.rs b/crates/ui-egui/src/tests/docking_acceptance.rs index 2056103f486..cd0908872bb 100644 --- a/crates/ui-egui/src/tests/docking_acceptance.rs +++ b/crates/ui-egui/src/tests/docking_acceptance.rs @@ -27,14 +27,13 @@ fn the_gaps_between_dock_panes_show_chrome_not_the_dark_clear_colour() { let mut h = app(); let image = h.snapshot(std::time::Duration::from_secs(5)); let pixel = |p: egui::Pos2| image.pixels[p.y as usize * image.size[0] + p.x as usize]; - // each panel's own chrome just inside its edge stroke, and the dock's gap just outside it + // the dock's gap just outside each panel's edge stroke let right = rect(&h, "panel:right_panel"); let left = rect(&h, "panel:left_panel"); - for (panel, inside, gap) in [ - ("Tools", egui::pos2(right.left() + 3.0, right.center().y), egui::pos2(right.left() - 2.0, right.center().y)), - ("Library", egui::pos2(left.right() - 3.0, left.center().y), egui::pos2(left.right() + 2.0, left.center().y)), - ] { - assert_eq!(pixel(gap), pixel(inside), "the gap beside {panel} at {gap:?} is not chrome"); + // compared with the chrome token, not the pixel inside: a section header's band may sit there + let chrome = crate::theme::Tokens::for_kind(crate::theme::current(&h.view.ctx).unwrap_or_default()).chrome; + for (panel, gap) in [("Tools", egui::pos2(right.left() - 2.0, right.center().y)), ("Library", egui::pos2(left.right() + 2.0, left.center().y))] { + assert_eq!(pixel(gap), chrome, "the gap beside {panel} at {gap:?} is not chrome"); } } fn release(h: &mut Headless, pos: egui::Pos2) { diff --git a/crates/ui-egui/src/tests/masking.rs b/crates/ui-egui/src/tests/masking.rs index f7fbc605361..1654246658c 100644 --- a/crates/ui-egui/src/tests/masking.rs +++ b/crates/ui-egui/src/tests/masking.rs @@ -143,14 +143,16 @@ fn mask_adjustments_hide_overlay_without_disabling_the_mask() { // Changing the shape needs the overlay; changing the image needs an unobscured preview. exec(&mut h, "mask.refine", json!({"value": 10.0})); assert!(h.app.ui.mask_overlay); - // The dock header pushes this adjustment below the initial viewport. Exercise the - // actual visible slider rather than sending a synthetic click outside its clipped body. + // The dock header can push this adjustment below the initial viewport (the dense rows may + // already show it). Exercise the actual visible slider rather than sending a synthetic click + // outside its clipped body. let panel = h.app.widgets.iter().find(|(id, _)| id == "panel:right_panel").unwrap().1; let slider = h.app.widgets.iter().find(|(id, _)| id == "slider:exposure").unwrap().1; - assert!(!panel.contains_rect(slider), "exposure initially needs scrolling: {slider:?} in {panel:?}"); - h.request("ui.move", json!({"x": panel.center().x, "y": panel.center().y}), T); - h.request("ui.scroll", json!({"dy": -160.0}), T); - h.settle(SETTLE); + if !panel.contains_rect(slider) { + h.request("ui.move", json!({"x": panel.center().x, "y": panel.center().y}), T); + h.request("ui.scroll", json!({"dy": -160.0}), T); + h.settle(SETTLE); + } let slider = h.app.widgets.iter().find(|(id, _)| id == "slider:exposure").unwrap().1; assert!(panel.contains_rect(slider), "exposure is visible before clicking: {slider:?} in {panel:?}"); let r = h.request("ui.clickWidget", json!({"id": "slider:exposure", "fx": 0.7}), T); @@ -2155,3 +2157,40 @@ fn effect_dropdown_applies_saves_and_shows_the_matching_effect() { assert_eq!((a.exposure, a.shadows, a.clarity, a.amount), (0.7, 25.0, 0.0, 50.0)); assert_eq!(exec(&mut h, "mask.effects", json!({}))["current"], "Lift"); } + +/// The mask's sliders sit in sections like the Edit panel's, in Lightroom Classic's order: Tone +/// (Exposure … Blacks), Color (Temp, Tint, Hue, Saturation), Effects (Texture, Clarity, Dehaze), +/// Details (Sharpness … Defringe); Refine Edges above the effect (a setting of the mask's shape) +/// and Amount above the sections. Every mask slider is in one section, and a folded section hides +/// its rows. +#[test] +fn the_mask_sliders_sit_in_sections() { + let mut h = detail("panel.masking"); + exec(&mut h, "mask.add", json!({"kind": "radial", "center": [0.5, 0.5]})); + h.request("ui.resize", json!({"width": 1400, "height": 2400}), T); + h.settle(SETTLE); + let at = |h: &Headless, id: &str| h.app.widgets.iter().find(|(w, _)| w == id).map(|(_, r)| *r).unwrap_or_else(|| panic!("{id} drawn")); + assert!(at(&h, "slider:refine").bottom() <= at(&h, "slider:amount").top(), "Refine Edges above the effect's sliders"); + let mut last = at(&h, "slider:amount").bottom() - 1.0; + let mut seen = Vec::new(); + for (section, _, keys) in crate::panels::masking::MASK_GROUPS { + let head = at(&h, &format!("section:{section}")); + assert!(head.top() >= last, "{section} in order"); + last = head.bottom() - 1.0; + for key in *keys { + let row = at(&h, &format!("slider:{key}")); + assert!(row.top() >= last, "{key} under {section}"); + last = row.bottom() - 1.0; + seen.push(*key); + } + } + let mut all: Vec<_> = crate::panels::masking::LOCAL.iter().map(|s| s.id).collect(); + all.sort_unstable(); + seen.sort_unstable(); + assert_eq!(seen, all, "every mask slider in exactly one section"); + // folding Tone hides its sliders, and the others stay + click(&mut h, "section:maskTone"); + h.settle(SETTLE); + assert!(!h.app.widgets.iter().any(|(w, _)| w == "slider:exposure")); + assert!(h.app.widgets.iter().any(|(w, _)| w == "slider:temp")); +} diff --git a/crates/ui-egui/src/tests/masking_layout.rs b/crates/ui-egui/src/tests/masking_layout.rs index 74313ed3a0c..c04d7ebae30 100644 --- a/crates/ui-egui/src/tests/masking_layout.rs +++ b/crates/ui-egui/src/tests/masking_layout.rs @@ -86,7 +86,10 @@ fn masking_long_names_and_describe_controls_stay_inside_the_panel() { let field = widgets.iter().find(|(id, _)| id == "maskDescribe").unwrap().1; let button = widgets.iter().find(|(id, _)| id == "button:maskDescribeGo").unwrap().1; assert!(field.right() <= button.left(), "the prompt must not overlap Select"); - assert!(field.left() >= 24.0 && button.right() <= width - 22.0, "{locale:?} {width}: {field:?} {button:?}"); + assert!( + field.left() >= crate::widgets::PAD_L && button.right() <= width - crate::widgets::PAD_R, + "{locale:?} {width}: {field:?} {button:?}" + ); } } } diff --git a/crates/ui-egui/src/tests/slider_columns.rs b/crates/ui-egui/src/tests/slider_columns.rs new file mode 100644 index 00000000000..b460be34bbe --- /dev/null +++ b/crates/ui-egui/src/tests/slider_columns.rs @@ -0,0 +1,79 @@ +//! Headless tests of the Edit panel's slider name columns: opening or closing a part of the panel +//! never moves or resizes the tracks of the sliders around it, and a few long names (Color +//! Grading's "Highlights Luminance") don't shorten every slider. + +use std::time::Duration; + +use serde_json::json; + +use crate::headless::Headless; +use crate::{LightcraftApp, Services}; + +const T: Duration = Duration::from_secs(20); +const SETTLE: Duration = Duration::from_secs(120); + +/// The demo library in Detail with the Edit panel at `width` and Light, Color and Effects open. +fn edit_panel(width: f32) -> Headless { + let app = LightcraftApp::new(lightcraft_engine::Session::with_demo(), Services { png: None, ..Default::default() }); + let mut h = Headless::new(app, [1600.0, 1000.0], 1.0); + let id = h.app.session.visible_cloned()[0].0; + assert_eq!(h.request("engine.execute", json!({"command": "library.select", "params": {"ids": [id]}}), T)["ok"], true); + assert_eq!(h.request("ui.set", json!({"view": "detail", "right": "edit"}), T)["ok"], true); + h.app.ui.right_width = width; + h.app.ui.open_sections = vec!["light".to_string(), "color".to_string(), "effects".to_string()]; + h.settle(SETTLE); + h +} + +fn track(h: &Headless, control: &str) -> egui::Rect { + let id = format!("slider:{control}"); + h.app.widgets.iter().find(|(w, _)| *w == id).map(|(_, r)| *r).unwrap_or_else(|| panic!("no widget {id}")) +} + +fn label(h: &Headless, control: &str) -> egui::Rect { + let id = format!("sliderLabel:{control}"); + h.app.widgets.iter().find(|(w, _)| *w == id).map(|(_, r)| *r).unwrap_or_else(|| panic!("no widget {id}")) +} + +/// Draws a few passes so every name column has seen all of its rows. +fn redraw(h: &mut Headless) { + for _ in 0..3 { + h.settle(SETTLE); + } +} + +#[test] +fn opening_color_grading_leaves_the_other_tracks_where_they_are() { + for width in [270.0, 318.0, 416.0] { + let mut h = edit_panel(width); + redraw(&mut h); + let closed: Vec = ["wb.tempRel", "color.vibrance", "effects.texture", "light.exposure"].iter().map(|c| track(&h, c)).collect(); + h.app.ui.toggle_flyout("grading"); + redraw(&mut h); + assert!(h.app.widgets.iter().any(|(w, _)| w == "slider:grading.blending"), "Color Grading is open"); + // Color Grading's own sliders don't sit in the column of its longest names either + let lum = track(&h, "grading.highlights.lum"); + for (c, before) in ["wb.tempRel", "color.vibrance", "effects.texture", "light.exposure"].iter().zip(&closed) { + let open = track(&h, c); + // (x within the row: the name column's left edge is PAD_L in) + let row_left = label(&h, c).left() - crate::widgets::PAD_L; + eprintln!( + "{c} at {width} pt: track starts at x {:.1} closed, {:.1} with Color Grading open", + before.left() - row_left, + open.left() - row_left + ); + assert!( + (open.left() - before.left()).abs() < 0.01 && (open.width() - before.width()).abs() < 0.01, + "{c} at {width} pt: closed {before:?}, Color Grading open {open:?}" + ); + // (the rows below Color Grading move down, as they should) + } + assert!(lum.width() > 0.0, "{lum:?}"); + h.app.ui.toggle_flyout("grading"); + redraw(&mut h); + for (c, before) in ["wb.tempRel", "color.vibrance", "effects.texture", "light.exposure"].iter().zip(&closed) { + let again = track(&h, c); + assert!((again.left() - before.left()).abs() < 0.01 && (again.width() - before.width()).abs() < 0.01, "{c} after closing: {again:?}"); + } + } +} diff --git a/crates/ui-egui/src/tests/temp_slider.rs b/crates/ui-egui/src/tests/temp_slider.rs index c8e4e0d4c44..f0069d35ebc 100644 --- a/crates/ui-egui/src/tests/temp_slider.rs +++ b/crates/ui-egui/src/tests/temp_slider.rs @@ -41,7 +41,7 @@ fn widget(h: &Headless, id: &str) -> egui::Rect { h.app.widgets.iter().find(|(w, _)| w == id).map(|(_, r)| *r).unwrap_or_else(|| panic!("no widget {id}")) } -/// Where the slider's thumb (the hollow ring on the track's centre line) is drawn, from 0 to 1 along the track. +/// Where the slider's handle (the small dot on the track's centre line) is drawn, from 0 to 1 along the track. fn thumb(h: &Headless, control: &str) -> f32 { let track = widget(h, &format!("slider:{control}")); let rings: Vec = h @@ -49,7 +49,12 @@ fn thumb(h: &Headless, control: &str) -> f32 { .painted_shapes() .iter() .filter_map(|s| match s { - egui::epaint::Shape::Circle(c) if c.radius == 7.0 && (c.center.y - track.center().y).abs() < 0.5 => Some(c.center.x), + egui::epaint::Shape::Circle(c) + if (c.radius == crate::widgets::HANDLE_R || c.radius == crate::widgets::HANDLE_R_HOT) + && (c.center.y - track.center().y).abs() < 0.5 => + { + Some(c.center.x) + } _ => None, }) .filter(|x| (track.left() - 0.5..=track.right() + 0.5).contains(x)) diff --git a/crates/ui-egui/src/tests/tool_row.rs b/crates/ui-egui/src/tests/tool_row.rs new file mode 100644 index 00000000000..245de002ccf --- /dev/null +++ b/crates/ui-egui/src/tests/tool_row.rs @@ -0,0 +1,172 @@ +//! The tools stand in one row at the top of the right-hand panel (under the +//! fixed histogram), Red Eye in its "…" menu; the vertical strip only while the panel is closed; +//! and a section's slider names share a column fitted to its longest name, so the tracks are long. + +use std::time::Duration; + +use serde_json::json; + +use crate::headless::Headless; +use crate::state::RightPanel; +use crate::{LightcraftApp, Services}; + +const T: Duration = Duration::from_secs(20); +const SETTLE: Duration = Duration::from_secs(120); + +fn edit_panel() -> Headless { + let app = LightcraftApp::new(lightcraft_engine::Session::with_demo(), Services { png: None, ..Default::default() }); + let mut h = Headless::new(app, [1600.0, 1000.0], 1.0); + assert_eq!(h.request("ui.set", json!({"view": "detail", "right": "edit", "leftPanel": false}), T)["ok"], true); + h.app.ui.open_sections = vec!["light".to_string(), "color".to_string(), "effects".to_string(), "detail".to_string()]; + h.settle(SETTLE); + h +} + +fn widget(h: &Headless, id: &str) -> Option { + h.app.widgets.iter().find(|(w, _)| w == id).map(|(_, r)| *r) +} + +#[test] +fn the_tools_are_a_row_under_the_histogram_in_the_panel() { + let mut h = edit_panel(); + let panel = widget(&h, "panel:right_panel").expect("the panel"); + let row = widget(&h, "toolRow").expect("the tool row"); + assert!(panel.contains_rect(row), "{row:?} in {panel:?}"); + assert!(row.height() <= 32.0, "one thin row: {row:?}"); + let light = widget(&h, "section:light").expect("Light"); + assert!(row.bottom() <= light.top(), "above the sections"); + for id in ["edit", "crop", "remove", "masking", "versions", "activity", "keywords", "info", "presets", "more"] { + let r = widget(&h, &format!("icon:{id}")).unwrap_or_else(|| panic!("icon:{id}")); + assert!(row.contains_rect(r), "{id} in the row: {r:?}"); + } + assert!(widget(&h, "icon:redeye").is_none(), "Red Eye only in the … menu"); + // the panel takes the whole right side: no vertical strip beside it + assert!(panel.right() >= 1599.0, "{panel:?}"); + // the tools work from the row; Red Eye from its menu + let r = h.request("ui.clickWidget", json!({"id": "icon:crop"}), T); + assert_eq!(r["ok"], true, "{r}"); + h.settle(SETTLE); + assert_eq!(h.app.ui.right, RightPanel::Crop); + assert_eq!(h.request("ui.clickWidget", json!({"id": "icon:more"}), T)["ok"], true); + h.settle(SETTLE); + let r = h.request("ui.clickWidget", json!({"id": "menuItem:toolRow:redeye"}), T); + assert_eq!(r["ok"], true, "{r}"); + h.settle(SETTLE); + assert_eq!(h.app.ui.right, RightPanel::RedEye); +} + +#[test] +fn a_closed_panel_leaves_the_vertical_strip_to_open_it_again() { + let mut h = edit_panel(); + assert_eq!(h.request("ui.set", json!({"right": "none"}), T)["ok"], true); + h.settle(SETTLE); + assert!(widget(&h, "toolRow").is_none()); + let edit = widget(&h, "icon:edit").expect("the strip's Edit"); + assert!(edit.right() >= 1590.0, "at the window's edge: {edit:?}"); + assert_eq!(h.request("ui.clickWidget", json!({"id": "icon:edit"}), T)["ok"], true); + h.settle(SETTLE); + assert_eq!(h.app.ui.right, RightPanel::Edit); +} + +#[test] +fn a_sections_tracks_start_after_its_longest_name_and_are_long() { + let h = edit_panel(); + let panel = widget(&h, "panel:right_panel").expect("the panel"); + let light: Vec = ["exposure", "contrast", "highlights", "shadows", "whites", "blacks"] + .iter() + .map(|c| widget(&h, &format!("slider:light.{c}")).unwrap_or_else(|| panic!("{c}"))) + .collect(); + for r in &light { + assert!((r.left() - light[0].left()).abs() < 0.5, "one column: {light:?}"); + // as long as Lightroom's (58 % of its panel), at the default width + assert!(r.width() >= 0.58 * panel.width(), "{r:?} of {panel:?}"); + } + // the column ends just after the longest name ("Highlights"), not at a fixed share + let name = widget(&h, "sliderLabel:light.highlights").expect("name"); + assert!(name.width() < 70.0, "{name:?}"); +} + +/// FredApps on #3158: at the narrowest the panel goes (250 pt) every tool button keeps a hit +/// target of at least 24 × 24 pt: the row wraps onto a second line instead of shrinking them, and +/// every tool is still there, inside the panel, above the sections. +#[test] +fn a_narrow_panel_wraps_the_tool_row_and_keeps_every_button_24_pt() { + let mut h = edit_panel(); + narrowest(&mut h); + let panel = widget(&h, "panel:right_panel").expect("the panel"); + let row = widget(&h, "toolRow").expect("the tool row"); + assert!(panel.width() <= crate::state::RIGHT_WIDTH.min + 2.0, "the narrowest panel: {panel:?}"); + assert!(row.height() > crate::panels::strip::ROW_H, "two lines: {row:?}"); + let light = widget(&h, "section:light").expect("Light"); + assert!(row.bottom() <= light.top(), "above the sections"); + for id in ["edit", "crop", "remove", "masking", "versions", "activity", "keywords", "info", "presets", "more"] { + let r = widget(&h, &format!("icon:{id}")).unwrap_or_else(|| panic!("icon:{id}")); + assert!(r.width() >= 24.0 - 1e-3 && r.height() >= 24.0 - 1e-3, "{id}: a 24 pt target: {r:?}"); + assert!(row.contains_rect(r) && panel.contains_rect(r), "{id} in the row: {r:?}"); + } +} + +/// The row's fit: one line while every button can be 24 pt or more, else even lines; never a +/// button under 24 pt or a line without one, whatever the width. +#[test] +fn the_tool_row_fits_its_buttons_at_any_width() { + use crate::panels::strip::{ROW_BUTTON_MIN, row_fit}; + assert_eq!(row_fit(318.0, 10).0, 10, "the default panel: one line"); + let (per_line, lines, bw) = row_fit(250.0, 10); + assert_eq!((per_line, lines), (5, 2), "the narrowest panel: two even lines"); + assert!(bw >= ROW_BUTTON_MIN); + for w in [0.0, 1.0, 30.0, 100.0, 249.0, 274.0, 318.0, 520.0, 1e9, f32::NAN, f32::INFINITY, -50.0] { + for count in [0, 1, 10] { + let (per_line, lines, bw) = row_fit(w, count); + assert!(per_line >= 1 && lines >= 1 && per_line * lines >= count, "{w} / {count}: {per_line} × {lines}"); + assert!(bw.is_finite() && bw >= ROW_BUTTON_MIN, "{w} / {count}: {bw}"); + } + } +} + +/// Drag the panel's inner edge as far right as it goes: the narrowest panel. +fn narrowest(h: &mut Headless) { + let panel = widget(h, "panel:right_panel").expect("the panel"); + let r = h.request("ui.drag", json!({"x": panel.left() + 2.0, "y": 500.0, "toX": panel.left() + 300.0, "toY": 500.0, "steps": 12}), T); + assert_eq!(r["ok"], true, "{r}"); + h.settle(SETTLE); +} + +/// The registered widget that has the keyboard focus. +fn focused(h: &Headless) -> Option { + let id = h.view.ctx.memory(|m| m.focused())?; + let rect = h.view.ctx.read_response(id)?.rect; + h.app.widgets.iter().find(|(_, r)| *r == rect).map(|(w, _)| w.clone()) +} + +/// FredApps on #3158: Tab reaches every tool in the row in the stated order, left to right and, +/// when the row wraps on the narrowest panel, line by line. +#[test] +fn tab_reaches_the_row_tools_in_order_on_one_line_and_wrapped() { + let want = ["edit", "crop", "remove", "masking", "versions", "activity", "keywords", "info", "presets", "more"].map(|id| format!("icon:{id}")); + for narrow in [false, true] { + let mut h = edit_panel(); + if narrow { + narrowest(&mut h); + } + let row = widget(&h, "toolRow").expect("the tool row"); + let mut order: Vec = Vec::new(); + for _ in 0..400 { + assert_eq!(h.request("ui.key", json!({"key": "Tab"}), T)["ok"], true); + h.step(); + h.step(); + let Some(w) = focused(&h) else { continue }; + // (the top bar and the view toolbar have icons too: only the row's count here) + if !w.starts_with("icon:") || !widget(&h, &w).is_some_and(|r| row.contains_rect(r)) { + continue; + } + if order.first() == Some(&w) { + break; + } + if order.last() != Some(&w) { + order.push(w); + } + } + assert_eq!(order, want, "narrow {narrow}: the row's Tab order"); + } +} diff --git a/crates/ui-egui/src/theme.rs b/crates/ui-egui/src/theme.rs index 0c562f451fb..da7a4e91878 100644 --- a/crates/ui-egui/src/theme.rs +++ b/crates/ui-egui/src/theme.rs @@ -34,6 +34,12 @@ pub fn label_toast_colors(label: lightcraft_catalog::ColorLabel) -> (Color32, Co (Color32::WHITE.lerp_to_gamma(label_color(label), 0.3), Color32::from_rgb(36, 24, 24)) } +/// Corner radius (points) of buttons, segmented controls, fields, hover and selection fills: kept +/// small so the panels read calm (half of the earlier 4). +pub const RADIUS: u8 = 2; +/// Corner radius of panels, cards, windows and menus (half of the earlier 6). +pub const RADIUS_PANEL: u8 = 3; + #[derive(Clone, Copy, Debug)] pub struct Tokens { /// Top bar, side panels, bottom bar, tool strip. @@ -57,6 +63,9 @@ pub struct Tokens { /// more against the grid. pub ring_selected: Color32, pub divider: Color32, + /// The band behind a major section's header (Light, Color, Effects…): the strongest row in a + /// panel, set apart from the chrome so a section's start reads at a glance. + pub section_band: Color32, pub inset: Color32, pub field: Color32, pub field_border: Color32, @@ -142,6 +151,7 @@ impl Default for Tokens { ring_inner: Color32::from_rgb(0x00, 0x00, 0x00), ring_selected: Color32::from_rgb(0xc0, 0xc0, 0xc0), divider: Color32::from_rgb(0x1c, 0x1c, 0x1c), + section_band: Color32::from_rgb(0x3b, 0x3b, 0x3b), inset: Color32::from_rgb(0x23, 0x23, 0x23), field: Color32::from_rgb(0x22, 0x22, 0x22), field_border: Color32::from_rgb(0x3c, 0x3c, 0x3c), @@ -168,8 +178,8 @@ impl Default for Tokens { bottom_bar_h: 48.0, panel_w: 270.0, strip_w: 48.0, - slider_row_h: 45.0, - section_h: 57.0, + slider_row_h: 20.0, + section_h: 26.0, film_h: 142.0, } } @@ -190,6 +200,7 @@ impl Tokens { cell_selected: rgb(0x262626), skeleton: rgb(0x1d1d1d), divider: rgb(0x0e0e0e), + section_band: rgb(0x2c2c2c), inset: rgb(0x181818), field: rgb(0x161616), field_border: rgb(0x333333), @@ -211,6 +222,7 @@ impl Tokens { cell_selected: rgb(0xb4b4b4), skeleton: rgb(0xa6a6a6), divider: rgb(0xc4c4c4), + section_band: rgb(0xd0d0d0), inset: rgb(0xdcdcdc), field: rgb(0xf6f6f6), field_border: rgb(0xb8b8b8), @@ -245,6 +257,7 @@ impl Tokens { cell_selected: rgb(0xd2d2d2), skeleton: rgb(0xbcbcbc), divider: rgb(0xe0e0e0), + section_band: rgb(0xe4e4e4), inset: rgb(0xf0f0f0), field: rgb(0xffffff), field_border: rgb(0xcccccc), @@ -442,8 +455,8 @@ pub fn apply_kind(ctx: &egui::Context, kind: ThemeKind) { v.extreme_bg_color = t.field; v.faint_bg_color = t.inset; v.window_stroke = Stroke::new(1.0, t.button_border); - v.window_corner_radius = CornerRadius::same(6); - v.menu_corner_radius = CornerRadius::same(6); + v.window_corner_radius = CornerRadius::same(RADIUS_PANEL); + v.menu_corner_radius = CornerRadius::same(RADIUS_PANEL); v.selection.bg_fill = t.accent.gamma_multiply(0.6); v.selection.stroke = Stroke::new(1.0, t.accent); v.override_text_color = Some(t.text_label); @@ -453,7 +466,7 @@ pub fn apply_kind(ctx: &egui::Context, kind: ThemeKind) { let w = &mut v.widgets; craft_ui::theme::WidgetPalette { noninteractive: t.chrome, inactive: t.button, hovered: t.hover, active: t.pressed, open: t.hover }.apply_to( w, - CornerRadius::same(4), + CornerRadius::same(RADIUS), Stroke::new(1.0, t.text_label), ); w.noninteractive.bg_stroke = Stroke::new(1.0, t.divider); diff --git a/crates/ui-egui/src/widgets.rs b/crates/ui-egui/src/widgets.rs index 3101a93dc99..b72d6fea4c2 100644 --- a/crates/ui-egui/src/widgets.rs +++ b/crates/ui-egui/src/widgets.rs @@ -246,7 +246,7 @@ pub fn preview_only_notice(ui: &mut Ui, key: &str, reason: &str) -> bool { let r = egui::Frame::NONE .fill(t.canvas) .stroke(Stroke::new(1.0, t.caution.gamma_multiply(0.45))) - .corner_radius(6.0) + .corner_radius(crate::theme::RADIUS_PANEL) .inner_margin(egui::Margin { left: 10, right: 10, top: 8, bottom: 9 }) .show(ui, |ui| { ui.set_width(ui.available_width()); @@ -311,28 +311,57 @@ fn track_stops(track: &Track) -> Option> { }) } -fn paint_track(ui: &Ui, rect: Rect, track: &Track, t: &Tokens, thumb_x: f32, ring: f32) { +/// A slider's track: a thin line, a colour gradient where colour is the meaning (Temp, Tint, Hue, +/// Saturation…), with a small tick at the middle of a centred one. Dimmed when disabled. +fn paint_track(ui: &Ui, rect: Rect, track: &Track, t: &Tokens, enabled: bool) { let p = ui.painter(); let y = rect.center().y; - let h = 1.0; + let dim = |c: Color32| if enabled { c } else { c.gamma_multiply(0.45) }; + // one mesh with a colour per column of vertices: smooth, and no overlapping strips that would + // stripe a dimmed (translucent) track + let paint_ramp = |colour: &dyn Fn(f32) -> Color32| { + let h = TRACK_COLOR_H / 2.0; + let steps: u32 = 48; + let mut mesh = egui::Mesh::default(); + for i in 0..=steps { + let a = i as f32 / steps as f32; + let x = rect.left() + rect.width() * a; + let c = dim(colour(a)); + mesh.colored_vertex(pos2(x, y - h), c); + mesh.colored_vertex(pos2(x, y + h), c); + if i > 0 { + let k = 2 * i; + mesh.add_triangle(k - 2, k - 1, k); + mesh.add_triangle(k - 1, k, k + 1); + } + } + p.add(egui::Shape::mesh(mesh)); + }; if let Some(stops) = track_stops(track) { // gradient: segments between stops let n = stops.len().max(2) - 1; - let steps = 48; - for i in 0..steps { - let (a, b) = (i as f32 / steps as f32, (i + 1) as f32 / steps as f32); + paint_ramp(&|a: f32| { let seg = (a * n as f32).floor() as usize; let local = a * n as f32 - seg as f32; - let c = lerp(stops[seg.min(n)], stops[(seg + 1).min(n)], local); - let x0 = rect.left() + rect.width() * a; - let x1 = rect.left() + rect.width() * b; - p.rect_filled(Rect::from_min_max(pos2(x0, y - h - 0.5), pos2(x1 + 0.5, y + h + 0.5)), 0.0, c); - } + lerp(stops[seg.min(n)], stops[(seg + 1).min(n)], local) + }); } else { - p.rect_filled(Rect::from_min_max(pos2(rect.left(), y - h), pos2(rect.right(), y + h)), 1.0, t.track); + let h = TRACK_H / 2.0; + p.rect_filled(Rect::from_min_max(pos2(rect.left(), y - h), pos2(rect.right(), y + h)), 1.0, dim(t.track)); + } + if matches!(track, Track::Centered) { + // where the slider has no effect + p.rect_filled(Rect::from_center_size(pos2(rect.center().x, y), vec2(1.0, 6.0)), 0.0, dim(t.track)); } - // gap around the hollow thumb - p.rect_filled(Rect::from_center_size(pos2(thumb_x, y), vec2(ring * 2.0 + 4.0, 6.0)), 0.0, t.chrome); +} + +/// A slider's handle: a small dot on the track, a little larger while hovered or dragged, ringed +/// in the panel colour so it stands off a colour track. +fn paint_handle(ui: &Ui, at: egui::Pos2, hot: bool, color: Color32, t: &Tokens) { + let r = if hot { HANDLE_R_HOT } else { HANDLE_R }; + let p = ui.painter(); + p.circle_filled(at, r + 1.0, t.chrome); + p.circle_filled(at, r, color); } /// Result of a slider interaction this frame. @@ -410,65 +439,202 @@ fn update_wheel_arming(ui: &mut Ui, id: egui::Id, resp: &egui::Response, row: Re (wheel_armed, pointer_in_row) } -/// The radius of a slider's hollow ring thumb. -const THUMB_RING: f32 = 7.0; +/// The radius of a slider's handle, and while it is hovered or dragged. +pub(crate) const HANDLE_R: f32 = 4.5; +pub(crate) const HANDLE_R_HOT: f32 = 5.5; +/// A plain track's thickness, and a colour track's (a little thicker, so its colours read). +const TRACK_H: f32 = 2.0; +const TRACK_COLOR_H: f32 = 3.0; +/// Space between a slider row's name, track and value. +const ROW_GAP: f32 = 6.0; +/// Gap between a right-aligned name and its track: room for the handle sitting at the track's +/// left end, so a name never runs into it. +const NAME_GAP: f32 = ROW_GAP + HANDLE_R_HOT; +/// Left and right margins of the panels' rows (sliders, captions, buttons line up on them). +pub const PAD_L: f32 = 14.0; +pub const PAD_R: f32 = 12.0; +/// The panels' row margins, `top` and `bottom` apart, as an egui frame margin. +pub fn row_margin(top: i8, bottom: i8) -> egui::Margin { + egui::Margin { left: PAD_L as i8, right: PAD_R as i8, top, bottom } +} +/// The size of a slider's name and value. +const ROW_FONT: f32 = 11.0; +/// The name column's narrowest, and the most of a row (inside its margins) it may take: a longer +/// name is cut short with … (shown whole on hover). +const NAME_MIN: f32 = 24.0; +const NAME_SHARE_MAX: f32 = 0.4; +/// Width of the value column at a row's right ("50000", "+0.17", "-100" at [`ROW_FONT`]). +const VALUE_W: f32 = 32.0; + +/// Where the parts of a one-line slider row sit: the name in a column at the left (`name_w` +/// wide: the longest name of its group, see [`name_column`]), the value right-aligned at the +/// right, the track between them — as long as the names leave it. Each part is the row's full +/// height, so all of the row takes the pointer. A row too narrow for its parts still gives the +/// track a point of width (it is divided by). +#[derive(Debug, Clone, Copy, PartialEq)] +pub(crate) struct RowParts { + pub label: Rect, + pub track: Rect, + pub value: Rect, +} + +pub(crate) fn row_parts(row: Rect, name_w: f32) -> RowParts { + // a row too narrow for everything gives up its margins first, then shrinks the name and value + // columns, then the gaps, so every part stays inside it with a point of track to divide by + let row_w = if row.width().is_finite() { row.width().max(0.0) } else { 0.0 }; + let pads = PAD_L + PAD_R; + let kp = (row_w - 1.0).max(0.0).min(pads) / pads; + let left = row.left() + PAD_L * kp; + let right = (row.right() - PAD_R * kp).max(left); + let w = right - left; + let track_min = w.min(1.0); + let name_w = if name_w.is_finite() { name_w } else { 0.0 }; + let mut label_w = name_w.max(NAME_MIN).min(w * NAME_SHARE_MAX); + let mut value_w = VALUE_W.min(w * 0.25); + let columns = (w - track_min).max(0.0); + if label_w + value_w > columns { + let k = columns / (label_w + value_w); + label_w *= k; + value_w *= k; + } + // room for the handle at the track's left end, as far as a very narrow row allows + let name_gap = NAME_GAP.min(ROW_GAP.max(w * 0.05)); + let spare = (w - label_w - value_w - track_min).max(0.0); + let kg = if name_gap + ROW_GAP > spare { spare / (name_gap + ROW_GAP) } else { 1.0 }; + let label = Rect::from_min_max(pos2(left, row.top()), pos2(left + label_w, row.bottom())); + let value = Rect::from_min_max(pos2(right - value_w, row.top()), pos2(right, row.bottom())); + let track_l = (label.right() + name_gap * kg).min(value.left()); + let track_r = (value.left() - ROW_GAP * kg).clamp(track_l, value.left()); + let track = Rect::from_min_max(pos2(track_l, row.top()), pos2(track_r, row.bottom())); + RowParts { label, track, value } +} + +/// Where a slider's name starts: right-aligned in its name column, so it ends [`NAME_GAP`] before +/// its own track however short it is (a name too wide for the column starts at its left edge). +pub(crate) fn name_left(label: Rect, text_w: f32) -> f32 { + let w = if text_w.is_finite() { text_w.max(0.0) } else { 0.0 }; + (label.right() - w).max(label.left()) +} + +/// Where the current slider group is kept, per layer (a dialog's sliders aren't the panel's). +fn group_slot(layer: egui::LayerId) -> egui::Id { + egui::Id::unique(("slider-group", layer)) +} + +/// Starts a group of sliders whose names share one column (a section: [`section_header`] calls +/// it). Sliders drawn outside any group this pass share a column with the others in their `Ui`. +pub(crate) fn begin_slider_group(ui: &Ui, id: &str) { + let pass = ui.ctx().cumulative_pass_nr(); + ui.data_mut(|d| d.insert_temp(group_slot(ui.layer_id()), (egui::Id::unique(("slider-names", id)), pass))); +} + +/// Draws `body` as a slider group of its own (a flyout such as Color Grading or the Color Mixer): +/// its names get their own column, so a few long ones ("Highlights Luminance") neither shorten the +/// tracks of the section around it nor move them as it opens and closes. The section's group +/// carries on after it. +pub(crate) fn slider_group(ui: &mut Ui, id: &str, body: impl FnOnce(&mut Ui) -> R) -> R { + let slot = group_slot(ui.layer_id()); + let outer = ui.data(|d| d.get_temp::<(egui::Id, u64)>(slot)); + begin_slider_group(ui, id); + let out = body(ui); + ui.data_mut(|d| { + if let Some(g) = outer { + d.insert_temp(slot, g); + } else { + d.remove::<(egui::Id, u64)>(slot); + } + }); + out +} -/// A Lightroom slider row (label + value above a track with a hollow ring thumb). -/// Double-click the label or thumb to reset (hovering either says so). Shift-drag = fine adjustment. -/// Scroll sideways over it to nudge it. Click the value to type one: Return or clicking away applies it, -/// Esc keeps the old one. Drag the value sideways to scrub it, as if dragging the thumb (Shift: a tenth -/// as far). +/// The width of the name column of the slider group being drawn: the longest name in it, as +/// measured over this pass and the one before (a group's rows below this one count once they have +/// been drawn), so a section's tracks start together just after its longest name. +fn name_column(ui: &Ui, name_w: f32) -> f32 { + let pass = ui.ctx().cumulative_pass_nr(); + let group = match ui.data(|d| d.get_temp::<(egui::Id, u64)>(group_slot(ui.layer_id()))) { + Some((g, p)) if p == pass => g, + _ => ui.scope_id().with("slider-names"), + }; + let name_w = if name_w.is_finite() { name_w.max(0.0) } else { 0.0 }; + let (seen, cur, prev) = ui.data(|d| d.get_temp::<(u64, f32, f32)>(group)).unwrap_or((pass, 0.0, 0.0)); + // a new pass: the last one's widest becomes the remembered one + let (cur, prev) = if seen == pass { (cur, prev) } else { (0.0, cur) }; + let cur = cur.max(name_w); + ui.data_mut(|d| d.insert_temp(group, (pass, cur, prev))); + cur.max(prev) +} + +/// The one slider of the app (Edit panel, mask panel, dialogs): ONE row of the panel's +/// `slider_row_h` — the name at the left, a thin track with a small handle, the value +/// right-aligned at the right. The whole row takes the pointer: click or drag the track to set the +/// value there, drag the name or the value sideways to move it from where it is (Shift: a tenth as +/// far), double-click the name or the handle to reset (hovering either says so), click the value +/// to type one (Return or clicking away applies it, Esc keeps the old one). Scroll sideways over +/// it, or the wheel after clicking it, to nudge it; ↑ / ↓ nudge a hovered or focused slider. A +/// value at its default is dim, a changed one bright. pub fn slider(ui: &mut Ui, spec: &ControlSpec, value: f64, enabled: bool, label_override: Option<&str>) -> SliderOut { + slider_named(ui, spec, value, enabled, label_override, label_override) +} + +/// [`slider`] showing the name `shown` (or the spec's) while screen readers announce `spoken` (or +/// the spec's): a short name under a caption ("Amount" under Grain) only makes sense to the eye, +/// so assistive tools get the control's full name ("Grain"). +pub fn slider_named(ui: &mut Ui, spec: &ControlSpec, value: f64, enabled: bool, shown: Option<&str>, spoken: Option<&str>) -> SliderOut { let t = Tokens::get(ui.ctx()); let w = ui.available_width(); let (row, _) = ui.allocate_exact_size(vec2(w, t.slider_row_h), Sense::hover()); - let pad_l = 24.0; - let pad_r = 22.0; - let label_rect = Rect::from_min_size(pos2(row.left() + pad_l, row.top() + 4.0), vec2(w - pad_l - pad_r, 18.0)); - let track_rect = Rect::from_min_max(pos2(row.left() + pad_l, row.top() + 22.0), pos2(row.right() - pad_r, row.top() + 40.0)); - let value_rect = Rect::from_min_max(pos2(label_rect.right() - 64.0, label_rect.top()), label_rect.max); + // the focused row's highlight goes under everything drawn in it + let backdrop = ui.painter().add(egui::Shape::Noop); + // (a hostile value is drawn at the nearest end, never at NaN) + let value = if value.is_finite() { value } else { spec.default }; + let label_text = crate::i18n::tr(shown.unwrap_or(spec.label)).to_string(); + let access_name = crate::i18n::tr(spoken.unwrap_or(spec.label)).to_string(); + let font = t.font(ROW_FONT); + let name_w = ui.painter().layout_no_wrap(label_text.clone(), font.clone(), t.text).size().x.ceil(); + let RowParts { label: label_rect, track: track_rect, value: value_rect } = row_parts(row, name_column(ui, name_w)); let id = ui.scope_id().with(spec.id); let g = SliderLayout { spec, value, enabled, id, track_rect, value_rect }; - let resp = ui.interact(track_rect.expand2(vec2(8.0, 2.0)), id, if enabled { Sense::click_and_drag() } else { Sense::hover() }); + let resp = ui.interact(track_rect.expand2(vec2(HANDLE_R_HOT, 0.0)), id, if enabled { Sense::click_and_drag() } else { Sense::hover() }); let (wheel_armed, pointer_in_row) = update_wheel_arming(ui, id, &resp, row, enabled); // screen readers: a slider named after its control, with its value - let label_text = crate::i18n::tr(label_override.unwrap_or(spec.label)).to_string(); - resp.widget_info(|| egui::WidgetInfo::slider(enabled, value, label_text.clone())); + resp.widget_info(|| egui::WidgetInfo::slider(enabled, value, access_name.clone())); describe_slider(ui, &g, &resp); - // the name: double-click it to reset, as the thumb (a disabled slider's name is only text) - let label_resp = ui.interact(label_rect, id.with("label"), if enabled { Sense::click() } else { Sense::hover() }); + // the name: double-click it to reset, as the handle; drag it sideways to move the value from + // where it is (a disabled slider's name is only text) + let label_resp = ui.interact(label_rect, id.with("label"), if enabled { Sense::click_and_drag() } else { Sense::hover() }); // say how to reset (issue #1436: the double-click was hard to discover), as the curve channels do let reset_hint = crate::i18n::tr_format!("{name} — double-click to reset it", name = label_text); let label_resp = if enabled { label_resp.on_hover_text(reset_hint.as_str()) } else { label_resp }; - crate::widgets::announce(&label_resp, crate::i18n::tr_format!("Reset {name}", name = label_text.clone())); + crate::widgets::announce(&label_resp, crate::i18n::tr_format!("Reset {name}", name = access_name.clone())); register(ui, format!("sliderLabel:{}", spec.id), label_rect); register(ui, format!("slider:{}", spec.id), track_rect); - // the value: click it to type an exact one, drag it sideways to scrub (over the label, so it - // takes the click) + // the value: click it to type an exact one, drag it sideways to scrub let value_resp = ui.interact(value_rect, id.with("value"), if enabled { Sense::click_and_drag() } else { Sense::hover() }); // the name is short ("Exposure value"); how to use it is the description the hover text below gives - crate::widgets::announce(&value_resp, crate::i18n::tr_format!("{name} value", name = label_text.clone())); + crate::widgets::announce(&value_resp, crate::i18n::tr_format!("{name} value", name = access_name.clone())); register(ui, format!("sliderValue:{}", spec.id), value_rect); // say that an exact value can be typed here (issue #534: an exact crop angle was hard to find) let value_resp = if enabled { value_resp.on_hover_text(crate::i18n::tr("Click to type a value, drag to change it")) } else { value_resp }; // Keep the short focus-acquisition guard, but let an explicit Return/Escape end the edit. let mut typing: Option = ui.data(|m| m.get_temp(g.typing_id())); // A scrub: the unrounded track position (0..1) it has reached, so a slow drag adds up instead - // of rounding back to the same step every frame. - let mut scrub: Option = if value_resp.dragged() || value_resp.drag_stopped() { ui.data(|m| m.get_temp(g.scrub_id())) } else { None }; - let scrub_started = begin_scrub(ui, &g, &value_resp, &mut scrub, &mut typing); + // of rounding back to the same step every frame. (The name scrubs as the value does.) + let scrubber = if label_resp.dragged() || label_resp.drag_stopped() { &label_resp } else { &value_resp }; + let mut scrub: Option = if scrubber.dragged() || scrubber.drag_stopped() { ui.data(|m| m.get_temp(g.scrub_id())) } else { None }; + let scrub_started = begin_scrub(ui, &g, scrubber, &mut scrub, &mut typing); if scrub.is_none() { ui.data_mut(|m| m.remove::(g.scrub_id())); } update_typing_gesture(ui, &g, &value_resp, &mut typing); let mut out = SliderOut::default(); - // the thumb: a click there doesn't move the value, and resting on it says how to reset (the rest - // of the track, which is clicked and dragged, gets no tooltip) + // the handle: a click there doesn't move the value, and resting on it says how to reset (the + // rest of the track, which is clicked and dragged, gets no tooltip) if enabled && !resp.dragged() && resp.hover_pos().is_some_and(|p| g.on_thumb(p)) { resp.clone().on_hover_text(reset_hint.as_str()); } if let Some(pos) = scrub { - scrub_value(ui, &g, &value_resp, pos, scrub_started, &mut out); + scrub_value(ui, &g, scrubber, pos, scrub_started, &mut out); } else if let Some(draft) = typing.take() { typing = edit_value(ui, &t, &g, draft, &mut out); } else if resp.double_clicked() || label_resp.double_clicked() { @@ -481,35 +647,88 @@ pub fn slider(ui: &mut Ui, spec: &ControlSpec, value: f64, enabled: bool, label_ wheel_edit(ui, &g, wheel_armed, pointer_in_row, &mut out); } let v = out.value.unwrap_or(value); - // paint - let hovered = resp.hovered() || resp.dragged(); - let text_c = if enabled { t.text_label } else { t.text_disabled }; - let p = ui.painter(); - p.text(label_rect.left_center(), Align2::LEFT_CENTER, crate::i18n::tr(label_override.unwrap_or(spec.label)), t.font(12.5), text_c); - if typing.is_none() { - p.text(label_rect.right_center(), Align2::RIGHT_CENTER, shown_value(spec, v), t.font(12.5), text_c); - // the scrub pointer, as over Lightroom's values: a drag here changes the value - if enabled && (value_resp.hovered() || scrub.is_some()) { - ui.ctx().set_cursor_icon(egui::CursorIcon::ResizeHorizontal); - } + let looks = SliderLooks { + row, + backdrop, + label_rect, + label_text: &label_text, + font, + hovered: resp.hovered() || resp.dragged(), + scrubbing: scrub.is_some(), + name_hovered: label_resp.hovered(), + value_hovered: value_resp.hovered(), + focused: enabled && resp.has_focus(), + typing: typing.is_some(), + }; + paint_slider(ui, &t, &g, &looks, v); + out +} + +/// What [`paint_slider`] draws a slider row with. +struct SliderLooks<'a> { + row: Rect, + /// the shape under the row, for the focused row's highlight + backdrop: egui::layers::ShapeIdx, + label_rect: Rect, + label_text: &'a str, + font: egui::FontId, + /// the track hovered or dragged + hovered: bool, + scrubbing: bool, + name_hovered: bool, + value_hovered: bool, + focused: bool, + typing: bool, +} + +/// Paints a slider row at value `v`: the focused row's highlight, the name, the value (unless one is typed), the track +/// and its handle, and the pointer. +fn paint_slider(ui: &Ui, t: &Tokens, g: &SliderLayout, l: &SliderLooks, v: f64) { + let enabled = g.enabled; + let hot = enabled && (l.hovered || l.scrubbing || l.name_hovered || l.value_hovered); + if l.focused { + // the slider the arrow keys (and the console) move + ui.painter().set(l.backdrop, egui::Shape::rect_filled(l.row, 2.0, t.hover.gamma_multiply(0.45))); } - let ring = THUMB_RING; - let tx = g.to_x(v); - paint_track(ui, track_rect, &spec.track, &t, tx, ring); - let p = ui.painter(); - let ring_c = if !enabled { + let name_c = if !enabled { + t.text_disabled + } else if hot || l.focused { + t.text + } else { + t.text_label + }; + // a name too long for its column is cut short (hovering it shows it whole, with the reset hint) + let name = one_line(ui.painter(), l.label_text, l.font.clone(), name_c, l.label_rect.width()); + let name_x = name_left(l.label_rect, name.size().x); + ui.painter().galley(pos2(name_x, l.label_rect.center().y - name.size().y / 2.0), name, name_c); + if !l.typing { + // a value at its default is dim, a changed one bright: what was touched shows at a glance + let changed = (v - g.spec.default).abs() > g.spec.step.max(1e-9) / 2.0; + let value_c = if !enabled { + t.text_disabled + } else if changed || hot { + t.text + } else { + t.text_dim + }; + ui.painter().text(g.value_rect.right_center(), Align2::RIGHT_CENTER, shown_value(g.spec, v), l.font.clone(), value_c); + } + // the scrub pointer, as over Lightroom's values: a drag on the value or the name changes it + if enabled && ((!l.typing && (l.value_hovered || l.scrubbing)) || l.name_hovered) { + ui.ctx().set_cursor_icon(egui::CursorIcon::ResizeHorizontal); + } + paint_track(ui, g.track_rect, &g.spec.track, t, enabled); + let handle_c = if !enabled { t.text_disabled - } else if hovered { + } else if l.hovered || l.scrubbing { t.thumb_hover } else { t.thumb }; - p.circle_filled(pos2(tx, track_rect.center().y), ring, t.chrome); - p.circle_stroke(pos2(tx, track_rect.center().y), ring, Stroke::new(2.0, ring_c)); - if hovered { + paint_handle(ui, pos2(g.to_x(v), g.track_rect.center().y), l.hovered || l.scrubbing, handle_c, t); + if l.hovered { ui.ctx().set_cursor_icon(egui::CursorIcon::ResizeHorizontal); } - out } /// A value being typed into a slider: the text, the frames it has been open, and whether the press that opened it is @@ -556,18 +775,23 @@ impl SliderLayout<'_> { (nv - self.value).abs() > 1e-12 } + /// The track's width, never zero (it is divided by). + fn track_w(&self) -> f32 { + self.track_rect.width().max(1.0) + } + /// value ↔ track position: linear, except for the Kelvin temperature (`ControlSpec::position`) fn to_x(&self, v: f64) -> f32 { - self.track_rect.left() + self.spec.position(v) as f32 * self.track_rect.width() + self.track_rect.left() + (self.spec.position(v) as f32).clamp(0.0, 1.0) * self.track_rect.width() } fn value_at_x(&self, x: f32) -> f64 { - self.spec.value_at(f64::from((x - self.track_rect.left()) / self.track_rect.width())) + self.spec.value_at(f64::from(((x - self.track_rect.left()) / self.track_w()).clamp(0.0, 1.0))) } - /// Whether `p` is on the thumb. + /// Whether `p` is on the handle. fn on_thumb(&self, p: egui::Pos2) -> bool { - (p.x - self.to_x(self.value)).abs() <= THUMB_RING + 1.0 + (p.x - self.to_x(self.value)).abs() <= HANDLE_R_HOT + 1.0 } /// A change made in one go (a click, a key, a wheel step): it starts and stops the drag at once. @@ -600,7 +824,7 @@ fn describe_slider(ui: &Ui, g: &SliderLayout, resp: &Response) { }); } -/// A press on the readout that moves sideways starts a scrub: the edit the press opened is dropped. Returns whether +/// A press on the readout (or the name) that moves sideways starts a scrub: the edit the press opened is dropped. Returns whether /// a scrub started this frame (`scrub` then holds its first position). fn begin_scrub(ui: &mut Ui, g: &SliderLayout, value_resp: &Response, scrub: &mut Option, typing: &mut Option) -> bool { if !g.enabled || scrub.is_some() || !value_resp.dragged() { @@ -615,7 +839,7 @@ fn begin_scrub(ui: &mut Ui, g: &SliderLayout, value_resp: &Response, scrub: &mut ui.memory_mut(|m| m.surrender_focus(g.field_id())); // the travel so far counts, so the value doesn't lag the pointer by the start distance let fine = if ui.input(|i| i.modifiers.shift) { 0.1 } else { 1.0 }; - *scrub = Some((g.spec.position(g.value) + f64::from((p.x - origin.x) / g.track_rect.width()) * fine).clamp(0.0, 1.0)); + *scrub = Some((g.spec.position(g.value) + f64::from((p.x - origin.x) / g.track_w()) * fine).clamp(0.0, 1.0)); true } @@ -644,7 +868,7 @@ fn scrub_value(ui: &mut Ui, g: &SliderLayout, value_resp: &Response, mut pos: f6 if !started && value_resp.dragged() { let fine = if ui.input(|i| i.modifiers.shift) { 0.1 } else { 1.0 }; let dx = ui.input(|i| i.pointer.delta().x); - pos = (pos + f64::from(dx / g.track_rect.width()) * fine).clamp(0.0, 1.0); + pos = (pos + f64::from(dx / g.track_w()) * fine).clamp(0.0, 1.0); } let nv = g.snap(g.spec.value_at(pos)); if g.differs(nv) { @@ -675,7 +899,7 @@ fn edit_value(ui: &mut Ui, t: &Tokens, g: &SliderLayout, draft: Draft, out: &mut let mut child = ui.new_child(egui::UiBuilder::new().max_rect(g.value_rect).layout(egui::Layout::right_to_left(egui::Align::Center))); // the old value is selected when the field takes the focus, so typing replaces it let field = crate::text_field::TextField::singleline(&format!("sliderField:{}", g.spec.id), &mut text) - .font(t.font(12.5)) + .font(t.font(ROW_FONT)) .horizontal_align(egui::Align::RIGHT) .width(g.value_rect.width()) .margin(egui::Margin::ZERO) @@ -738,7 +962,7 @@ fn fine_drag_value(ui: &mut Ui, g: &SliderLayout) -> f64 { let fine_id = g.id.with("fine-pos"); let dx = ui.input(|i| i.pointer.delta().x); let kept = ui.data(|m| m.get_temp::(fine_id)).filter(|&p| ((g.spec.value_at(p) / step).round() * step - g.value).abs() < step / 2.0); - let pos = (kept.unwrap_or_else(|| g.spec.position(g.value)) + f64::from(dx / g.track_rect.width()) * 0.1).clamp(0.0, 1.0); + let pos = (kept.unwrap_or_else(|| g.spec.position(g.value)) + f64::from(dx / g.track_w()) * 0.1).clamp(0.0, 1.0); ui.data_mut(|m| m.insert_temp(fine_id, pos)); g.spec.value_at(pos) } @@ -848,21 +1072,51 @@ pub(crate) fn announce_disclosure(resp: &egui::Response, enabled: bool, expanded resp.ctx.accesskit_node_builder(resp.id, |node| node.set_expanded(expanded)); } -/// Collapsible section header ("› Light"). Returns the response (click toggles). +/// Title size of a major section header (Light, Color…); sub-section rows use [`SUB_TITLE`]. +pub(crate) const SECTION_TITLE: f32 = 13.0; +/// Title size of a sub-section row (Curve, Color Mixer…): smaller and regular weight, so it reads +/// as part of its section. +pub(crate) const SUB_TITLE: f32 = 12.0; + +/// The fill of a major section header's band: the section-band token, a shade lighter (darker in +/// light themes) under the pointer. +pub(crate) fn section_fill(t: &Tokens, hovered: bool) -> Color32 { + if hovered { t.section_band.lerp_to_gamma(t.text, 0.06) } else { t.section_band } +} + +/// The fill of a sub-section row (Curve, Color Mixer…): none at rest, a light hover, so the rows +/// stay quieter than the section header above them. +pub(crate) fn flyout_fill(t: &Tokens, hovered: bool) -> Option { + hovered.then(|| t.chrome.lerp_to_gamma(t.hover, 0.6)) +} + +/// Paints a major section header's band over `r`: the band fill and a separator along its top. +pub(crate) fn paint_section_band(p: &egui::Painter, r: Rect, t: &Tokens, hovered: bool) { + p.rect_filled(r, 0.0, section_fill(t, hovered)); + p.rect_filled(Rect::from_min_max(r.left_top(), pos2(r.right(), r.top() + 1.0)), 0.0, t.divider); +} + +/// Collapsible section header ("› Light"): one thin bar of the theme's `section_h`, the chevron +/// and name at the left, the section's eye (show the photo without it) at the right. The same bar +/// heads the Edit panel's and the mask panel's sections, and would head a tab's (Tabs layout). +/// Returns the response (click toggles) and the eye's new state when it was clicked. pub fn section_header(ui: &mut Ui, id: &str, title: &str, open: bool, enabled: Option) -> (Response, Option) { let title = crate::i18n::tr(title); let t = Tokens::get(ui.ctx()); let w = ui.available_width(); - let (r, resp) = ui.allocate_exact_size(vec2(w, 52.0), Sense::click()); + let (r, resp) = ui.allocate_exact_size(vec2(w, t.section_h), Sense::click()); announce_disclosure(&resp, true, open, title); register(ui, format!("section:{id}"), r); + // the section's sliders line their names up in one column of their own + begin_slider_group(ui, id); let p = ui.painter(); - if ui.rect_contains_pointer(r) { - p.rect_filled(r, 0.0, t.chrome.gamma_multiply(1.06)); + paint_section_band(p, r, &t, ui.rect_contains_pointer(r)); + if resp.has_focus() { + p.rect_stroke(r.shrink(1.0), crate::theme::RADIUS, Stroke::new(1.5, t.accent), StrokeKind::Inside); } - let chev = Rect::from_center_size(pos2(r.left() + 30.0, r.center().y), vec2(16.0, 16.0)); - paint(p, chev, if open { Icon::ChevronDown } else { Icon::ChevronRight }, t.text_label); - p.text(pos2(r.left() + 44.0, r.center().y), Align2::LEFT_CENTER, title, t.semibold(14.0), t.text); + let chev = Rect::from_center_size(pos2(r.left() + PAD_L + 5.0, r.center().y), vec2(12.0, 12.0)); + paint(p, chev, if open { Icon::ChevronDown } else { Icon::ChevronRight }, t.text); + p.text(pos2(r.left() + PAD_L + 16.0, r.center().y), Align2::LEFT_CENTER, title, t.semibold(SECTION_TITLE), t.text); let mut toggled = None; // shown while the pointer is anywhere on the header: `resp.hovered()` turns false as soon as the // pointer is over the eye itself (the eye is on top), which hid the eye before it could be @@ -870,7 +1124,7 @@ pub fn section_header(ui: &mut Ui, id: &str, title: &str, open: bool, enabled: O if let Some(on) = enabled && (ui.rect_contains_pointer(r) || !on) { - let eye = Rect::from_center_size(pos2(r.right() - 34.0, r.center().y), vec2(18.0, 18.0)); + let eye = Rect::from_center_size(pos2(r.right() - PAD_R - 8.0, r.center().y), vec2(15.0, 15.0)); let er = ui.interact(eye, ui.scope_id().with(("eye", id)), Sense::click()); crate::widgets::announce_selected(&er, crate::i18n::tr("Show / hide"), on); register(ui, format!("sectionEye:{id}"), eye); @@ -893,38 +1147,44 @@ pub fn divider(ui: &mut Ui) { ui.painter().rect_filled(r, 0.0, t.divider); } -/// A flyout row inside a section (Curve, Color Mixer, Color Grading…): inset dark box with icon tile. +/// A sub-section row inside a section (Curve, Color Mixer, Color Grading…): indented icon and a +/// regular-weight title, no box of its own, so it reads as part of the section above it. pub fn flyout_row(ui: &mut Ui, id: &str, title: &str, icon: Icon, open: bool) -> Response { let title = crate::i18n::tr(title); let t = Tokens::get(ui.ctx()); let w = ui.available_width(); - let (outer, _) = ui.allocate_exact_size(vec2(w, 40.0), Sense::hover()); - let r = Rect::from_min_max(pos2(outer.left() + 16.0, outer.top() + 4.0), pos2(outer.right() - 16.0, outer.bottom() - 4.0)); + let (outer, _) = ui.allocate_exact_size(vec2(w, 26.0), Sense::hover()); + let r = Rect::from_min_max(pos2(outer.left() + PAD_L - 4.0, outer.top() + 2.0), pos2(outer.right() - PAD_R + 4.0, outer.bottom() - 2.0)); let resp = ui.interact(r, ui.scope_id().with(("flyout", id)), Sense::click()); announce_disclosure(&resp, true, open, title); register(ui, format!("flyout:{id}"), r); let p = ui.painter(); - p.rect_filled(r, 4.0, if resp.hovered() { t.hover.gamma_multiply(0.8) } else { t.inset }); - let tile = Rect::from_min_size(pos2(r.left() + 4.0, r.top() + 4.0), vec2(r.height() - 8.0, r.height() - 8.0)); - p.rect_filled(tile, 3.0, t.chrome.gamma_multiply(1.15)); - paint(p, tile.shrink(3.0), icon, t.text_label); - p.text(pos2(tile.right() + 10.0, r.center().y), Align2::LEFT_CENTER, title, t.semibold(13.0), t.text_label); + if let Some(fill) = flyout_fill(&t, resp.hovered()) { + p.rect_filled(r, crate::theme::RADIUS, fill); + } + // indented under the section's title: a nested part of it, not a section of its own + let tile = Rect::from_min_size(pos2(r.left() + 10.0, r.top() + 4.0), vec2(r.height() - 8.0, r.height() - 8.0)); + paint(p, tile.shrink(1.0), icon, t.text_dim); + p.text(pos2(tile.right() + 6.0, r.center().y), Align2::LEFT_CENTER, title, t.font(SUB_TITLE), t.text_label); paint( p, - Rect::from_center_size(pos2(r.right() - 14.0, r.center().y), vec2(16.0, 16.0)), + Rect::from_center_size(pos2(r.right() - 10.0, r.center().y), vec2(12.0, 12.0)), if open { Icon::ChevronDown } else { Icon::ChevronLeft }, t.text_label, ); resp } +/// Height of the panels' small buttons and segmented controls. +pub const BUTTON_H: f32 = 20.0; + /// A small bordered text button (Auto, B&W, HDR…). pub fn text_button(ui: &mut Ui, id: &str, label: &str, active: bool) -> Response { let label = if id.starts_with("labelSet-") { label } else { crate::i18n::tr(label) }; let t = Tokens::get(ui.ctx()); - let font = t.semibold(11.5); + let font = t.semibold(11.0); let galley = ui.painter().layout_no_wrap(label.to_string(), font, t.text); - let size = vec2(text_button_width(galley.size().x), 24.0); + let size = vec2(text_button_width(galley.size().x), BUTTON_H); let (r, resp) = ui.allocate_exact_size(size, Sense::click()); resp.widget_info(|| egui::WidgetInfo::selected(egui::Role::Button, true, active, label)); register(ui, format!("button:{id}"), r); @@ -936,20 +1196,20 @@ pub fn text_button(ui: &mut Ui, id: &str, label: &str, active: bool) -> Response t.button }; let p = ui.painter(); - p.rect(r, CornerRadius::same(4), fill, Stroke::new(1.0, t.button_border), StrokeKind::Inside); + p.rect(r, CornerRadius::same(crate::theme::RADIUS), fill, Stroke::new(1.0, t.button_border), StrokeKind::Inside); p.galley(r.center() - galley.size() / 2.0, galley, t.text); resp } /// The width of a [`text_button`] whose label is `text_width` wide. fn text_button_width(text_width: f32) -> f32 { - (text_width + 18.0).max(37.0) + (text_width + 14.0).max(34.0) } /// The width [`text_button`] takes for `label` (translated as it would be), to plan a row before drawing it. pub fn text_button_size(ui: &Ui, label: &str) -> f32 { let t = Tokens::get(ui.ctx()); - let galley = ui.painter().layout_no_wrap(crate::i18n::tr(label).to_string(), t.semibold(11.5), t.text); + let galley = ui.painter().layout_no_wrap(crate::i18n::tr(label).to_string(), t.semibold(11.0), t.text); text_button_width(galley.size().x) } @@ -968,7 +1228,7 @@ pub fn segmented(ui: &mut Ui, id: &str, items: &[(&str, &str)], active: Option egui::Id { egui::Id::unique("lightcraft-focused-slider") } diff --git a/crates/ui-egui/src/widgets/album_picker.rs b/crates/ui-egui/src/widgets/album_picker.rs index a88e5f1aaf7..7b4477a1232 100644 --- a/crates/ui-egui/src/widgets/album_picker.rs +++ b/crates/ui-egui/src/widgets/album_picker.rs @@ -297,7 +297,7 @@ impl<'a> AlbumPicker<'a> { let height = ui.spacing().interact_size.y; let (rect, r) = ui.allocate_exact_size(vec2(ui.available_width(), height), egui::Sense::click()); if r.hovered() { - ui.painter().rect_filled(rect, 3.0, t.hover); + ui.painter().rect_filled(rect, crate::theme::RADIUS, t.hover); } let x = rect.left() + indent; disclosure( diff --git a/crates/ui-egui/src/widgets/rating.rs b/crates/ui-egui/src/widgets/rating.rs index 8b1183eb632..9f46e469411 100644 --- a/crates/ui-egui/src/widgets/rating.rs +++ b/crates/ui-egui/src/widgets/rating.rs @@ -183,7 +183,7 @@ impl Rating { let side = RatingSize::Large.icon(); for (i, r) in (0..STARS).zip(cells) { if hover_n == Some(i + 1) { - ui.painter().rect_filled(r, 4.0, t.hover.gamma_multiply(0.7)); + ui.painter().rect_filled(r, crate::theme::RADIUS, t.hover.gamma_multiply(0.7)); } let filled = star_lit(i, self.rating, hover_n); paint_star(ui.painter(), Rect::from_center_size(r.center(), vec2(side, side)), filled, if filled { t.star } else { t.icon }); @@ -204,7 +204,7 @@ pub fn favorite_button(ui: &mut Ui, widget: String, favorite: bool, name: &str) register(ui, widget, r); } if resp.hovered() { - ui.painter().rect_filled(r, 4.0, t.hover.gamma_multiply(0.7)); + ui.painter().rect_filled(r, crate::theme::RADIUS, t.hover.gamma_multiply(0.7)); } if resp.has_focus() { ui.painter().rect_stroke(r.expand(1.0), 6.0, egui::Stroke::new(2.0, t.accent), egui::StrokeKind::Outside); diff --git a/crates/ui-egui/src/widgets/tests_dense_row.rs b/crates/ui-egui/src/widgets/tests_dense_row.rs new file mode 100644 index 00000000000..339bcd152ac --- /dev/null +++ b/crates/ui-egui/src/widgets/tests_dense_row.rs @@ -0,0 +1,341 @@ +//! The one-line slider row: its parts, its height, and real egui frames +//! for reset, typing, nudges and hostile values. +use super::{SliderOut, row_parts, slider, take_registry}; +use crate::headless::HeadlessView; +use egui::{Event, Key, Modifiers, PointerButton, Rect, pos2, vec2}; +use lightcraft_develop::{ControlSpec, controls}; + +struct Row { + view: HeadlessView, + spec: ControlSpec, + value: f64, + time: f64, + width: f32, +} + +impl Row { + fn new(id: &str, value: f64) -> Self { + let mut r = Row { view: HeadlessView::new(), spec: *controls::find(id).unwrap(), value, time: 0.0, width: 300.0 }; + for _ in 0..2 { + r.frame(vec![]); + } + r + } + fn frame(&mut self, events: Vec) -> SliderOut { + self.time += 0.02; + let mut out = SliderOut::default(); + let (spec, value) = (self.spec, self.value); + self.view.run(HeadlessView::raw_input(vec2(self.width, 100.0), 1.0, self.time, events), |ui| { + out = slider(ui, &spec, value, true, None); + }); + if let Some(v) = out.value { + self.value = v; + } + out + } + fn rect(&self, part: &str) -> Rect { + let name = format!("{part}:{}", self.spec.id); + take_registry(&self.view.ctx).into_iter().find(|(id, _)| *id == name).map(|(_, r)| r).unwrap_or_else(|| panic!("no {name}")) + } + fn parts(&mut self) -> (Rect, Rect, Rect) { + self.frame(vec![]); + let registry = take_registry(&self.view.ctx); + let find = |p: &str| registry.iter().find(|(id, _)| *id == format!("{p}:{}", self.spec.id)).unwrap().1; + (find("sliderLabel"), find("slider"), find("sliderValue")) + } + fn click(&mut self, at: egui::Pos2, count: usize) -> Vec { + let mut outs = vec![self.frame(vec![Event::PointerMoved(at)])]; + for _ in 0..count { + for pressed in [true, false] { + outs.push(self.frame(vec![Event::PointerButton { pos: at, button: PointerButton::Primary, pressed, modifiers: Modifiers::NONE }])); + } + } + outs.push(self.frame(vec![])); + outs + } + fn key(&mut self, key: Key) -> SliderOut { + self.frame(vec![Event::Key { key, physical_key: None, pressed: true, repeat: false, modifiers: Modifiers::NONE }]) + } +} + +#[test] +fn a_slider_is_one_row_of_the_dense_height() { + let mut r = Row::new("light.exposure", 0.0); + let (label, track, value) = r.parts(); + let h = crate::theme::Tokens::default().slider_row_h; + assert!((18.0..=22.0).contains(&h), "row height {h}"); + for (name, part) in [("name", label), ("track", track), ("value", value)] { + assert!((part.height() - h).abs() < 0.5, "{name} spans the row: {part:?}"); + assert!((part.top() - label.top()).abs() < 0.5, "{name} on the same line: {part:?}"); + } + assert!(label.right() < track.left() && track.right() < value.left(), "name | track | value: {label:?} {track:?} {value:?}"); +} + +#[test] +fn row_parts_never_overlap_or_vanish_at_any_width() { + for w in [0.0, 1.0, 10.0, 40.0, 120.0, 250.0, 270.0, 520.0, 4000.0] { + for name in [0.0, 40.0, 1e9, f32::NAN, f32::INFINITY, -5.0] { + let p = row_parts(Rect::from_min_size(pos2(0.0, 0.0), vec2(w, 20.0)), name); + if w >= 1.0 { + assert!(p.track.width() >= 1.0 - 1e-3, "{w}: a track to divide by: {p:?}"); + } + assert!(p.label.right() <= p.track.left(), "{w}: {p:?}"); + // every part stays inside the row, and the track never runs into the value + assert!(p.track.right() <= p.value.left(), "{w}: the track runs into the value: {p:?}"); + for r in [p.label, p.track, p.value] { + assert!(r.left() >= -1e-3 && r.right() <= w + 1e-3, "{w}: outside the row: {p:?}"); + } + for r in [p.label, p.track, p.value] { + assert!(r.min.x.is_finite() && r.max.x.is_finite() && r.width() >= 0.0, "{w}: {p:?}"); + } + } + } +} + +#[test] +fn double_clicking_the_name_resets() { + let mut r = Row::new("light.contrast", 40.0); + let (label, _, _) = r.parts(); + let outs = r.click(label.left_center() + vec2(6.0, 0.0), 2); + assert!(outs.iter().any(|o| o.reset), "a reset"); + assert_eq!(r.value, 0.0); +} + +#[test] +fn dragging_the_name_moves_the_value_from_where_it_is() { + let mut r = Row::new("light.contrast", 10.0); + let (label, track, _) = r.parts(); + let from = label.center(); + r.frame(vec![Event::PointerMoved(from)]); + r.frame(vec![Event::PointerButton { pos: from, button: PointerButton::Primary, pressed: true, modifiers: Modifiers::NONE }]); + // a quarter of the track to the right: a quarter of the range (200) up, from 10, not a jump + let to = from + vec2(track.width() / 4.0, 0.0); + for i in 1..=10 { + r.frame(vec![Event::PointerMoved(from + (to - from) * (i as f32 / 10.0))]); + } + r.frame(vec![Event::PointerButton { pos: to, button: PointerButton::Primary, pressed: false, modifiers: Modifiers::NONE }]); + assert!((r.value - 60.0).abs() <= 3.0, "10 + 50: {}", r.value); +} + +#[test] +fn typing_a_value_into_the_row_sets_it() { + let mut r = Row::new("light.exposure", 0.0); + let (_, _, value) = r.parts(); + r.click(value.center(), 1); + r.frame(vec![Event::Text("1.5".into())]); + let out = r.key(Key::Enter); + assert_eq!(out.value, Some(1.5)); + assert_eq!(r.value, 1.5); +} + +#[test] +fn arrow_keys_and_the_wheel_nudge_a_hovered_or_clicked_row() { + let mut r = Row::new("light.contrast", 0.0); + let (_, track, _) = r.parts(); + r.frame(vec![Event::PointerMoved(track.center())]); + r.key(Key::ArrowUp); + assert_eq!(r.value, 1.0, "↑ over the row"); + // a click arms the wheel; a notch down is a step down (the click itself set the value there) + r.click(track.center(), 1); + let before = r.value; + r.frame(vec![Event::MouseWheel { + unit: egui::MouseWheelUnit::Point, + delta: vec2(0.0, -120.0), + phase: egui::TouchPhase::Move, + modifiers: Modifiers::NONE, + source: egui::MouseWheelSource::Unknown, + }]); + for _ in 0..40 { + r.frame(vec![]); + } + assert!(r.value < before, "the wheel nudged it down: {before} → {}", r.value); +} + +#[test] +fn hostile_values_and_widths_never_panic() { + for v in [f64::NAN, f64::INFINITY, f64::NEG_INFINITY, 1e300, -1e300] { + for w in [0.0f32, 3.0, 300.0] { + let mut r = Row::new("wb.temp", 6500.0); + r.width = w.max(1.0); + r.value = v; + let out = r.frame(vec![]); + assert!(out.value.is_none_or(|x| x.is_finite()), "{v} at {w}: {out:?}"); + // a press and drag over whatever is there + let at = pos2(w / 2.0, 10.0); + r.frame(vec![Event::PointerMoved(at)]); + r.frame(vec![Event::PointerButton { pos: at, button: PointerButton::Primary, pressed: true, modifiers: Modifiers::NONE }]); + let out = r.frame(vec![Event::PointerMoved(at + vec2(30.0, 0.0))]); + assert!(out.value.is_none_or(|x| x.is_finite()), "{v} at {w}: {out:?}"); + r.frame(vec![Event::PointerButton { pos: at, button: PointerButton::Primary, pressed: false, modifiers: Modifiers::NONE }]); + } + } + // the registry is still there after all that + let r = Row::new("light.exposure", 0.0); + let _ = r.rect("slider"); +} + +/// A short name ends next to its own track, not at the left edge. +#[test] +fn names_are_right_aligned_next_to_their_track() { + let label = Rect::from_min_max(pos2(14.0, 0.0), pos2(80.0, 20.0)); + assert_eq!(super::name_left(label, 30.0), 50.0); + assert_eq!(super::name_left(label, 200.0), 14.0, "too wide: starts at the column's left edge"); + for w in [f32::NAN, f32::INFINITY, -5.0] { + let x = super::name_left(label, w); + assert!(x.is_finite() && x >= label.left() && x <= label.right(), "{w}: {x}"); + } + // two rows sharing one name column: the short and the long name end at the same x + let mut view = HeadlessView::new(); + let specs = [*controls::find("light.exposure").unwrap(), *controls::find("light.whites").unwrap()]; + for i in 0..4 { + view.run(HeadlessView::raw_input(vec2(320.0, 100.0), 1.0, 0.02 * f64::from(i), vec![]), |ui| { + for s in &specs { + slider(ui, s, s.default, true, None); + } + }); + } + let right_of = |text: &str| { + view.painted_shapes() + .into_iter() + .find_map(|s| match s { + egui::epaint::Shape::Text(t) if t.galley.job.text == text => Some(t.pos.x + t.galley.size().x), + _ => None, + }) + .unwrap_or_else(|| panic!("{text} not painted")) + }; + let (long, short) = (right_of(specs[0].label), right_of(specs[1].label)); + assert!((long - short).abs() < 1.0, "names end together: {} at {long}, {} at {short}", specs[0].label, specs[1].label); + let track = take_registry(&view.ctx).into_iter().find(|(id, _)| id == "slider:light.whites").unwrap().1; + assert!( + track.left() - short <= super::NAME_GAP + 1.0 && track.left() - short >= super::HANDLE_R_HOT, + "the name ends a small gap before the track, clear of the handle: {short} vs {}", + track.left() + ); +} + +/// A major section's header band stands out from the panel more than a +/// sub-section row (Curve, Color Mixer…), which has no fill of its own at rest, in every theme. +#[test] +fn section_headers_stand_out_more_than_sub_sections() { + use crate::theme::{ThemeKind, Tokens}; + let dist = |a: egui::Color32, b: egui::Color32| (0..3).map(|i| (i32::from(a[i]) - i32::from(b[i])).abs()).max().unwrap_or(0); + for kind in ThemeKind::ALL { + let t = Tokens::for_kind(kind); + assert!(super::flyout_fill(&t, false).is_none(), "{kind:?}: a sub-section row has no box at rest"); + let band = dist(super::section_fill(&t, false), t.chrome); + assert!(band >= 10, "{kind:?}: the section band is distinct from the chrome ({band})"); + let hover = super::flyout_fill(&t, true).map_or(0, |c| dist(c, t.chrome)); + assert!(band >= hover, "{kind:?}: even a hovered sub-section stays quieter ({hover} vs {band})"); + } + const { assert!(super::SECTION_TITLE > super::SUB_TITLE) }; +} + +/// Corners are at most half of the earlier 4 (controls) and 6 (panels), +/// and egui's own widgets, windows and menus take them from the theme. +#[test] +fn corners_are_at_most_half_the_earlier_radius() { + use crate::theme::{RADIUS, RADIUS_PANEL, ThemeKind, apply_kind}; + const { assert!(RADIUS <= 2 && RADIUS_PANEL <= 3) }; + for kind in ThemeKind::ALL { + let ctx = egui::Context::default(); + apply_kind(&ctx, kind); + let v = ctx.global_style().visuals.clone(); + for w in [v.widgets.inactive, v.widgets.hovered, v.widgets.active, v.widgets.noninteractive] { + assert!(w.corner_radius.nw <= RADIUS, "{kind:?}: widget corner {:?}", w.corner_radius); + } + assert!(v.window_corner_radius.nw <= RADIUS_PANEL && v.menu_corner_radius.nw <= RADIUS_PANEL, "{kind:?}"); + } +} + +/// Puts the UI language back to English when a test that changed it ends (also when it fails). +struct Language; + +impl Language { + fn set(language: crate::i18n::Locale) -> Self { + crate::i18n::set_language(language); + Language + } +} + +impl Drop for Language { + fn drop(&mut self) { + crate::i18n::set_language(crate::i18n::Locale::En); + } +} + +/// FredApps on #3155: the name column is as wide as the longest name of its group in the language +/// on screen ("Dunst entfernen" in German, "Dehaze" in English), measured in the row's own font. +#[test] +fn the_name_column_fits_the_longest_name_in_the_current_language() { + let ids = ["effects.texture", "effects.clarity", "effects.dehaze"]; + let column = |language: crate::i18n::Locale| { + let _language = Language::set(language); + let mut view = HeadlessView::new(); + let specs: Vec = ids.iter().map(|id| *controls::find(id).unwrap()).collect(); + let mut longest = 0.0f32; + let mut registry = Vec::new(); + for frame in 0..3 { + view.run(HeadlessView::raw_input(vec2(320.0, 200.0), 1.0, f64::from(frame) * 0.02, vec![]), |ui| { + super::begin_slider_group(ui, "effects"); + for spec in &specs { + slider(ui, spec, 0.0, true, None); + } + // the longest name in this language, in the row's own font + let font = crate::theme::Tokens::get(ui.ctx()).font(super::ROW_FONT); + longest = specs + .iter() + .map(|s| ui.painter().layout_no_wrap(crate::i18n::tr(s.label).to_string(), font.clone(), egui::Color32::WHITE).size().x.ceil()) + .fold(0.0f32, f32::max); + }); + // (the registry keeps every frame's rects: the last frame's are the ones to check) + registry = take_registry(&view.ctx); + } + let widths: Vec = ids + .iter() + .map(|id| registry.iter().find(|(r, _)| *r == format!("sliderLabel:{id}")).map(|(_, r)| r.width()).unwrap_or_else(|| panic!("no {id}"))) + .collect(); + for w in &widths { + assert!((w - longest.max(super::NAME_MIN)).abs() < 0.5, "{language:?}: column {w} for a longest name of {longest}: {widths:?}"); + } + longest + }; + let (en, de) = (column(crate::i18n::Locale::En), column(crate::i18n::Locale::De)); + assert!(de > en + 10.0, "the German column is the wider one: {de} against {en}"); +} + +/// FredApps on #3155: a name too long for its column is cut with an ellipsis, and hovering it +/// shows the whole name. +#[test] +fn a_name_too_long_for_its_column_ends_in_an_ellipsis_and_shows_whole_on_hover() { + let long = "Highlights Luminance Saturation Balance"; + let spec = *controls::find("light.exposure").unwrap(); + let mut view = HeadlessView::new(); + let mut label: Option = None; + let mut texts = Vec::new(); + let mut cut = None; + let mut moved = false; + for frame in 0..60 { + // the pointer comes to rest on the name once (a move every frame would keep the tooltip away) + let events = match label { + Some(l) if !moved => { + moved = true; + vec![Event::PointerMoved(l.center())] + } + _ => vec![], + }; + view.run(HeadlessView::raw_input(vec2(220.0, 200.0), 1.0, f64::from(frame) * 0.05, events), |ui| { + slider(ui, &spec, 0.0, true, Some(long)); + }); + texts = view.painted_text(); + cut = view.painted_shapes().into_iter().find_map(|shape| match shape { + egui::epaint::Shape::Text(t) if t.galley.job.text == long => Some((t.galley.elided, t.galley.size().x)), + _ => None, + }); + label = take_registry(&view.ctx).into_iter().find(|(id, _)| id == "sliderLabel:light.exposure").map(|(_, r)| r); + } + let label = label.expect("the name's rect"); + assert!(label.width() < 220.0 * 0.5, "the column is capped: {label:?}"); + let (elided, drawn_w) = cut.expect("the name is drawn"); + assert!(elided && drawn_w <= label.width() + 0.5, "the name is cut with an ellipsis to its column: {drawn_w} in {label:?}"); + assert!(texts.iter().any(|t| t != long && t.contains(long)), "hovering shows the whole name (with the reset hint): {texts:?}"); +} diff --git a/crates/ui-egui/tests/it/accessibility.rs b/crates/ui-egui/tests/it/accessibility.rs index d86aa9487e9..1b99e38b975 100644 --- a/crates/ui-egui/tests/it/accessibility.rs +++ b/crates/ui-egui/tests/it/accessibility.rs @@ -158,6 +158,22 @@ fn slider_value(h: &Harness<'_, LightcraftApp>, name: &str) -> Option { .and_then(|n| n.numeric_value()) } +/// A slider that shows a short name under its caption ("Amount" under Grain) is announced by its +/// full name, which still says what it changes without the caption. +#[test] +fn short_named_sliders_are_announced_by_their_full_name() { + let mut h = harness(ViewMode::Detail, RightPanel::Edit); + h.state_mut().ui.open_sections = vec!["effects".to_string(), "detail".to_string()]; + h.run_steps(10); + let sliders: Vec = + h.root().children_recursive().map(|n| n.accesskit_node()).filter(|n| n.role() == Role::Slider).filter_map(|n| n.label()).collect(); + for full in ["Vignette", "Grain", "Sharpening"] { + assert!(sliders.iter().any(|s| s == full), "a slider announced as {full}: {sliders:?}"); + } + // (AI Denoise's own label is "Amount"; the short-named Vignette, Grain and Sharpening aren't) + assert_eq!(sliders.iter().filter(|s| *s == "Amount").count(), 1, "only AI Denoise is announced as Amount: {sliders:?}"); +} + /// A screen reader's Increment on a develop slider moves it one step, as an arrow key does. #[test] fn screen_reader_increment_moves_a_slider() { @@ -230,22 +246,15 @@ fn tab_walks_the_right_panels_top_to_bottom() { for right in [RightPanel::Edit, RightPanel::Crop, RightPanel::Remove, RightPanel::Masking] { let mut h = harness(ViewMode::Detail, right); let panel_left = 1500.0 - h.state().ui.right_width - 10.0; - // the tool strip beside the panel is a column of its own, walked before it - let strip = h - .root() - .children_recursive() - .map(|n| n.accesskit_node()) - .find(|n| n.label().as_deref() == Some("Edit") && n.description().as_deref() == Some("E")) - .and_then(|n| n.bounding_box()) - .map(|b| b.x0 as f32) - .unwrap_or(f32::INFINITY); + // the tools are a row under the histogram inside the panel (the vertical strip only shows + // while no panel is open), so the whole panel column is walked: histogram, tool row, content let mut seen: Vec<(String, f32)> = Vec::new(); for _ in 0..120 { h.key_press(egui::Key::Tab); h.run_steps(1); let Some(n) = h.root().children_recursive().map(|n| n.accesskit_node()).find(|n| n.is_focused()) else { continue }; let Some(b) = n.bounding_box() else { continue }; - if (b.x0 as f32) < panel_left || (b.x0 as f32) >= strip - 1.0 { + if (b.x0 as f32) < panel_left { continue; } let name = n.label().unwrap_or_default(); diff --git a/docs/parity-checklist.md b/docs/parity-checklist.md index 5e851e721d2..d7eb3ec01ed 100644 --- a/docs/parity-checklist.md +++ b/docs/parity-checklist.md @@ -1,6 +1,6 @@ # Lightroom parity checklist -> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-30 · **Change:** minor (LR-BEHAV-ACCESS: the Flatpak may talk to the accessibility bus; LR-LIB-ALBUM: album commands leave out photos the library no longer has and record nothing when they add nothing; LR-BEHAV-DRAGDROP: a right-click on a text field while photos are carried from the grid opens no Cut / Copy / Paste menu; LR-BEHAV-DRAGDROP: a right-click while photos are carried from the grid opens no context menu; LR-LIB-VIRTUALCOPY: default numbering is preflighted across the requested batch and explicit names bypass suffix allocation; LR-BEHAV-DRAGDROP: only the primary button drags photos out of the grid and drops them; KEYC-RATING: deleting a keyword while Enable Filters has the filter put aside no longer leaves an empty one there; LR-BEHAV-DRAGDROP: a drop's destination is named with its parent when another folder or album has the same name; LR-VIEW-FILMSTRIP: photos drag from the filmstrip to the same sidebar targets as from the grid; LRC-LIB-LIBFOLDERS: a deep row's count follows its name in a narrow panel; LR-FILT-FLAG / LRC-LIB-FILTERBAR: the flag toggles combine, Picked + Unflagged, #2588; LR-VIEW-PHOTOGRID, LR-VIEW-FILMSTRIP, LR-VIEW-COMPARE, LR-VIEW-SURVEY, LRC-LIB-REFVIEW, LRC-LIB-PEOPLE: the active photo's selection ring shows on light themes and in Compare, Survey and the face tiles, and needs a loaded thumbnail; LR-FILT-SEARCH-META: `>=` / `<=` in fielded search tokens; MENU-FILE-CLOSE, KEY-CLOSEWINDOW: the notes say Close Window quits the app, after the same check as Quit; MENU-EDIT-SELECTNONE, MENU-EDIT-PASTESELECTED: Edit lists Select Only Active Photo after Deselect All and Paste Settings from Previous after Paste Selected Settings…; on macOS no doubled separators are left where Settings… moved to the app menu; LR-BEHAV-TITLEBAR: a double-click follows the system setting, and a panel over the bar keeps the window still; KEYC-METADATA, LRC-LIB-KEYWORDS: ⌥0 / ⌥⇧0 go to the next / previous keyword set; LRC-DEV-HISTOGRAM-DRAG: the histogram's five tonal zones — hover for the value, drag to adjust the Basic control the press locked, double-click to reset; LR-VIEW-HISTOGRAM note updated; MENU-BAR: on macOS a menu item that yields its key to a focused text field or to shortcut recording really lets it go; LR-MERGE-HDR / LR-MERGE-PANO: Lanczos-3 warps; LR-IMP-LOCAL: browsing from the sidebar records the folder; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LR-IMP-ADD-DIALOG: hierarchical import album destination reconciled with main, #2362; KEY-SLIDER-NUDGE: vertical wheel nudges need a click or drag in the row; leaving it disarms them; LR-EDIT-OPTICS-PROFILE: Fujifilm nine-knot lens tables read at the plain radius; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LRC-LIB-LIBFOLDERS, LR-BEHAV-BG-TASKS: Synchronize Folder's scan shows its folder listing and stops it on ✕; LRC-LIB-LIBFOLDERS: Synchronize Folder says a folder is up to date; LR-LIB-STACK: filmstrip stack badge click; LRC-LIB-REFVIEW / CATALOG-SWITCH: Escape preserves edits; catalog-local pins; deleted and malformed references refused; LRC-LIB-COMPARE: the Info panel labels the active photo while culling, #2398; KEYC-RATING: `\` shows / hides the Filter Bar in the grids; LR-VIEW-PHOTOGRID: the grid reads only the photos an import batch or an edit touched, not the whole list; earlier: LRC-PRINT-PAGE: Print Page Options; LR-META-XMP: fewer false unimported-XMP warnings; KEYC-METADATA: ⌘K / Ctrl+K Add Keywords; LRC-DEV-HISTOGRAM-DRAG: the histogram's five tonal zones — hover for the value, drag to adjust the Basic control the press locked, double-click to reset; LR-VIEW-HISTOGRAM note updated; MENU-BAR: on macOS a menu item that yields its key to a focused text field or to shortcut recording really lets it go; LR-MERGE-HDR / LR-MERGE-PANO: Lanczos-3 warps; LR-IMP-LOCAL: browsing from the sidebar records the folder; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LR-IMP-ADD-DIALOG: hierarchical import album destination reconciled with main, #2362; KEY-SLIDER-NUDGE: vertical wheel nudges need a click or drag in the row; leaving it disarms them; LR-EDIT-OPTICS-PROFILE: Fujifilm nine-knot lens tables read at the plain radius; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LRC-LIB-LIBFOLDERS, LR-BEHAV-BG-TASKS: Synchronize Folder's scan shows its folder listing and stops it on ✕; LRC-LIB-LIBFOLDERS: Synchronize Folder says a folder is up to date; LR-LIB-STACK: filmstrip stack badge click; LRC-LIB-REFVIEW / CATALOG-SWITCH: Escape preserves edits; catalog-local pins; deleted and malformed references refused; LRC-LIB-COMPARE: the Info panel labels the active photo while culling, #2398; KEYC-RATING: `\` shows / hides the Filter Bar in the grids; LR-VIEW-PHOTOGRID: the grid reads only the photos an import batch or an edit touched, not the whole list; earlier: LRC-PRINT-PAGE: Print Page Options; LR-META-XMP: fewer false unimported-XMP warnings; LR-META-LOCATION: Info GPS text is fully validated before metadata changes; LR-MAP-TRACKLOG decodes GPX character references in point fields; malformed references error; CDATA stays literal; LR-BEHAV-ACCESS: the Thumbnail size control is a slider to screen readers; LR-BEHAV-ACCESS: the Detail photo is named with its file name; LR-VIEW-PHOTOGRID: the grid's empty-view message names its shortcut as this platform writes it and as it is bound; LR-BEHAV-ACCESS: the grid's date headers are named as they read; LR-BEHAV-ACCESS: the sidebar's disclosure triangles name their row; KEYC-METADATA, LRC-LIB-KEYWORDS: ⌘⌥⇧K Set Keyword Shortcut and ⇧K; KEYC-METADATA: ⌘⇧K / Ctrl+Shift+K Edit Keywords; LR-FILT-SEARCH-META: `>=` / `<=` in fielded search tokens; MENU-FILE-CLOSE, KEY-CLOSEWINDOW: the notes say Close Window quits the app, after the same check as Quit; MENU-EDIT-SELECTNONE, MENU-EDIT-PASTESELECTED: Edit lists Select Only Active Photo after Deselect All and Paste Settings from Previous after Paste Selected Settings…; on macOS no doubled separators are left where Settings… moved to the app menu; LR-BEHAV-TITLEBAR: a double-click follows the system setting, and a panel over the bar keeps the window still; KEYC-METADATA, LRC-LIB-KEYWORDS: ⌥0 / ⌥⇧0 go to the next / previous keyword set; LRC-DEV-HISTOGRAM-DRAG: the histogram's five tonal zones — hover for the value, drag to adjust the Basic control the press locked, double-click to reset; LR-VIEW-HISTOGRAM note updated; MENU-BAR: on macOS a menu item that yields its key to a focused text field or to shortcut recording really lets it go; LR-MERGE-HDR / LR-MERGE-PANO: Lanczos-3 warps; LR-IMP-LOCAL: browsing from the sidebar records the folder; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LR-IMP-ADD-DIALOG: hierarchical import album destination reconciled with main, #2362; KEY-SLIDER-NUDGE: vertical wheel nudges need a click or drag in the row; leaving it disarms them; LR-EDIT-OPTICS-PROFILE: Fujifilm nine-knot lens tables read at the plain radius; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LRC-LIB-LIBFOLDERS, LR-BEHAV-BG-TASKS: Synchronize Folder's scan shows its folder listing and stops it on ✕; LRC-LIB-LIBFOLDERS: Synchronize Folder says a folder is up to date; LR-LIB-STACK: filmstrip stack badge click; LRC-LIB-REFVIEW / CATALOG-SWITCH: Escape preserves edits; catalog-local pins; deleted and malformed references refused; LRC-LIB-COMPARE: the Info panel labels the active photo while culling, #2398; KEYC-RATING: `\` shows / hides the Filter Bar in the grids; LR-VIEW-PHOTOGRID: the grid reads only the photos an import batch or an edit touched, not the whole list; earlier: LRC-PRINT-PAGE: Print Page Options; LR-META-XMP: fewer false unimported-XMP warnings; KEYC-METADATA: ⌘K / Ctrl+K Add Keywords; LRC-DEV-HISTOGRAM-DRAG: the histogram's five tonal zones — hover for the value, drag to adjust the Basic control the press locked, double-click to reset; LR-VIEW-HISTOGRAM note updated; MENU-BAR: on macOS a menu item that yields its key to a focused text field or to shortcut recording really lets it go; LR-MERGE-HDR / LR-MERGE-PANO: Lanczos-3 warps; LR-IMP-LOCAL: browsing from the sidebar records the folder; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LR-IMP-ADD-DIALOG: hierarchical import album destination reconciled with main, #2362; KEY-SLIDER-NUDGE: vertical wheel nudges need a click or drag in the row; leaving it disarms them; LR-EDIT-OPTICS-PROFILE: Fujifilm nine-knot lens tables read at the plain radius; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LRC-LIB-LIBFOLDERS, LR-BEHAV-BG-TASKS: Synchronize Folder's scan shows its folder listing and stops it on ✕; LRC-LIB-LIBFOLDERS: Synchronize Folder says a folder is up to date; LR-LIB-STACK: filmstrip stack badge click; LRC-LIB-REFVIEW / CATALOG-SWITCH: Escape preserves edits; catalog-local pins; deleted and malformed references refused; LRC-LIB-COMPARE: the Info panel labels the active photo while culling, #2398; KEYC-RATING: `\` shows / hides the Filter Bar in the grids; LR-VIEW-PHOTOGRID: the grid reads only the photos an import batch or an edit touched, not the whole list; earlier: LRC-PRINT-PAGE: Print Page Options; LR-META-XMP: fewer false unimported-XMP warnings; LRC-LIB-FOLDERS: Local's built-in places (Pictures, Desktop, Downloads, Home) offer no Rename Folder… or Move Folder To…, and `folder.rename` / `folder.move` refuse the home folder and its Pictures, Desktop and Downloads; LRC-LIB-CATALOG-SWITCH: a library's catalog.snap or folder given at launch opens that library; LR-IMP-ADD-DIALOG / LR-IMP-MOVE: checked rename-sequence exhaustion; LR-IMP-ADD-DIALOG: an import asks the disk about the probes a scan left, and for each photo's sidecar, up to 16 files at a time; LRC-LIB-LIBFOLDERS: Don't ask again in the Move Photos question is kept only when the move started; a refused move leaves the question on; LR-IMP-ADD-DIALOG: remembered import thumbnail size, density-aware bounded previews and one job per candidate/size bucket (#2237, part of #2056); import loupe remains open; counts unchanged; LR-FILT-SEARCH-META: `>=` / `<=` in fielded search tokens; MENU-FILE-CLOSE, KEY-CLOSEWINDOW: the notes say Close Window quits the app, after the same check as Quit; MENU-EDIT-SELECTNONE, MENU-EDIT-PASTESELECTED: Edit lists Select Only Active Photo after Deselect All and Paste Settings from Previous after Paste Selected Settings…; on macOS no doubled separators are left where Settings… moved to the app menu; LR-BEHAV-TITLEBAR: a double-click follows the system setting, and a panel over the bar keeps the window still; KEYC-METADATA, LRC-LIB-KEYWORDS: ⌥0 / ⌥⇧0 go to the next / previous keyword set; LRC-DEV-HISTOGRAM-DRAG: the histogram's five tonal zones — hover for the value, drag to adjust the Basic control the press locked, double-click to reset; LR-VIEW-HISTOGRAM note updated; MENU-BAR: on macOS a menu item that yields its key to a focused text field or to shortcut recording really lets it go; LR-MERGE-HDR / LR-MERGE-PANO: Lanczos-3 warps; LR-IMP-LOCAL: browsing from the sidebar records the folder; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LR-IMP-ADD-DIALOG: hierarchical import album destination reconciled with main, #2362; KEY-SLIDER-NUDGE: vertical wheel nudges need a click or drag in the row; leaving it disarms them; LR-EDIT-OPTICS-PROFILE: Fujifilm nine-knot lens tables read at the plain radius; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LRC-LIB-LIBFOLDERS, LR-BEHAV-BG-TASKS: Synchronize Folder's scan shows its folder listing and stops it on ✕; LRC-LIB-LIBFOLDERS: Synchronize Folder says a folder is up to date; LR-LIB-STACK: filmstrip stack badge click; LRC-LIB-REFVIEW / CATALOG-SWITCH: Escape preserves edits; catalog-local pins; deleted and malformed references refused; LRC-LIB-COMPARE: the Info panel labels the active photo while culling, #2398; KEYC-RATING: `\` shows / hides the Filter Bar in the grids; LR-VIEW-PHOTOGRID: the grid reads only the photos an import batch or an edit touched, not the whole list; earlier: LRC-PRINT-PAGE: Print Page Options; LR-META-XMP: fewer false unimported-XMP warnings; KEYC-METADATA: ⌘K / Ctrl+K Add Keywords; LRC-DEV-HISTOGRAM-DRAG: the histogram's five tonal zones — hover for the value, drag to adjust the Basic control the press locked, double-click to reset; LR-VIEW-HISTOGRAM note updated; MENU-BAR: on macOS a menu item that yields its key to a focused text field or to shortcut recording really lets it go; LR-MERGE-HDR / LR-MERGE-PANO: Lanczos-3 warps; LR-IMP-LOCAL: browsing from the sidebar records the folder; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LR-IMP-ADD-DIALOG: hierarchical import album destination reconciled with main, #2362; KEY-SLIDER-NUDGE: vertical wheel nudges need a click or drag in the row; leaving it disarms them; LR-EDIT-OPTICS-PROFILE: Fujifilm nine-knot lens tables read at the plain radius; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LRC-LIB-LIBFOLDERS, LR-BEHAV-BG-TASKS: Synchronize Folder's scan shows its folder listing and stops it on ✕; LRC-LIB-LIBFOLDERS: Synchronize Folder says a folder is up to date; LR-LIB-STACK: filmstrip stack badge click; LRC-LIB-REFVIEW / CATALOG-SWITCH: Escape preserves edits; catalog-local pins; deleted and malformed references refused; LRC-LIB-COMPARE: the Info panel labels the active photo while culling, #2398; KEYC-RATING: `\` shows / hides the Filter Bar in the grids; LR-VIEW-PHOTOGRID: the grid reads only the photos an import batch or an edit touched, not the whole list; earlier: LRC-PRINT-PAGE: Print Page Options; LR-META-XMP: fewer false unimported-XMP warnings; LR-MERGE-HDR / LR-MERGE-PANO / LR-MERGE-HDRPANO: the dialog makes a new preview each time it opens, also after a failed one, #2708; LR-FILT-SEARCH-META: `>=` / `<=` in fielded search tokens; MENU-FILE-CLOSE, KEY-CLOSEWINDOW: the notes say Close Window quits the app, after the same check as Quit; MENU-EDIT-SELECTNONE, MENU-EDIT-PASTESELECTED: Edit lists Select Only Active Photo after Deselect All and Paste Settings from Previous after Paste Selected Settings…; on macOS no doubled separators are left where Settings… moved to the app menu; LR-BEHAV-TITLEBAR: a double-click follows the system setting, and a panel over the bar keeps the window still; KEYC-METADATA, LRC-LIB-KEYWORDS: ⌥0 / ⌥⇧0 go to the next / previous keyword set; LRC-DEV-HISTOGRAM-DRAG: the histogram's five tonal zones — hover for the value, drag to adjust the Basic control the press locked, double-click to reset; LR-VIEW-HISTOGRAM note updated; MENU-BAR: on macOS a menu item that yields its key to a focused text field or to shortcut recording really lets it go; LR-MERGE-HDR / LR-MERGE-PANO: Lanczos-3 warps; LR-IMP-LOCAL: browsing from the sidebar records the folder; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LR-IMP-ADD-DIALOG: hierarchical import album destination reconciled with main, #2362; KEY-SLIDER-NUDGE: vertical wheel nudges need a click or drag in the row; leaving it disarms them; LR-EDIT-OPTICS-PROFILE: Fujifilm nine-knot lens tables read at the plain radius; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LRC-LIB-LIBFOLDERS, LR-BEHAV-BG-TASKS: Synchronize Folder's scan shows its folder listing and stops it on ✕; LRC-LIB-LIBFOLDERS: Synchronize Folder says a folder is up to date; LR-LIB-STACK: filmstrip stack badge click; LRC-LIB-REFVIEW / CATALOG-SWITCH: Escape preserves edits; catalog-local pins; deleted and malformed references refused; LRC-LIB-COMPARE: the Info panel labels the active photo while culling, #2398; KEYC-RATING: `\` shows / hides the Filter Bar in the grids; LR-VIEW-PHOTOGRID: the grid reads only the photos an import batch or an edit touched, not the whole list; earlier: LRC-PRINT-PAGE: Print Page Options; LR-META-XMP: fewer false unimported-XMP warnings; KEYC-METADATA: ⌘K / Ctrl+K Add Keywords; LRC-DEV-HISTOGRAM-DRAG: the histogram's five tonal zones — hover for the value, drag to adjust the Basic control the press locked, double-click to reset; LR-VIEW-HISTOGRAM note updated; MENU-BAR: on macOS a menu item that yields its key to a focused text field or to shortcut recording really lets it go; LR-MERGE-HDR / LR-MERGE-PANO: Lanczos-3 warps; LR-IMP-LOCAL: browsing from the sidebar records the folder; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LR-IMP-ADD-DIALOG: hierarchical import album destination reconciled with main, #2362; KEY-SLIDER-NUDGE: vertical wheel nudges need a click or drag in the row; leaving it disarms them; LR-EDIT-OPTICS-PROFILE: Fujifilm nine-knot lens tables read at the plain radius; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LRC-LIB-LIBFOLDERS, LR-BEHAV-BG-TASKS: Synchronize Folder's scan shows its folder listing and stops it on ✕; LRC-LIB-LIBFOLDERS: Synchronize Folder says a folder is up to date; LR-LIB-STACK: filmstrip stack badge click; LRC-LIB-REFVIEW / CATALOG-SWITCH: Escape preserves edits; catalog-local pins; deleted and malformed references refused; LRC-LIB-COMPARE: the Info panel labels the active photo while culling, #2398; KEYC-RATING: `\` shows / hides the Filter Bar in the grids; LR-VIEW-PHOTOGRID: the grid reads only the photos an import batch or an edit touched, not the whole list; earlier: LRC-PRINT-PAGE: Print Page Options; LR-META-XMP: fewer false unimported-XMP warnings; LRC-LIB-MISSING: `library.missing` from the control channel checks the files on a worker thread instead of the UI thread; LR-FILT-SEARCH-META: `>=` / `<=` in fielded search tokens; MENU-FILE-CLOSE, KEY-CLOSEWINDOW: the notes say Close Window quits the app, after the same check as Quit; MENU-EDIT-SELECTNONE, MENU-EDIT-PASTESELECTED: Edit lists Select Only Active Photo after Deselect All and Paste Settings from Previous after Paste Selected Settings…; on macOS no doubled separators are left where Settings… moved to the app menu; LR-BEHAV-TITLEBAR: a double-click follows the system setting, and a panel over the bar keeps the window still; KEYC-METADATA, LRC-LIB-KEYWORDS: ⌥0 / ⌥⇧0 go to the next / previous keyword set; LRC-DEV-HISTOGRAM-DRAG: the histogram's five tonal zones — hover for the value, drag to adjust the Basic control the press locked, double-click to reset; LR-VIEW-HISTOGRAM note updated; MENU-BAR: on macOS a menu item that yields its key to a focused text field or to shortcut recording really lets it go; LR-MERGE-HDR / LR-MERGE-PANO: Lanczos-3 warps; LR-IMP-LOCAL: browsing from the sidebar records the folder; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LR-IMP-ADD-DIALOG: hierarchical import album destination reconciled with main, #2362; KEY-SLIDER-NUDGE: vertical wheel nudges need a click or drag in the row; leaving it disarms them; LR-EDIT-OPTICS-PROFILE: Fujifilm nine-knot lens tables read at the plain radius; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LRC-LIB-LIBFOLDERS, LR-BEHAV-BG-TASKS: Synchronize Folder's scan shows its folder listing and stops it on ✕; LRC-LIB-LIBFOLDERS: Synchronize Folder says a folder is up to date; LR-LIB-STACK: filmstrip stack badge click; LRC-LIB-REFVIEW / CATALOG-SWITCH: Escape preserves edits; catalog-local pins; deleted and malformed references refused; LRC-LIB-COMPARE: the Info panel labels the active photo while culling, #2398; KEYC-RATING: `\` shows / hides the Filter Bar in the grids; LR-VIEW-PHOTOGRID: the grid reads only the photos an import batch or an edit touched, not the whole list; earlier: LRC-PRINT-PAGE: Print Page Options; LR-META-XMP: fewer false unimported-XMP warnings; KEYC-METADATA: ⌘K / Ctrl+K Add Keywords; LRC-DEV-HISTOGRAM-DRAG: the histogram's five tonal zones — hover for the value, drag to adjust the Basic control the press locked, double-click to reset; LR-VIEW-HISTOGRAM note updated; MENU-BAR: on macOS a menu item that yields its key to a focused text field or to shortcut recording really lets it go; LR-MERGE-HDR / LR-MERGE-PANO: Lanczos-3 warps; LR-IMP-LOCAL: browsing from the sidebar records the folder; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LR-IMP-ADD-DIALOG: hierarchical import album destination reconciled with main, #2362; KEY-SLIDER-NUDGE: vertical wheel nudges need a click or drag in the row; leaving it disarms them; LR-EDIT-OPTICS-PROFILE: Fujifilm nine-knot lens tables read at the plain radius; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LRC-LIB-LIBFOLDERS, LR-BEHAV-BG-TASKS: Synchronize Folder's scan shows its folder listing and stops it on ✕; LRC-LIB-LIBFOLDERS: Synchronize Folder says a folder is up to date; LR-LIB-STACK: filmstrip stack badge click; LRC-LIB-REFVIEW / CATALOG-SWITCH: Escape preserves edits; catalog-local pins; deleted and malformed references refused; LRC-LIB-COMPARE: the Info panel labels the active photo while culling, #2398; KEYC-RATING: `\` shows / hides the Filter Bar in the grids; LR-VIEW-PHOTOGRID: the grid reads only the photos an import batch or an edit touched, not the whole list; earlier: LRC-PRINT-PAGE: Print Page Options; LR-META-XMP: fewer false unimported-XMP warnings; LR-CROP-AUTO: Auto straighten reads the vertical vanishing point and the horizon; LR-META-EXIF-FULL: reject extra EXIF clock components so invalid capture-time candidates fall through to valid metadata; LR-FILT-SEARCH-META: `>=` / `<=` in fielded search tokens; MENU-FILE-CLOSE, KEY-CLOSEWINDOW: the notes say Close Window quits the app, after the same check as Quit; MENU-EDIT-SELECTNONE, MENU-EDIT-PASTESELECTED: Edit lists Select Only Active Photo after Deselect All and Paste Settings from Previous after Paste Selected Settings…; on macOS no doubled separators are left where Settings… moved to the app menu; LR-BEHAV-TITLEBAR: a double-click follows the system setting, and a panel over the bar keeps the window still; KEYC-METADATA, LRC-LIB-KEYWORDS: ⌥0 / ⌥⇧0 go to the next / previous keyword set; LRC-DEV-HISTOGRAM-DRAG: the histogram's five tonal zones — hover for the value, drag to adjust the Basic control the press locked, double-click to reset; LR-VIEW-HISTOGRAM note updated; MENU-BAR: on macOS a menu item that yields its key to a focused text field or to shortcut recording really lets it go; LR-MERGE-HDR / LR-MERGE-PANO: Lanczos-3 warps; LR-IMP-LOCAL: browsing from the sidebar records the folder; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LR-IMP-ADD-DIALOG: hierarchical import album destination reconciled with main, #2362; KEY-SLIDER-NUDGE: vertical wheel nudges need a click or drag in the row; leaving it disarms them; LR-EDIT-OPTICS-PROFILE: Fujifilm nine-knot lens tables read at the plain radius; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LRC-LIB-LIBFOLDERS, LR-BEHAV-BG-TASKS: Synchronize Folder's scan shows its folder listing and stops it on ✕; LRC-LIB-LIBFOLDERS: Synchronize Folder says a folder is up to date; LR-LIB-STACK: filmstrip stack badge click; LRC-LIB-REFVIEW / CATALOG-SWITCH: Escape preserves edits; catalog-local pins; deleted and malformed references refused; LRC-LIB-COMPARE: the Info panel labels the active photo while culling, #2398; KEYC-RATING: `\` shows / hides the Filter Bar in the grids; LR-VIEW-PHOTOGRID: the grid reads only the photos an import batch or an edit touched, not the whole list; earlier: LRC-PRINT-PAGE: Print Page Options; LR-META-XMP: fewer false unimported-XMP warnings; KEYC-METADATA: ⌘K / Ctrl+K Add Keywords; LRC-DEV-HISTOGRAM-DRAG: the histogram's five tonal zones — hover for the value, drag to adjust the Basic control the press locked, double-click to reset; LR-VIEW-HISTOGRAM note updated; MENU-BAR: on macOS a menu item that yields its key to a focused text field or to shortcut recording really lets it go; LR-MERGE-HDR / LR-MERGE-PANO: Lanczos-3 warps; LR-IMP-LOCAL: browsing from the sidebar records the folder; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LR-IMP-ADD-DIALOG: hierarchical import album destination reconciled with main, #2362; KEY-SLIDER-NUDGE: vertical wheel nudges need a click or drag in the row; leaving it disarms them; LR-EDIT-OPTICS-PROFILE: Fujifilm nine-knot lens tables read at the plain radius; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LRC-LIB-LIBFOLDERS, LR-BEHAV-BG-TASKS: Synchronize Folder's scan shows its folder listing and stops it on ✕; LRC-LIB-LIBFOLDERS: Synchronize Folder says a folder is up to date; LR-LIB-STACK: filmstrip stack badge click; LRC-LIB-REFVIEW / CATALOG-SWITCH: Escape preserves edits; catalog-local pins; deleted and malformed references refused; LRC-LIB-COMPARE: the Info panel labels the active photo while culling, #2398; KEYC-RATING: `\` shows / hides the Filter Bar in the grids; LR-VIEW-PHOTOGRID: the grid reads only the photos an import batch or an edit touched, not the whole list; earlier: LRC-PRINT-PAGE: Print Page Options; LR-META-XMP: fewer false unimported-XMP warnings; LR-META-XMP / LRC-MAP-TRACKLOG: malformed ISO times are not projected or matched; LR-IMP-FORMATS: JPEG ICC APP2 chunk validation; LR-BEHAV-TITLEBAR: a dialog leaves the title bar undimmed, as a macOS sheet does; LR-BEHAV-ACCESS: the bars are toolbars and the panels landmarks for screen readers; LR-BEHAV-ACCESS: every dialog and prompt is exposed as a dialog (a modal one, an alert dialog for the prompts); LR-BEHAV-ACCESS: icon-only buttons are named by their label, with the shortcut as the description; MENU-HELP-HELP: on macOS the Help menu is registered with the application only once the menu bar is installed (muda ignores the call before), so AppKit knows which menu is Help; LR-BEHAV-ACCESS: a slider's value field is named ` value`, with how to use it as its description; MENU-BAR: every shortcut the app shows on macOS lists its modifiers ⌃⌥⇧⌘, as the menu bar does; MENU-BAR: on macOS two menu rows that run the same command each get their own native row and label (File ▸ Export… and File ▸ Export with Preset ▸ Custom…; File ▸ New Album… and Photo ▸ Add to Album ▸ New Album…); LR-BEHAV-DIALOGS: a one-line prompt that is refused stays open and says why, and a New Folder on Disk says it was made; LR-FILT-SEARCH-META: `>=` / `<=` in fielded search tokens; MENU-FILE-CLOSE, KEY-CLOSEWINDOW: the notes say Close Window quits the app, after the same check as Quit; MENU-EDIT-SELECTNONE, MENU-EDIT-PASTESELECTED: Edit lists Select Only Active Photo after Deselect All and Paste Settings from Previous after Paste Selected Settings…; on macOS no doubled separators are left where Settings… moved to the app menu; LR-BEHAV-TITLEBAR: a double-click follows the system setting, and a panel over the bar keeps the window still; KEYC-METADATA, LRC-LIB-KEYWORDS: ⌥0 / ⌥⇧0 go to the next / previous keyword set; LRC-DEV-HISTOGRAM-DRAG: the histogram's five tonal zones — hover for the value, drag to adjust the Basic control the press locked, double-click to reset; LR-VIEW-HISTOGRAM note updated; MENU-BAR: on macOS a menu item that yields its key to a focused text field or to shortcut recording really lets it go; LR-MERGE-HDR / LR-MERGE-PANO: Lanczos-3 warps; LR-IMP-LOCAL: browsing from the sidebar records the folder; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LR-IMP-ADD-DIALOG: hierarchical import album destination reconciled with main, #2362; KEY-SLIDER-NUDGE: vertical wheel nudges need a click or drag in the row; leaving it disarms them; LR-EDIT-OPTICS-PROFILE: Fujifilm nine-knot lens tables read at the plain radius; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LRC-LIB-LIBFOLDERS, LR-BEHAV-BG-TASKS: Synchronize Folder's scan shows its folder listing and stops it on ✕; LRC-LIB-LIBFOLDERS: Synchronize Folder says a folder is up to date; LR-LIB-STACK: filmstrip stack badge click; LRC-LIB-REFVIEW / CATALOG-SWITCH: Escape preserves edits; catalog-local pins; deleted and malformed references refused; LRC-LIB-COMPARE: the Info panel labels the active photo while culling, #2398; KEYC-RATING: `\` shows / hides the Filter Bar in the grids; LR-VIEW-PHOTOGRID: the grid reads only the photos an import batch or an edit touched, not the whole list; earlier: LRC-PRINT-PAGE: Print Page Options; LR-META-XMP: fewer false unimported-XMP warnings; KEYC-METADATA: ⌘K / Ctrl+K Add Keywords; LRC-DEV-HISTOGRAM-DRAG: the histogram's five tonal zones — hover for the value, drag to adjust the Basic control the press locked, double-click to reset; LR-VIEW-HISTOGRAM note updated; MENU-BAR: on macOS a menu item that yields its key to a focused text field or to shortcut recording really lets it go; LR-MERGE-HDR / LR-MERGE-PANO: Lanczos-3 warps; LR-IMP-LOCAL: browsing from the sidebar records the folder; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LR-IMP-ADD-DIALOG: hierarchical import album destination reconciled with main, #2362; KEY-SLIDER-NUDGE: vertical wheel nudges need a click or drag in the row; leaving it disarms them; LR-EDIT-OPTICS-PROFILE: Fujifilm nine-knot lens tables read at the plain radius; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LRC-LIB-LIBFOLDERS, LR-BEHAV-BG-TASKS: Synchronize Folder's scan shows its folder listing and stops it on ✕; LRC-LIB-LIBFOLDERS: Synchronize Folder says a folder is up to date; LR-LIB-STACK: filmstrip stack badge click; LRC-LIB-REFVIEW / CATALOG-SWITCH: Escape preserves edits; catalog-local pins; deleted and malformed references refused; LRC-LIB-COMPARE: the Info panel labels the active photo while culling, #2398; KEYC-RATING: `\` shows / hides the Filter Bar in the grids; LR-VIEW-PHOTOGRID: the grid reads only the photos an import batch or an edit touched, not the whole list; earlier: LRC-PRINT-PAGE: Print Page Options; LR-META-XMP: fewer false unimported-XMP warnings; LR-VIEW-HISTOGRAM: the shadow and highlight clipping buttons take their tile and chevron from the theme, so the chevron reads in every theme; LR-FILT-SEARCH-META: `>=` / `<=` in fielded search tokens; MENU-FILE-CLOSE, KEY-CLOSEWINDOW: the notes say Close Window quits the app, after the same check as Quit; MENU-EDIT-SELECTNONE, MENU-EDIT-PASTESELECTED: Edit lists Select Only Active Photo after Deselect All and Paste Settings from Previous after Paste Selected Settings…; on macOS no doubled separators are left where Settings… moved to the app menu; LR-BEHAV-TITLEBAR: a double-click follows the system setting, and a panel over the bar keeps the window still; KEYC-METADATA, LRC-LIB-KEYWORDS: ⌥0 / ⌥⇧0 go to the next / previous keyword set; LRC-DEV-HISTOGRAM-DRAG: the histogram's five tonal zones — hover for the value, drag to adjust the Basic control the press locked, double-click to reset; LR-VIEW-HISTOGRAM note updated; MENU-BAR: on macOS a menu item that yields its key to a focused text field or to shortcut recording really lets it go; LR-MERGE-HDR / LR-MERGE-PANO: Lanczos-3 warps; LR-IMP-LOCAL: browsing from the sidebar records the folder; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LR-IMP-ADD-DIALOG: hierarchical import album destination reconciled with main, #2362; KEY-SLIDER-NUDGE: vertical wheel nudges need a click or drag in the row; leaving it disarms them; LR-EDIT-OPTICS-PROFILE: Fujifilm nine-knot lens tables read at the plain radius; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LRC-LIB-LIBFOLDERS, LR-BEHAV-BG-TASKS: Synchronize Folder's scan shows its folder listing and stops it on ✕; LRC-LIB-LIBFOLDERS: Synchronize Folder says a folder is up to date; LR-LIB-STACK: filmstrip stack badge click; LRC-LIB-REFVIEW / CATALOG-SWITCH: Escape preserves edits; catalog-local pins; deleted and malformed references refused; LRC-LIB-COMPARE: the Info panel labels the active photo while culling, #2398; KEYC-RATING: `\` shows / hides the Filter Bar in the grids; LR-VIEW-PHOTOGRID: the grid reads only the photos an import batch or an edit touched, not the whole list; earlier: LRC-PRINT-PAGE: Print Page Options; LR-META-XMP: fewer false unimported-XMP warnings; KEYC-METADATA: ⌘K / Ctrl+K Add Keywords; LRC-DEV-HISTOGRAM-DRAG: the histogram's five tonal zones — hover for the value, drag to adjust the Basic control the press locked, double-click to reset; LR-VIEW-HISTOGRAM note updated; MENU-BAR: on macOS a menu item that yields its key to a focused text field or to shortcut recording really lets it go; LR-MERGE-HDR / LR-MERGE-PANO: Lanczos-3 warps; LR-IMP-LOCAL: browsing from the sidebar records the folder; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LR-IMP-ADD-DIALOG: hierarchical import album destination reconciled with main, #2362; KEY-SLIDER-NUDGE: vertical wheel nudges need a click or drag in the row; leaving it disarms them; LR-EDIT-OPTICS-PROFILE: Fujifilm nine-knot lens tables read at the plain radius; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LRC-LIB-LIBFOLDERS, LR-BEHAV-BG-TASKS: Synchronize Folder's scan shows its folder listing and stops it on ✕; LRC-LIB-LIBFOLDERS: Synchronize Folder says a folder is up to date; LR-LIB-STACK: filmstrip stack badge click; LRC-LIB-REFVIEW / CATALOG-SWITCH: Escape preserves edits; catalog-local pins; deleted and malformed references refused; LRC-LIB-COMPARE: the Info panel labels the active photo while culling, #2398; KEYC-RATING: `\` shows / hides the Filter Bar in the grids; LR-VIEW-PHOTOGRID: the grid reads only the photos an import batch or an edit touched, not the whole list; earlier: LRC-PRINT-PAGE: Print Page Options; LR-META-XMP: fewer false unimported-XMP warnings; LR-FILT-SEARCH-META: `>=` / `<=` in fielded search tokens; MENU-FILE-CLOSE, KEY-CLOSEWINDOW: the notes say Close Window quits the app, after the same check as Quit; MENU-EDIT-SELECTNONE, MENU-EDIT-PASTESELECTED: Edit lists Select Only Active Photo after Deselect All and Paste Settings from Previous after Paste Selected Settings…; on macOS no doubled separators are left where Settings… moved to the app menu; LR-BEHAV-TITLEBAR: a double-click follows the system setting, and a panel over the bar keeps the window still; KEYC-METADATA, LRC-LIB-KEYWORDS: ⌥0 / ⌥⇧0 go to the next / previous keyword set; LRC-DEV-HISTOGRAM-DRAG: the histogram's five tonal zones — hover for the value, drag to adjust the Basic control the press locked, double-click to reset; LR-VIEW-HISTOGRAM note updated; MENU-BAR: on macOS a menu item that yields its key to a focused text field or to shortcut recording really lets it go; LR-MERGE-HDR / LR-MERGE-PANO: Lanczos-3 warps; LR-IMP-LOCAL: browsing from the sidebar records the folder; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LR-IMP-ADD-DIALOG: hierarchical import album destination reconciled with main, #2362; KEY-SLIDER-NUDGE: vertical wheel nudges need a click or drag in the row; leaving it disarms them; LR-EDIT-OPTICS-PROFILE: Fujifilm nine-knot lens tables read at the plain radius; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LRC-LIB-LIBFOLDERS, LR-BEHAV-BG-TASKS: Synchronize Folder's scan shows its folder listing and stops it on ✕; LRC-LIB-LIBFOLDERS: Synchronize Folder says a folder is up to date; LR-LIB-STACK: filmstrip stack badge click; LRC-LIB-REFVIEW / CATALOG-SWITCH: Escape preserves edits; catalog-local pins; deleted and malformed references refused; LRC-LIB-COMPARE: the Info panel labels the active photo while culling, #2398; KEYC-RATING: `\` shows / hides the Filter Bar in the grids; LR-VIEW-PHOTOGRID: the grid reads only the photos an import batch or an edit touched, not the whole list; earlier: LRC-PRINT-PAGE: Print Page Options; LR-META-XMP: fewer false unimported-XMP warnings; KEYC-METADATA: ⌘K / Ctrl+K Add Keywords; LRC-DEV-HISTOGRAM-DRAG: the histogram's five tonal zones — hover for the value, drag to adjust the Basic control the press locked, double-click to reset; LR-VIEW-HISTOGRAM note updated; MENU-BAR: on macOS a menu item that yields its key to a focused text field or to shortcut recording really lets it go; LR-MERGE-HDR / LR-MERGE-PANO: Lanczos-3 warps; LR-IMP-LOCAL: browsing from the sidebar records the folder; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LR-IMP-ADD-DIALOG: hierarchical import album destination reconciled with main, #2362; KEY-SLIDER-NUDGE: vertical wheel nudges need a click or drag in the row; leaving it disarms them; LR-EDIT-OPTICS-PROFILE: Fujifilm nine-knot lens tables read at the plain radius; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LRC-LIB-LIBFOLDERS, LR-BEHAV-BG-TASKS: Synchronize Folder's scan shows its folder listing and stops it on ✕; LRC-LIB-LIBFOLDERS: Synchronize Folder says a folder is up to date; LR-LIB-STACK: filmstrip stack badge click; LRC-LIB-REFVIEW / CATALOG-SWITCH: Escape preserves edits; catalog-local pins; deleted and malformed references refused; LRC-LIB-COMPARE: the Info panel labels the active photo while culling, #2398; KEYC-RATING: `\` shows / hides the Filter Bar in the grids; LR-VIEW-PHOTOGRID: the grid reads only the photos an import batch or an edit touched, not the whole list; earlier: LRC-PRINT-PAGE: Print Page Options; LR-META-XMP: fewer false unimported-XMP warnings; LR-MASK-BRUSH: extreme brush segments skip the intermediate dabs; LR-MASK-BRUSH: with the mask overlay hidden, the stroke being painted no longer tints the photo) · **Target:** Adobe Lightroom Classic 15.5 / Lightroom 9.6 +> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-01 · **Change:** minor (LR-UI-TOOL-ROW (new): the tools in a row under the histogram; LR-BEHAV-ACCESS: the Flatpak may talk to the accessibility bus; LR-UI-DENSE-ROWS (new): one-line 20 pt slider rows; LR-LIB-ALBUM: album commands leave out photos the library no longer has and record nothing when they add nothing; LR-BEHAV-DRAGDROP: a right-click on a text field while photos are carried from the grid opens no Cut / Copy / Paste menu; LR-BEHAV-DRAGDROP: a right-click while photos are carried from the grid opens no context menu; LR-LIB-VIRTUALCOPY: default numbering is preflighted across the requested batch and explicit names bypass suffix allocation; LR-BEHAV-DRAGDROP: only the primary button drags photos out of the grid and drops them; KEYC-RATING: deleting a keyword while Enable Filters has the filter put aside no longer leaves an empty one there; LR-BEHAV-DRAGDROP: a drop's destination is named with its parent when another folder or album has the same name; LR-VIEW-FILMSTRIP: photos drag from the filmstrip to the same sidebar targets as from the grid; LRC-LIB-LIBFOLDERS: a deep row's count follows its name in a narrow panel; LR-FILT-FLAG / LRC-LIB-FILTERBAR: the flag toggles combine, Picked + Unflagged, #2588; LR-VIEW-PHOTOGRID, LR-VIEW-FILMSTRIP, LR-VIEW-COMPARE, LR-VIEW-SURVEY, LRC-LIB-REFVIEW, LRC-LIB-PEOPLE: the active photo's selection ring shows on light themes and in Compare, Survey and the face tiles, and needs a loaded thumbnail; LR-FILT-SEARCH-META: `>=` / `<=` in fielded search tokens; MENU-FILE-CLOSE, KEY-CLOSEWINDOW: the notes say Close Window quits the app, after the same check as Quit; MENU-EDIT-SELECTNONE, MENU-EDIT-PASTESELECTED: Edit lists Select Only Active Photo after Deselect All and Paste Settings from Previous after Paste Selected Settings…; on macOS no doubled separators are left where Settings… moved to the app menu; LR-BEHAV-TITLEBAR: a double-click follows the system setting, and a panel over the bar keeps the window still; KEYC-METADATA, LRC-LIB-KEYWORDS: ⌥0 / ⌥⇧0 go to the next / previous keyword set; LRC-DEV-HISTOGRAM-DRAG: the histogram's five tonal zones — hover for the value, drag to adjust the Basic control the press locked, double-click to reset; LR-VIEW-HISTOGRAM note updated; MENU-BAR: on macOS a menu item that yields its key to a focused text field or to shortcut recording really lets it go; LR-MERGE-HDR / LR-MERGE-PANO: Lanczos-3 warps; LR-IMP-LOCAL: browsing from the sidebar records the folder; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LR-IMP-ADD-DIALOG: hierarchical import album destination reconciled with main, #2362; KEY-SLIDER-NUDGE: vertical wheel nudges need a click or drag in the row; leaving it disarms them; LR-EDIT-OPTICS-PROFILE: Fujifilm nine-knot lens tables read at the plain radius; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LRC-LIB-LIBFOLDERS, LR-BEHAV-BG-TASKS: Synchronize Folder's scan shows its folder listing and stops it on ✕; LRC-LIB-LIBFOLDERS: Synchronize Folder says a folder is up to date; LR-LIB-STACK: filmstrip stack badge click; LRC-LIB-REFVIEW / CATALOG-SWITCH: Escape preserves edits; catalog-local pins; deleted and malformed references refused; LRC-LIB-COMPARE: the Info panel labels the active photo while culling, #2398; KEYC-RATING: `\` shows / hides the Filter Bar in the grids; LR-VIEW-PHOTOGRID: the grid reads only the photos an import batch or an edit touched, not the whole list; earlier: LRC-PRINT-PAGE: Print Page Options; LR-META-XMP: fewer false unimported-XMP warnings; KEYC-METADATA: ⌘K / Ctrl+K Add Keywords; LRC-DEV-HISTOGRAM-DRAG: the histogram's five tonal zones — hover for the value, drag to adjust the Basic control the press locked, double-click to reset; LR-VIEW-HISTOGRAM note updated; MENU-BAR: on macOS a menu item that yields its key to a focused text field or to shortcut recording really lets it go; LR-MERGE-HDR / LR-MERGE-PANO: Lanczos-3 warps; LR-IMP-LOCAL: browsing from the sidebar records the folder; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LR-IMP-ADD-DIALOG: hierarchical import album destination reconciled with main, #2362; KEY-SLIDER-NUDGE: vertical wheel nudges need a click or drag in the row; leaving it disarms them; LR-EDIT-OPTICS-PROFILE: Fujifilm nine-knot lens tables read at the plain radius; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LRC-LIB-LIBFOLDERS, LR-BEHAV-BG-TASKS: Synchronize Folder's scan shows its folder listing and stops it on ✕; LRC-LIB-LIBFOLDERS: Synchronize Folder says a folder is up to date; LR-LIB-STACK: filmstrip stack badge click; LRC-LIB-REFVIEW / CATALOG-SWITCH: Escape preserves edits; catalog-local pins; deleted and malformed references refused; LRC-LIB-COMPARE: the Info panel labels the active photo while culling, #2398; KEYC-RATING: `\` shows / hides the Filter Bar in the grids; LR-VIEW-PHOTOGRID: the grid reads only the photos an import batch or an edit touched, not the whole list; earlier: LRC-PRINT-PAGE: Print Page Options; LR-META-XMP: fewer false unimported-XMP warnings; LR-META-LOCATION: Info GPS text is fully validated before metadata changes; LR-MAP-TRACKLOG decodes GPX character references in point fields; malformed references error; CDATA stays literal; LR-BEHAV-ACCESS: the Thumbnail size control is a slider to screen readers; LR-BEHAV-ACCESS: the Detail photo is named with its file name; LR-VIEW-PHOTOGRID: the grid's empty-view message names its shortcut as this platform writes it and as it is bound; LR-BEHAV-ACCESS: the grid's date headers are named as they read; LR-BEHAV-ACCESS: the sidebar's disclosure triangles name their row; KEYC-METADATA, LRC-LIB-KEYWORDS: ⌘⌥⇧K Set Keyword Shortcut and ⇧K; KEYC-METADATA: ⌘⇧K / Ctrl+Shift+K Edit Keywords; LR-FILT-SEARCH-META: `>=` / `<=` in fielded search tokens; MENU-FILE-CLOSE, KEY-CLOSEWINDOW: the notes say Close Window quits the app, after the same check as Quit; MENU-EDIT-SELECTNONE, MENU-EDIT-PASTESELECTED: Edit lists Select Only Active Photo after Deselect All and Paste Settings from Previous after Paste Selected Settings…; on macOS no doubled separators are left where Settings… moved to the app menu; LR-BEHAV-TITLEBAR: a double-click follows the system setting, and a panel over the bar keeps the window still; KEYC-METADATA, LRC-LIB-KEYWORDS: ⌥0 / ⌥⇧0 go to the next / previous keyword set; LRC-DEV-HISTOGRAM-DRAG: the histogram's five tonal zones — hover for the value, drag to adjust the Basic control the press locked, double-click to reset; LR-VIEW-HISTOGRAM note updated; MENU-BAR: on macOS a menu item that yields its key to a focused text field or to shortcut recording really lets it go; LR-MERGE-HDR / LR-MERGE-PANO: Lanczos-3 warps; LR-IMP-LOCAL: browsing from the sidebar records the folder; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LR-IMP-ADD-DIALOG: hierarchical import album destination reconciled with main, #2362; KEY-SLIDER-NUDGE: vertical wheel nudges need a click or drag in the row; leaving it disarms them; LR-EDIT-OPTICS-PROFILE: Fujifilm nine-knot lens tables read at the plain radius; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LRC-LIB-LIBFOLDERS, LR-BEHAV-BG-TASKS: Synchronize Folder's scan shows its folder listing and stops it on ✕; LRC-LIB-LIBFOLDERS: Synchronize Folder says a folder is up to date; LR-LIB-STACK: filmstrip stack badge click; LRC-LIB-REFVIEW / CATALOG-SWITCH: Escape preserves edits; catalog-local pins; deleted and malformed references refused; LRC-LIB-COMPARE: the Info panel labels the active photo while culling, #2398; KEYC-RATING: `\` shows / hides the Filter Bar in the grids; LR-VIEW-PHOTOGRID: the grid reads only the photos an import batch or an edit touched, not the whole list; earlier: LRC-PRINT-PAGE: Print Page Options; LR-META-XMP: fewer false unimported-XMP warnings; KEYC-METADATA: ⌘K / Ctrl+K Add Keywords; LRC-DEV-HISTOGRAM-DRAG: the histogram's five tonal zones — hover for the value, drag to adjust the Basic control the press locked, double-click to reset; LR-VIEW-HISTOGRAM note updated; MENU-BAR: on macOS a menu item that yields its key to a focused text field or to shortcut recording really lets it go; LR-MERGE-HDR / LR-MERGE-PANO: Lanczos-3 warps; LR-IMP-LOCAL: browsing from the sidebar records the folder; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LR-IMP-ADD-DIALOG: hierarchical import album destination reconciled with main, #2362; KEY-SLIDER-NUDGE: vertical wheel nudges need a click or drag in the row; leaving it disarms them; LR-EDIT-OPTICS-PROFILE: Fujifilm nine-knot lens tables read at the plain radius; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LRC-LIB-LIBFOLDERS, LR-BEHAV-BG-TASKS: Synchronize Folder's scan shows its folder listing and stops it on ✕; LRC-LIB-LIBFOLDERS: Synchronize Folder says a folder is up to date; LR-LIB-STACK: filmstrip stack badge click; LRC-LIB-REFVIEW / CATALOG-SWITCH: Escape preserves edits; catalog-local pins; deleted and malformed references refused; LRC-LIB-COMPARE: the Info panel labels the active photo while culling, #2398; KEYC-RATING: `\` shows / hides the Filter Bar in the grids; LR-VIEW-PHOTOGRID: the grid reads only the photos an import batch or an edit touched, not the whole list; earlier: LRC-PRINT-PAGE: Print Page Options; LR-META-XMP: fewer false unimported-XMP warnings; LRC-LIB-FOLDERS: Local's built-in places (Pictures, Desktop, Downloads, Home) offer no Rename Folder… or Move Folder To…, and `folder.rename` / `folder.move` refuse the home folder and its Pictures, Desktop and Downloads; LRC-LIB-CATALOG-SWITCH: a library's catalog.snap or folder given at launch opens that library; LR-IMP-ADD-DIALOG / LR-IMP-MOVE: checked rename-sequence exhaustion; LR-IMP-ADD-DIALOG: an import asks the disk about the probes a scan left, and for each photo's sidecar, up to 16 files at a time; LRC-LIB-LIBFOLDERS: Don't ask again in the Move Photos question is kept only when the move started; a refused move leaves the question on; LR-IMP-ADD-DIALOG: remembered import thumbnail size, density-aware bounded previews and one job per candidate/size bucket (#2237, part of #2056); import loupe remains open; counts unchanged; LR-FILT-SEARCH-META: `>=` / `<=` in fielded search tokens; MENU-FILE-CLOSE, KEY-CLOSEWINDOW: the notes say Close Window quits the app, after the same check as Quit; MENU-EDIT-SELECTNONE, MENU-EDIT-PASTESELECTED: Edit lists Select Only Active Photo after Deselect All and Paste Settings from Previous after Paste Selected Settings…; on macOS no doubled separators are left where Settings… moved to the app menu; LR-BEHAV-TITLEBAR: a double-click follows the system setting, and a panel over the bar keeps the window still; KEYC-METADATA, LRC-LIB-KEYWORDS: ⌥0 / ⌥⇧0 go to the next / previous keyword set; LRC-DEV-HISTOGRAM-DRAG: the histogram's five tonal zones — hover for the value, drag to adjust the Basic control the press locked, double-click to reset; LR-VIEW-HISTOGRAM note updated; MENU-BAR: on macOS a menu item that yields its key to a focused text field or to shortcut recording really lets it go; LR-MERGE-HDR / LR-MERGE-PANO: Lanczos-3 warps; LR-IMP-LOCAL: browsing from the sidebar records the folder; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LR-IMP-ADD-DIALOG: hierarchical import album destination reconciled with main, #2362; KEY-SLIDER-NUDGE: vertical wheel nudges need a click or drag in the row; leaving it disarms them; LR-EDIT-OPTICS-PROFILE: Fujifilm nine-knot lens tables read at the plain radius; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LRC-LIB-LIBFOLDERS, LR-BEHAV-BG-TASKS: Synchronize Folder's scan shows its folder listing and stops it on ✕; LRC-LIB-LIBFOLDERS: Synchronize Folder says a folder is up to date; LR-LIB-STACK: filmstrip stack badge click; LRC-LIB-REFVIEW / CATALOG-SWITCH: Escape preserves edits; catalog-local pins; deleted and malformed references refused; LRC-LIB-COMPARE: the Info panel labels the active photo while culling, #2398; KEYC-RATING: `\` shows / hides the Filter Bar in the grids; LR-VIEW-PHOTOGRID: the grid reads only the photos an import batch or an edit touched, not the whole list; earlier: LRC-PRINT-PAGE: Print Page Options; LR-META-XMP: fewer false unimported-XMP warnings; KEYC-METADATA: ⌘K / Ctrl+K Add Keywords; LRC-DEV-HISTOGRAM-DRAG: the histogram's five tonal zones — hover for the value, drag to adjust the Basic control the press locked, double-click to reset; LR-VIEW-HISTOGRAM note updated; MENU-BAR: on macOS a menu item that yields its key to a focused text field or to shortcut recording really lets it go; LR-MERGE-HDR / LR-MERGE-PANO: Lanczos-3 warps; LR-IMP-LOCAL: browsing from the sidebar records the folder; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LR-IMP-ADD-DIALOG: hierarchical import album destination reconciled with main, #2362; KEY-SLIDER-NUDGE: vertical wheel nudges need a click or drag in the row; leaving it disarms them; LR-EDIT-OPTICS-PROFILE: Fujifilm nine-knot lens tables read at the plain radius; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LRC-LIB-LIBFOLDERS, LR-BEHAV-BG-TASKS: Synchronize Folder's scan shows its folder listing and stops it on ✕; LRC-LIB-LIBFOLDERS: Synchronize Folder says a folder is up to date; LR-LIB-STACK: filmstrip stack badge click; LRC-LIB-REFVIEW / CATALOG-SWITCH: Escape preserves edits; catalog-local pins; deleted and malformed references refused; LRC-LIB-COMPARE: the Info panel labels the active photo while culling, #2398; KEYC-RATING: `\` shows / hides the Filter Bar in the grids; LR-VIEW-PHOTOGRID: the grid reads only the photos an import batch or an edit touched, not the whole list; earlier: LRC-PRINT-PAGE: Print Page Options; LR-META-XMP: fewer false unimported-XMP warnings; LR-MERGE-HDR / LR-MERGE-PANO / LR-MERGE-HDRPANO: the dialog makes a new preview each time it opens, also after a failed one, #2708; LR-FILT-SEARCH-META: `>=` / `<=` in fielded search tokens; MENU-FILE-CLOSE, KEY-CLOSEWINDOW: the notes say Close Window quits the app, after the same check as Quit; MENU-EDIT-SELECTNONE, MENU-EDIT-PASTESELECTED: Edit lists Select Only Active Photo after Deselect All and Paste Settings from Previous after Paste Selected Settings…; on macOS no doubled separators are left where Settings… moved to the app menu; LR-BEHAV-TITLEBAR: a double-click follows the system setting, and a panel over the bar keeps the window still; KEYC-METADATA, LRC-LIB-KEYWORDS: ⌥0 / ⌥⇧0 go to the next / previous keyword set; LRC-DEV-HISTOGRAM-DRAG: the histogram's five tonal zones — hover for the value, drag to adjust the Basic control the press locked, double-click to reset; LR-VIEW-HISTOGRAM note updated; MENU-BAR: on macOS a menu item that yields its key to a focused text field or to shortcut recording really lets it go; LR-MERGE-HDR / LR-MERGE-PANO: Lanczos-3 warps; LR-IMP-LOCAL: browsing from the sidebar records the folder; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LR-IMP-ADD-DIALOG: hierarchical import album destination reconciled with main, #2362; KEY-SLIDER-NUDGE: vertical wheel nudges need a click or drag in the row; leaving it disarms them; LR-EDIT-OPTICS-PROFILE: Fujifilm nine-knot lens tables read at the plain radius; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LRC-LIB-LIBFOLDERS, LR-BEHAV-BG-TASKS: Synchronize Folder's scan shows its folder listing and stops it on ✕; LRC-LIB-LIBFOLDERS: Synchronize Folder says a folder is up to date; LR-LIB-STACK: filmstrip stack badge click; LRC-LIB-REFVIEW / CATALOG-SWITCH: Escape preserves edits; catalog-local pins; deleted and malformed references refused; LRC-LIB-COMPARE: the Info panel labels the active photo while culling, #2398; KEYC-RATING: `\` shows / hides the Filter Bar in the grids; LR-VIEW-PHOTOGRID: the grid reads only the photos an import batch or an edit touched, not the whole list; earlier: LRC-PRINT-PAGE: Print Page Options; LR-META-XMP: fewer false unimported-XMP warnings; KEYC-METADATA: ⌘K / Ctrl+K Add Keywords; LRC-DEV-HISTOGRAM-DRAG: the histogram's five tonal zones — hover for the value, drag to adjust the Basic control the press locked, double-click to reset; LR-VIEW-HISTOGRAM note updated; MENU-BAR: on macOS a menu item that yields its key to a focused text field or to shortcut recording really lets it go; LR-MERGE-HDR / LR-MERGE-PANO: Lanczos-3 warps; LR-IMP-LOCAL: browsing from the sidebar records the folder; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LR-IMP-ADD-DIALOG: hierarchical import album destination reconciled with main, #2362; KEY-SLIDER-NUDGE: vertical wheel nudges need a click or drag in the row; leaving it disarms them; LR-EDIT-OPTICS-PROFILE: Fujifilm nine-knot lens tables read at the plain radius; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LRC-LIB-LIBFOLDERS, LR-BEHAV-BG-TASKS: Synchronize Folder's scan shows its folder listing and stops it on ✕; LRC-LIB-LIBFOLDERS: Synchronize Folder says a folder is up to date; LR-LIB-STACK: filmstrip stack badge click; LRC-LIB-REFVIEW / CATALOG-SWITCH: Escape preserves edits; catalog-local pins; deleted and malformed references refused; LRC-LIB-COMPARE: the Info panel labels the active photo while culling, #2398; KEYC-RATING: `\` shows / hides the Filter Bar in the grids; LR-VIEW-PHOTOGRID: the grid reads only the photos an import batch or an edit touched, not the whole list; earlier: LRC-PRINT-PAGE: Print Page Options; LR-META-XMP: fewer false unimported-XMP warnings; LRC-LIB-MISSING: `library.missing` from the control channel checks the files on a worker thread instead of the UI thread; LR-FILT-SEARCH-META: `>=` / `<=` in fielded search tokens; MENU-FILE-CLOSE, KEY-CLOSEWINDOW: the notes say Close Window quits the app, after the same check as Quit; MENU-EDIT-SELECTNONE, MENU-EDIT-PASTESELECTED: Edit lists Select Only Active Photo after Deselect All and Paste Settings from Previous after Paste Selected Settings…; on macOS no doubled separators are left where Settings… moved to the app menu; LR-BEHAV-TITLEBAR: a double-click follows the system setting, and a panel over the bar keeps the window still; KEYC-METADATA, LRC-LIB-KEYWORDS: ⌥0 / ⌥⇧0 go to the next / previous keyword set; LRC-DEV-HISTOGRAM-DRAG: the histogram's five tonal zones — hover for the value, drag to adjust the Basic control the press locked, double-click to reset; LR-VIEW-HISTOGRAM note updated; MENU-BAR: on macOS a menu item that yields its key to a focused text field or to shortcut recording really lets it go; LR-MERGE-HDR / LR-MERGE-PANO: Lanczos-3 warps; LR-IMP-LOCAL: browsing from the sidebar records the folder; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LR-IMP-ADD-DIALOG: hierarchical import album destination reconciled with main, #2362; KEY-SLIDER-NUDGE: vertical wheel nudges need a click or drag in the row; leaving it disarms them; LR-EDIT-OPTICS-PROFILE: Fujifilm nine-knot lens tables read at the plain radius; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LRC-LIB-LIBFOLDERS, LR-BEHAV-BG-TASKS: Synchronize Folder's scan shows its folder listing and stops it on ✕; LRC-LIB-LIBFOLDERS: Synchronize Folder says a folder is up to date; LR-LIB-STACK: filmstrip stack badge click; LRC-LIB-REFVIEW / CATALOG-SWITCH: Escape preserves edits; catalog-local pins; deleted and malformed references refused; LRC-LIB-COMPARE: the Info panel labels the active photo while culling, #2398; KEYC-RATING: `\` shows / hides the Filter Bar in the grids; LR-VIEW-PHOTOGRID: the grid reads only the photos an import batch or an edit touched, not the whole list; earlier: LRC-PRINT-PAGE: Print Page Options; LR-META-XMP: fewer false unimported-XMP warnings; KEYC-METADATA: ⌘K / Ctrl+K Add Keywords; LRC-DEV-HISTOGRAM-DRAG: the histogram's five tonal zones — hover for the value, drag to adjust the Basic control the press locked, double-click to reset; LR-VIEW-HISTOGRAM note updated; MENU-BAR: on macOS a menu item that yields its key to a focused text field or to shortcut recording really lets it go; LR-MERGE-HDR / LR-MERGE-PANO: Lanczos-3 warps; LR-IMP-LOCAL: browsing from the sidebar records the folder; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LR-IMP-ADD-DIALOG: hierarchical import album destination reconciled with main, #2362; KEY-SLIDER-NUDGE: vertical wheel nudges need a click or drag in the row; leaving it disarms them; LR-EDIT-OPTICS-PROFILE: Fujifilm nine-knot lens tables read at the plain radius; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LRC-LIB-LIBFOLDERS, LR-BEHAV-BG-TASKS: Synchronize Folder's scan shows its folder listing and stops it on ✕; LRC-LIB-LIBFOLDERS: Synchronize Folder says a folder is up to date; LR-LIB-STACK: filmstrip stack badge click; LRC-LIB-REFVIEW / CATALOG-SWITCH: Escape preserves edits; catalog-local pins; deleted and malformed references refused; LRC-LIB-COMPARE: the Info panel labels the active photo while culling, #2398; KEYC-RATING: `\` shows / hides the Filter Bar in the grids; LR-VIEW-PHOTOGRID: the grid reads only the photos an import batch or an edit touched, not the whole list; earlier: LRC-PRINT-PAGE: Print Page Options; LR-META-XMP: fewer false unimported-XMP warnings; LR-CROP-AUTO: Auto straighten reads the vertical vanishing point and the horizon; LR-META-EXIF-FULL: reject extra EXIF clock components so invalid capture-time candidates fall through to valid metadata; LR-FILT-SEARCH-META: `>=` / `<=` in fielded search tokens; MENU-FILE-CLOSE, KEY-CLOSEWINDOW: the notes say Close Window quits the app, after the same check as Quit; MENU-EDIT-SELECTNONE, MENU-EDIT-PASTESELECTED: Edit lists Select Only Active Photo after Deselect All and Paste Settings from Previous after Paste Selected Settings…; on macOS no doubled separators are left where Settings… moved to the app menu; LR-BEHAV-TITLEBAR: a double-click follows the system setting, and a panel over the bar keeps the window still; KEYC-METADATA, LRC-LIB-KEYWORDS: ⌥0 / ⌥⇧0 go to the next / previous keyword set; LRC-DEV-HISTOGRAM-DRAG: the histogram's five tonal zones — hover for the value, drag to adjust the Basic control the press locked, double-click to reset; LR-VIEW-HISTOGRAM note updated; MENU-BAR: on macOS a menu item that yields its key to a focused text field or to shortcut recording really lets it go; LR-MERGE-HDR / LR-MERGE-PANO: Lanczos-3 warps; LR-IMP-LOCAL: browsing from the sidebar records the folder; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LR-IMP-ADD-DIALOG: hierarchical import album destination reconciled with main, #2362; KEY-SLIDER-NUDGE: vertical wheel nudges need a click or drag in the row; leaving it disarms them; LR-EDIT-OPTICS-PROFILE: Fujifilm nine-knot lens tables read at the plain radius; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LRC-LIB-LIBFOLDERS, LR-BEHAV-BG-TASKS: Synchronize Folder's scan shows its folder listing and stops it on ✕; LRC-LIB-LIBFOLDERS: Synchronize Folder says a folder is up to date; LR-LIB-STACK: filmstrip stack badge click; LRC-LIB-REFVIEW / CATALOG-SWITCH: Escape preserves edits; catalog-local pins; deleted and malformed references refused; LRC-LIB-COMPARE: the Info panel labels the active photo while culling, #2398; KEYC-RATING: `\` shows / hides the Filter Bar in the grids; LR-VIEW-PHOTOGRID: the grid reads only the photos an import batch or an edit touched, not the whole list; earlier: LRC-PRINT-PAGE: Print Page Options; LR-META-XMP: fewer false unimported-XMP warnings; KEYC-METADATA: ⌘K / Ctrl+K Add Keywords; LRC-DEV-HISTOGRAM-DRAG: the histogram's five tonal zones — hover for the value, drag to adjust the Basic control the press locked, double-click to reset; LR-VIEW-HISTOGRAM note updated; MENU-BAR: on macOS a menu item that yields its key to a focused text field or to shortcut recording really lets it go; LR-MERGE-HDR / LR-MERGE-PANO: Lanczos-3 warps; LR-IMP-LOCAL: browsing from the sidebar records the folder; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LR-IMP-ADD-DIALOG: hierarchical import album destination reconciled with main, #2362; KEY-SLIDER-NUDGE: vertical wheel nudges need a click or drag in the row; leaving it disarms them; LR-EDIT-OPTICS-PROFILE: Fujifilm nine-knot lens tables read at the plain radius; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LRC-LIB-LIBFOLDERS, LR-BEHAV-BG-TASKS: Synchronize Folder's scan shows its folder listing and stops it on ✕; LRC-LIB-LIBFOLDERS: Synchronize Folder says a folder is up to date; LR-LIB-STACK: filmstrip stack badge click; LRC-LIB-REFVIEW / CATALOG-SWITCH: Escape preserves edits; catalog-local pins; deleted and malformed references refused; LRC-LIB-COMPARE: the Info panel labels the active photo while culling, #2398; KEYC-RATING: `\` shows / hides the Filter Bar in the grids; LR-VIEW-PHOTOGRID: the grid reads only the photos an import batch or an edit touched, not the whole list; earlier: LRC-PRINT-PAGE: Print Page Options; LR-META-XMP: fewer false unimported-XMP warnings; LR-META-XMP / LRC-MAP-TRACKLOG: malformed ISO times are not projected or matched; LR-IMP-FORMATS: JPEG ICC APP2 chunk validation; LR-BEHAV-TITLEBAR: a dialog leaves the title bar undimmed, as a macOS sheet does; LR-BEHAV-ACCESS: the bars are toolbars and the panels landmarks for screen readers; LR-BEHAV-ACCESS: every dialog and prompt is exposed as a dialog (a modal one, an alert dialog for the prompts); LR-BEHAV-ACCESS: icon-only buttons are named by their label, with the shortcut as the description; MENU-HELP-HELP: on macOS the Help menu is registered with the application only once the menu bar is installed (muda ignores the call before), so AppKit knows which menu is Help; LR-BEHAV-ACCESS: a slider's value field is named ` value`, with how to use it as its description; MENU-BAR: every shortcut the app shows on macOS lists its modifiers ⌃⌥⇧⌘, as the menu bar does; MENU-BAR: on macOS two menu rows that run the same command each get their own native row and label (File ▸ Export… and File ▸ Export with Preset ▸ Custom…; File ▸ New Album… and Photo ▸ Add to Album ▸ New Album…); LR-BEHAV-DIALOGS: a one-line prompt that is refused stays open and says why, and a New Folder on Disk says it was made; LR-FILT-SEARCH-META: `>=` / `<=` in fielded search tokens; MENU-FILE-CLOSE, KEY-CLOSEWINDOW: the notes say Close Window quits the app, after the same check as Quit; MENU-EDIT-SELECTNONE, MENU-EDIT-PASTESELECTED: Edit lists Select Only Active Photo after Deselect All and Paste Settings from Previous after Paste Selected Settings…; on macOS no doubled separators are left where Settings… moved to the app menu; LR-BEHAV-TITLEBAR: a double-click follows the system setting, and a panel over the bar keeps the window still; KEYC-METADATA, LRC-LIB-KEYWORDS: ⌥0 / ⌥⇧0 go to the next / previous keyword set; LRC-DEV-HISTOGRAM-DRAG: the histogram's five tonal zones — hover for the value, drag to adjust the Basic control the press locked, double-click to reset; LR-VIEW-HISTOGRAM note updated; MENU-BAR: on macOS a menu item that yields its key to a focused text field or to shortcut recording really lets it go; LR-MERGE-HDR / LR-MERGE-PANO: Lanczos-3 warps; LR-IMP-LOCAL: browsing from the sidebar records the folder; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LR-IMP-ADD-DIALOG: hierarchical import album destination reconciled with main, #2362; KEY-SLIDER-NUDGE: vertical wheel nudges need a click or drag in the row; leaving it disarms them; LR-EDIT-OPTICS-PROFILE: Fujifilm nine-knot lens tables read at the plain radius; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LRC-LIB-LIBFOLDERS, LR-BEHAV-BG-TASKS: Synchronize Folder's scan shows its folder listing and stops it on ✕; LRC-LIB-LIBFOLDERS: Synchronize Folder says a folder is up to date; LR-LIB-STACK: filmstrip stack badge click; LRC-LIB-REFVIEW / CATALOG-SWITCH: Escape preserves edits; catalog-local pins; deleted and malformed references refused; LRC-LIB-COMPARE: the Info panel labels the active photo while culling, #2398; KEYC-RATING: `\` shows / hides the Filter Bar in the grids; LR-VIEW-PHOTOGRID: the grid reads only the photos an import batch or an edit touched, not the whole list; earlier: LRC-PRINT-PAGE: Print Page Options; LR-META-XMP: fewer false unimported-XMP warnings; KEYC-METADATA: ⌘K / Ctrl+K Add Keywords; LRC-DEV-HISTOGRAM-DRAG: the histogram's five tonal zones — hover for the value, drag to adjust the Basic control the press locked, double-click to reset; LR-VIEW-HISTOGRAM note updated; MENU-BAR: on macOS a menu item that yields its key to a focused text field or to shortcut recording really lets it go; LR-MERGE-HDR / LR-MERGE-PANO: Lanczos-3 warps; LR-IMP-LOCAL: browsing from the sidebar records the folder; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LR-IMP-ADD-DIALOG: hierarchical import album destination reconciled with main, #2362; KEY-SLIDER-NUDGE: vertical wheel nudges need a click or drag in the row; leaving it disarms them; LR-EDIT-OPTICS-PROFILE: Fujifilm nine-knot lens tables read at the plain radius; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LRC-LIB-LIBFOLDERS, LR-BEHAV-BG-TASKS: Synchronize Folder's scan shows its folder listing and stops it on ✕; LRC-LIB-LIBFOLDERS: Synchronize Folder says a folder is up to date; LR-LIB-STACK: filmstrip stack badge click; LRC-LIB-REFVIEW / CATALOG-SWITCH: Escape preserves edits; catalog-local pins; deleted and malformed references refused; LRC-LIB-COMPARE: the Info panel labels the active photo while culling, #2398; KEYC-RATING: `\` shows / hides the Filter Bar in the grids; LR-VIEW-PHOTOGRID: the grid reads only the photos an import batch or an edit touched, not the whole list; earlier: LRC-PRINT-PAGE: Print Page Options; LR-META-XMP: fewer false unimported-XMP warnings; LR-VIEW-HISTOGRAM: the shadow and highlight clipping buttons take their tile and chevron from the theme, so the chevron reads in every theme; LR-FILT-SEARCH-META: `>=` / `<=` in fielded search tokens; MENU-FILE-CLOSE, KEY-CLOSEWINDOW: the notes say Close Window quits the app, after the same check as Quit; MENU-EDIT-SELECTNONE, MENU-EDIT-PASTESELECTED: Edit lists Select Only Active Photo after Deselect All and Paste Settings from Previous after Paste Selected Settings…; on macOS no doubled separators are left where Settings… moved to the app menu; LR-BEHAV-TITLEBAR: a double-click follows the system setting, and a panel over the bar keeps the window still; KEYC-METADATA, LRC-LIB-KEYWORDS: ⌥0 / ⌥⇧0 go to the next / previous keyword set; LRC-DEV-HISTOGRAM-DRAG: the histogram's five tonal zones — hover for the value, drag to adjust the Basic control the press locked, double-click to reset; LR-VIEW-HISTOGRAM note updated; MENU-BAR: on macOS a menu item that yields its key to a focused text field or to shortcut recording really lets it go; LR-MERGE-HDR / LR-MERGE-PANO: Lanczos-3 warps; LR-IMP-LOCAL: browsing from the sidebar records the folder; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LR-IMP-ADD-DIALOG: hierarchical import album destination reconciled with main, #2362; KEY-SLIDER-NUDGE: vertical wheel nudges need a click or drag in the row; leaving it disarms them; LR-EDIT-OPTICS-PROFILE: Fujifilm nine-knot lens tables read at the plain radius; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LRC-LIB-LIBFOLDERS, LR-BEHAV-BG-TASKS: Synchronize Folder's scan shows its folder listing and stops it on ✕; LRC-LIB-LIBFOLDERS: Synchronize Folder says a folder is up to date; LR-LIB-STACK: filmstrip stack badge click; LRC-LIB-REFVIEW / CATALOG-SWITCH: Escape preserves edits; catalog-local pins; deleted and malformed references refused; LRC-LIB-COMPARE: the Info panel labels the active photo while culling, #2398; KEYC-RATING: `\` shows / hides the Filter Bar in the grids; LR-VIEW-PHOTOGRID: the grid reads only the photos an import batch or an edit touched, not the whole list; earlier: LRC-PRINT-PAGE: Print Page Options; LR-META-XMP: fewer false unimported-XMP warnings; KEYC-METADATA: ⌘K / Ctrl+K Add Keywords; LRC-DEV-HISTOGRAM-DRAG: the histogram's five tonal zones — hover for the value, drag to adjust the Basic control the press locked, double-click to reset; LR-VIEW-HISTOGRAM note updated; MENU-BAR: on macOS a menu item that yields its key to a focused text field or to shortcut recording really lets it go; LR-MERGE-HDR / LR-MERGE-PANO: Lanczos-3 warps; LR-IMP-LOCAL: browsing from the sidebar records the folder; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LR-IMP-ADD-DIALOG: hierarchical import album destination reconciled with main, #2362; KEY-SLIDER-NUDGE: vertical wheel nudges need a click or drag in the row; leaving it disarms them; LR-EDIT-OPTICS-PROFILE: Fujifilm nine-knot lens tables read at the plain radius; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LRC-LIB-LIBFOLDERS, LR-BEHAV-BG-TASKS: Synchronize Folder's scan shows its folder listing and stops it on ✕; LRC-LIB-LIBFOLDERS: Synchronize Folder says a folder is up to date; LR-LIB-STACK: filmstrip stack badge click; LRC-LIB-REFVIEW / CATALOG-SWITCH: Escape preserves edits; catalog-local pins; deleted and malformed references refused; LRC-LIB-COMPARE: the Info panel labels the active photo while culling, #2398; KEYC-RATING: `\` shows / hides the Filter Bar in the grids; LR-VIEW-PHOTOGRID: the grid reads only the photos an import batch or an edit touched, not the whole list; earlier: LRC-PRINT-PAGE: Print Page Options; LR-META-XMP: fewer false unimported-XMP warnings; LR-FILT-SEARCH-META: `>=` / `<=` in fielded search tokens; MENU-FILE-CLOSE, KEY-CLOSEWINDOW: the notes say Close Window quits the app, after the same check as Quit; MENU-EDIT-SELECTNONE, MENU-EDIT-PASTESELECTED: Edit lists Select Only Active Photo after Deselect All and Paste Settings from Previous after Paste Selected Settings…; on macOS no doubled separators are left where Settings… moved to the app menu; LR-BEHAV-TITLEBAR: a double-click follows the system setting, and a panel over the bar keeps the window still; KEYC-METADATA, LRC-LIB-KEYWORDS: ⌥0 / ⌥⇧0 go to the next / previous keyword set; LRC-DEV-HISTOGRAM-DRAG: the histogram's five tonal zones — hover for the value, drag to adjust the Basic control the press locked, double-click to reset; LR-VIEW-HISTOGRAM note updated; MENU-BAR: on macOS a menu item that yields its key to a focused text field or to shortcut recording really lets it go; LR-MERGE-HDR / LR-MERGE-PANO: Lanczos-3 warps; LR-IMP-LOCAL: browsing from the sidebar records the folder; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LR-IMP-ADD-DIALOG: hierarchical import album destination reconciled with main, #2362; KEY-SLIDER-NUDGE: vertical wheel nudges need a click or drag in the row; leaving it disarms them; LR-EDIT-OPTICS-PROFILE: Fujifilm nine-knot lens tables read at the plain radius; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LRC-LIB-LIBFOLDERS, LR-BEHAV-BG-TASKS: Synchronize Folder's scan shows its folder listing and stops it on ✕; LRC-LIB-LIBFOLDERS: Synchronize Folder says a folder is up to date; LR-LIB-STACK: filmstrip stack badge click; LRC-LIB-REFVIEW / CATALOG-SWITCH: Escape preserves edits; catalog-local pins; deleted and malformed references refused; LRC-LIB-COMPARE: the Info panel labels the active photo while culling, #2398; KEYC-RATING: `\` shows / hides the Filter Bar in the grids; LR-VIEW-PHOTOGRID: the grid reads only the photos an import batch or an edit touched, not the whole list; earlier: LRC-PRINT-PAGE: Print Page Options; LR-META-XMP: fewer false unimported-XMP warnings; KEYC-METADATA: ⌘K / Ctrl+K Add Keywords; LRC-DEV-HISTOGRAM-DRAG: the histogram's five tonal zones — hover for the value, drag to adjust the Basic control the press locked, double-click to reset; LR-VIEW-HISTOGRAM note updated; MENU-BAR: on macOS a menu item that yields its key to a focused text field or to shortcut recording really lets it go; LR-MERGE-HDR / LR-MERGE-PANO: Lanczos-3 warps; LR-IMP-LOCAL: browsing from the sidebar records the folder; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LR-IMP-ADD-DIALOG: hierarchical import album destination reconciled with main, #2362; KEY-SLIDER-NUDGE: vertical wheel nudges need a click or drag in the row; leaving it disarms them; LR-EDIT-OPTICS-PROFILE: Fujifilm nine-knot lens tables read at the plain radius; LR-VIEW-ZOOM: only a full-size drag within 20 ms clears a slow-drag verdict; LRC-LIB-LIBFOLDERS, LR-BEHAV-BG-TASKS: Synchronize Folder's scan shows its folder listing and stops it on ✕; LRC-LIB-LIBFOLDERS: Synchronize Folder says a folder is up to date; LR-LIB-STACK: filmstrip stack badge click; LRC-LIB-REFVIEW / CATALOG-SWITCH: Escape preserves edits; catalog-local pins; deleted and malformed references refused; LRC-LIB-COMPARE: the Info panel labels the active photo while culling, #2398; KEYC-RATING: `\` shows / hides the Filter Bar in the grids; LR-VIEW-PHOTOGRID: the grid reads only the photos an import batch or an edit touched, not the whole list; earlier: LRC-PRINT-PAGE: Print Page Options; LR-META-XMP: fewer false unimported-XMP warnings; LR-MASK-BRUSH: extreme brush segments skip the intermediate dabs; LR-MASK-BRUSH: with the mask overlay hidden, the stroke being painted no longer tints the photo) · **Target:** Adobe Lightroom Classic 15.5 / Lightroom 9.6 The measured, row-by-row checklist: one row per Lightroom feature, menu item and shortcut, what we have and what is missing. It answers *does the feature exist?* (feature breadth). Whether it is good @@ -49,7 +49,7 @@ cited here still exists. Formerly docs/parity.md. | U. Map & location (MAP) | 0 | 1 | 1 | 0 | — | 0/1 (0%) | | V. Preferences (PREF) | 6 | 2 | 2 | 2 | 1/1 (100%) | 4/5 (80%) | | W. Cloud & AI infrastructure (CLOUD / AI) | 1 | 0 | 1 | 2 | — | — | -| X. Cross-cutting behaviours (BEHAV) | 23 | 6 | 1 | 1 | 8/8 (100%) | 7/10 (70%) | +| X. Cross-cutting behaviours (BEHAV) | 25 | 6 | 1 | 1 | 8/8 (100%) | 9/12 (75%) | | Y. Menus | 85 | 0 | 4 | 8 | 47/47 (100%) | 23/23 (100%) | | Z. Keyboard shortcuts (desktop) | 78 | 4 | 2 | 1 | 49/52 (94%) | 24/26 (92%) | | Lightroom Classic extras | 41 | 25 | 21 | 8 | — | 24/26 (92%) | @@ -139,7 +139,7 @@ differences and missing bindings are in [ui-parity.md](ui-parity.md#shortcuts). | LR-VIEW-SLIDESHOW | Slideshow | P2 | ✅ | `cmd:view.slideshow` | View ▸ Slideshow (⌥⌘↩): the photos in view full screen from the selected one, played with the library's playback settings (see LRC-SS-PLAYBACK: fades, random order, repeat, previews prepared ahead; `interval` / any setting overrides one run); Space pauses, ←/→ step (a cut), Esc ends; playback controls on pointer movement | | LR-VIEW-SECONDWINDOW | Second display window [Classic] | P2 | ✅ | `cmd:view.secondWindow`, `crates/ui-egui/src/panels/second.rs` | Window ▸ Second Window (⌘F11): the active photo fitted in its own native window with its own render (a floating panel where there are no native windows); loupe view only (no grid / compare / survey there) | | LR-VIEW-CLIPPING | Clipping indicators | P0 | ✅ | `cmd:view.clipping` | | -| LR-VIEW-HISTOGRAM | Histogram | P0 | ✅ | `cmd:view.histogram`, `crates/ui-egui/src/panels/edit/histogram.rs`, `crates/ui-egui/src/panels/right.rs`, `crates/pipeline/src/lib.rs` (`hdr_histogram`) | stays at the top of the Edit panel while its sliders scroll under it (issue #2679, `the_histogram_stays_in_view_while_the_sliders_scroll`); HDR edits: SDR on the left half, the HDR range (0 to 5 stops above SDR white, a fixed scale) on the right with the headroom limit marked; colour bar (white, or Visualize HDR range's colours when that is on) and SDR / HDR labels; the plot's five tonal zones also drag to adjust their Basic control (LRC-DEV-HISTOGRAM-DRAG); it follows slider drags of an HDR edit live (a small render beside the drafts, `Slot::HdrHistogram`) and never drops to the SDR layout mid-drag; an edit with HDR switched off keeps its SDR histogram while it is dragged (#2819); the shadow and highlight clipping buttons at its top corners are the theme's raised fill with a chevron that stands 3:1 on it in every theme and state | +| LR-VIEW-HISTOGRAM | Histogram | P0 | ✅ | `cmd:view.histogram`, `crates/ui-egui/src/panels/edit/histogram.rs`, `crates/ui-egui/src/panels/right.rs`, `crates/pipeline/src/lib.rs` (`hdr_histogram`) | stays at the top of the right-hand panel while its content scrolls, in Edit, Profiles, Crop, Remove, Masking and Red Eye (issue #2679, `the_histogram_stays_in_view_while_the_sliders_scroll`; LR-UI-TOOL-ROW); HDR edits: SDR on the left half, the HDR range (0 to 5 stops above SDR white, a fixed scale) on the right with the headroom limit marked; colour bar (white, or Visualize HDR range's colours when that is on) and SDR / HDR labels; the plot's five tonal zones also drag to adjust their Basic control (LRC-DEV-HISTOGRAM-DRAG); it follows slider drags of an HDR edit live (a small render beside the drafts, `Slot::HdrHistogram`) and never drops to the SDR layout mid-drag; an edit with HDR switched off keeps its SDR histogram while it is dragged (#2819); the shadow and highlight clipping buttons at its top corners are the theme's raised fill with a chevron that stands 3:1 on it in every theme and state | | LR-VIEW-HDR-DISPLAY | HDR display output | P2 | ⬜ | |, `apps/lightcraft/src/hdr_display.rs` (`choose`, `preferred_hdr_format`) | SDR/HDR decision (platform, surface format, OS headroom, `LIGHTCRAFT_HDR_DISPLAY=0`) is unit-tested and logged at start; always SDR today because eframe configures an 8-bit surface; no OS headroom query yet; | ## D. Search & filter (FILT) @@ -289,7 +289,7 @@ differences and missing bindings are in [ui-parity.md](ui-parity.md#shortcuts). | Id | Feature | Tier | Status | Evidence | Missing / notes | |---|---|---|---|---|---| -| LR-MASK-PANEL | Masks panel | P0 | ✅ | `cmd:panel.masking`, `cmd:mask.add`, `cmd:mask.select`, `cmd:mask.rename`, `cmd:mask.duplicate` (`invert`), `cmd:mask.move`, `cmd:mask.visible`, `cmd:mask.delete`, `crates/ui-egui/src/panels/masking.rs` | list with per-mask show/hide eye, double-click rename, right-click menu (duplicate, duplicate and invert, invert, hide, move up/down, rename, delete); fits any panel width (create tiles go to three columns, mask actions wrap, long component names are cut short); no drag-to-reorder | +| LR-MASK-PANEL | Masks panel | P0 | ✅ | `cmd:panel.masking`, `cmd:mask.add`, `cmd:mask.select`, `cmd:mask.rename`, `cmd:mask.duplicate` (`invert`), `cmd:mask.move`, `cmd:mask.visible`, `cmd:mask.delete`, `crates/ui-egui/src/panels/masking.rs` | list with per-mask show/hide eye, double-click rename, right-click menu (duplicate, duplicate and invert, invert, hide, move up/down, rename, delete); fits any panel width (create tiles go to three columns, mask actions wrap, long component names are cut short); no drag-to-reorder; the mask's sliders sit in folding Tone / Color / Effects / Details sections (`crates/ui-egui/src/panels/masking.rs`, `MASK_GROUPS`; test `the_mask_sliders_sit_in_sections`), with Refine Edges above the effect picker and Amount | | LR-MASK-SUBJECT | Select subject | P2 | 🟡 | `cmd:mask.add` (`subject`), `crates/pipeline/src/masks.rs` | saliency heuristic, no segmentation model; a photo that carries person mattes (DNG semantic masks: iPhone ProRAW portrait / skin / hair / teeth / glasses mattes) uses them instead (synthetic files only: no corpus file carries person mattes) | | LR-MASK-SKY | Select sky | P2 | 🟡 | `cmd:mask.add` (`sky`), `crates/pipeline/src/masks.rs` (`Mattes`), `crates/raw/src/semantic.rs` | heuristic; a photo that carries a sky matte (DNG semantic mask, e.g. iPhone ProRAW) uses it instead, through orientation / crop / lens corrections, preview = export (checked on one CC0 iPhone 12 Pro ProRAW and synthetic files) | | LR-MASK-BACKGROUND | Select background | P2 | 🟡 | `cmd:mask.add` (`background`) | inverse of the subject mask (heuristic, or the photo's person mattes) | @@ -474,7 +474,9 @@ differences and missing bindings are in [ui-parity.md](ui-parity.md#shortcuts). | LR-BEHAV-SIDEBAR-HIDE | Show and hide left-sidebar sections | P2 | ✅ | `cmd:view.sidebarSection`, `cmd:view.sidebarReset`, `crates/ui-egui/src/sidebar.rs`, `crates/ui-egui/src/panels/left.rs` (`sections_menu`), `crates/ui-egui/src/menus/menubar.rs`, `crates/ui-egui/src/tests/panels.rs` | View ▸ Sidebar Sections lists Albums, Local, By Date, Folders and Keywords in the sidebar's order, each checked while shown; unchecking one takes its header and rows off the sidebar, checking it puts it back where and how it was (still folded if it was). The same list opens with a right-click on any section header (with Hide This Section first; widgets `sidebarMenu:hide`, `sidebarMenu:section:`, `sidebarMenu:reset`) and on the My Photos title (`sidebarTitle`), which is always there, so hidden sections can always come back. Reset Sidebar Sections (enabled once something changed) shows and opens every section in the usual order. `view.sidebarSection` `{section, show?, collapsed?}` flips shown / hidden when neither flag is given and refuses an unknown section or a flag that is not true / false. Hiding the section of what the grid shows (an album, a keyword filter) leaves the grid as it is; an album made while Albums is hidden or folded brings Albums back, open. Kept with the UI state (`sidebar`). My Photos itself can't be hidden | | LR-BEHAV-SIDEBAR-REORDER | Reorder left-sidebar sections | P2 | ✅ | `cmd:view.sidebarMoveSection`, `crates/ui-egui/src/sidebar.rs` (`move_before`, `move_by`), `crates/ui-egui/src/panels/left.rs` (`section_drag`, `section_drop_before`, `section_drag_feedback`), `crates/ui-egui/src/tests/panels.rs` | drag a section by its header: its name follows the pointer, a line (`sidebarSectionDrop`) shows the gap it would go to (above the section whose upper half the pointer is over, or below the last), releasing over the sidebar moves it there, Esc or releasing elsewhere leaves it; the sidebar scrolls when the drag nears its top or bottom edge, also over a pinned header (a section picked up by the pinned header scrolls once the pointer has left it). A press on a header's button is never a section drag. A click on the header still folds the section, and an album dragged onto the Albums header is still an album drag. The header's menu has Move Up / Move Down (`sidebarMenu:moveUp` / `moveDown`), one shown section at a time, stepping over hidden ones, disabled at the ends. `view.sidebarMoveSection` `{section, direction: up\|down}` or `{section, before:
\|null}` (null: last) answers `{moved, order}`. The order is kept with the UI state (`sidebar`). Recently Deleted is listed with My Photos (below Picks / Missing Photos), not after the sections. Not here: dragging My Photos, or rows from one section into another | | LR-BEHAV-SIDEBAR-STICKY | Pinned section header and section look | P2 | ✅ | `crates/ui-egui/src/panels/left.rs` (`pinned_header`, `section_header`, `empty_hint`), `crates/ui-egui/src/tests/panels.rs` | while the rows of an open section are in view but its header has scrolled away, a copy of the header (`sidebarSectionPinned:`, with the section's buttons and menu) stays at the top of the sidebar; the next section's header pushes it out; folding from it brings the section's own header into view. Rows scrolled beneath the pinned header are covered by it: an album or photos dropped on the pinned Albums header go to the top level / nowhere, never to the row under it; folding from it keeps the sideways scroll. Sections are told apart by a hairline in the gap above each; the fold chevron sits in the gutter, in the column of the rows' triangles (`sidebarSectionChevron:`); a header highlights under the pointer; a folded section shows how many top-level rows it holds (`sidebarSectionCount:`, with View ▸ Photo Counts); a count of 0 is fainter. Not here: a height of its own per section (one scroll area serves the whole sidebar), a count for Recently Added, Local's Browse Folder… as a header button | -| LR-BEHAV-PANEL-RESIZE | Resizable side panels | P1 | ✅ | `crates/ui-egui/src/panels.rs` (`resizable_side`), `crates/ui-egui/src/state.rs` (`LEFT_WIDTH`, `RIGHT_WIDTH`), `crates/ui-egui/src/tests/panels.rs` | drag the left sidebar's right edge (200–480 pt) or the right panel's left edge (250–520 pt); the photo area keeps ≥ 360 pt; widths are kept across panels, views and restarts (`leftWidth` / `rightWidth` in the UI state); the Presets column stays fixed | +| LR-BEHAV-PANEL-RESIZE | Resizable side panels | P1 | ✅ | `crates/ui-egui/src/panels.rs` (`resizable_side`), `crates/ui-egui/src/state.rs` (`LEFT_WIDTH`, `RIGHT_WIDTH`), `crates/ui-egui/src/tests/panels.rs` | drag the left sidebar's right edge (200–480 pt) or the right panel's left edge (250–520 pt); the photo area keeps ≥ 360 pt; widths are kept across panels, views and restarts (`leftWidth` / `rightWidth` in the UI state); the Presets column stays fixed; the right panel is 318 pt wide by default | +| LR-UI-DENSE-ROWS | Dense one-line slider rows | P1 | ✅ | `crates/ui-egui/src/widgets.rs` (`slider`, `row_parts`, `name_column`, `section_header`, `paint_section_band`), `crates/ui-egui/src/theme.rs` (`slider_row_h`, `section_h`, `RADIUS`, `RADIUS_PANEL`), `crates/ui-egui/src/panels/edit/sliders.rs` (`short_name`, `sub_title`), `crates/ui-egui/src/panels/right.rs` (`compact_style`), `crates/ui-egui/src/widgets/tests_dense_row.rs` | as in Lightroom Classic, each slider is one 20 pt row: the name right-aligned in a column fitted to the longest name of its section (at most 40 % of the row), a long track, then the value; a flyout (Color Grading, Color Mixer, Point Color, Curve, Defringe) fits its own column, so opening or closing it never moves the tracks around it (`slider_group`; `crates/ui-egui/src/tests/slider_columns.rs`); double-click the name to reset, drag the name to scrub, click the value to type, arrow keys and the wheel nudge a hovered or clicked row; major section headers sit on a band, sub-sections (Sharpening, Profile, Purple / Green fringe) are quieter captions with a hairline; corner radii are 2 / 3 pt; the Light..Detail sections stand half as tall as with two-line sliders (2068 → 1048 pt) and twice as many sliders are in view; the track shares its line with the name: 52 % of a 270 pt panel, 59 % (188.5 pt) of the 318 pt default panel (LR-UI-TOOL-ROW; Lightroom Classic ≈ 58 %). There is no Compact / Standard setting: the dense layout is the only one | +| LR-UI-TOOL-ROW | Tools in a row under the histogram | P1 | ✅ | `crates/ui-egui/src/panels/strip.rs` (`row`, `show`), `crates/ui-egui/src/panels/right.rs` (`show`), `crates/ui-egui/src/app/frame.rs`, `crates/ui-egui/src/state/view.rs` (`RIGHT_WIDTH`), `crates/ui-egui/src/tests/tool_row.rs` | as in Lightroom Classic, Edit, Crop, Remove, Masking and the other tools stand in one horizontal row at the top of the right-hand panel, under the histogram (Red Eye and About in its "…" menu), instead of a vertical strip beside the panel; the histogram and the row stay fixed while the panel's content scrolls under them; while the panel is closed, the vertical strip at the window's edge is still there to open it again; the panel is 318 pt wide by default (the 270 it had plus the strip's 48), so the photo keeps the same room and the slider tracks grow to about 59 % of the panel | | LR-BEHAV-EMPTY-STATES | Empty states | P1 | ✅ | `crates/ui-egui/src/panels.rs` (`empty_message`, `empty_state`), `crates/ui-egui/src/panels/empty_library.rs`, `cmd:file.addPhotos`, `cmd:file.importLightroom`, `crates/ui-egui/src/tests/empty_library.rs` | each view says why it is empty (no photo selected, filters, an empty folder). A library with no photos (none, or only deleted or browsed ones) opens on the Photo Grid (Square Grid stays) with the sidebar, and the grid and Detail view (not while a folder is browsed under Local) offer Import Photos… (primary) and Import Lightroom Catalog… (desktop) as buttons, with a line saying photos and folders can be dropped into the window and the key Import Photos… is bound to now; the right-hand panel says to import photos first. The top bar has an Import button beside Export in every library. Files dragged over the window dim it and a card says what dropping will do; a drop of photos or folders opens the same import review as File ▸ Import | | LR-BEHAV-TOOLTIPS | Tooltips with shortcuts | P0 | ✅ | `crates/ui-egui/src/panels/bottombar.rs` | | | LR-BEHAV-TEXTFIELD | Text fields behave alike | P1 | 🟡 | `crates/ui-egui/src/widgets/text_field.rs`, `crates/ui-egui/src/panels/topbar.rs`, `crates/ui-egui/src/widgets.rs`, `crates/ui-egui/src/panels/right.rs` (`meta_field`), `crates/ui-egui/src/dialogs.rs`, `crates/ui-egui/src/panels/unnamed.rs` | one shared field: right-click Cut / Copy / Paste / Select All (no Paste in the browser), Esc gives back the text from before the edit, Return / leaving / Esc reported to the caller, optional select-on-focus; agents use `ui.clipboard` (MCP `clipboard`) and `ui.inspect` → `copied`. Used by Search Photos, slider values, the Info panel's metadata fields (multi-line captions), the one-field dialogs (New / Rename Album, New Smart Album, Rename / Merge Keywords, text prompts) and the unnamed faces' name field so far; the other text fields (most dialogs, import, settings, masking, keywords …) still use egui's own and have no menu | @@ -799,6 +801,8 @@ Latin stays upright. Advanced Japanese composition remains open. Regression cove | Date | Change | Summary | |---|---|---| +| 2026-10-27 | minor | LR-UI-TOOL-ROW (new, ✅): the tools are a row under the histogram, which stays above the scrolling panel; the right panel is 318 pt by default (LR-VIEW-HISTOGRAM, LR-BEHAV-PANEL-RESIZE notes) | +| 2026-10-27 | minor | LR-UI-DENSE-ROWS (new, ✅): one-line 20 pt slider rows with a fitted, right-aligned name column, banded section headers, quieter sub-sections, 2 / 3 pt corners; LR-MASK-PANEL: mask sliders in Tone / Color / Effects / Details sections, Refine Edges above the effect | | 2026-10-30 | patch | LR-BEHAV-ACCESS: the Flatpak manifests grant `--talk-name=org.a11y.Bus`, so AccessKit can find out whether a screen reader is running and publish the window inside the sandbox; packaging lint requires it in both manifests; status unchanged (🟡), not tried with Orca | | 2026-10-27 | patch | LR-LIB-LABEL, MENU-PHOTO-LABEL, KEY-LABELS: Clear Color Label (`photo.clearLabel`) is a command of its own, so Help → Keyboard Shortcuts can give it a key (#2980); the Photo ▸ Set Color Label ▸ None row runs it; status unchanged | | 2026-10-25 | minor | KEYC-METADATA, LRC-LIB-KEYWORDS: ⌘⌥⇧K / Ctrl+Alt+Shift+K (`dialog.keywordShortcut`, Set Keyword Shortcut) and ⇧K (`keyword.toggleShortcut`) add and remove the keyword shortcut's keywords; Keyword Shortcut leaves LRC-LIB-KEYWORDS' Not yet list; status counts unchanged (KEYC-METADATA stays 🟡) |