diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md
index d216a96d..9936c0bf 100644
--- a/docs/ARCHITECTURE.md
+++ b/docs/ARCHITECTURE.md
@@ -12,7 +12,7 @@ Companion to `docs/BRIEF.md` (scope, behaviour) and `docs/ui/DESIGN.md` (looks).
| `src/Titano.Data` | net10.0 | `IDatabase`, SQLite binding, PostgreSQL wire client, migrations, repositories, the job engine, the archive engine (`Archiving`), the analysis/render engine (`Processing`) and the client sync engine (`Sync`) |
| `src/Titano.Protocol` | net10.0 | API v1 DTOs, source-generated JSON context, typed `TitanoClient` with certificate pinning and bandwidth limiting |
| `src/Titano.Server` | net10.0 (Web SDK) | ASP.NET Core minimal API, auth, uploads, sync, jobs, render nodes, events, embedded admin panel, Windows service host |
-| `src/Titano.Ui` | net10.0-windows (WPF) | Theme (DESIGN tokens), icons, standard and custom controls, visuals (charts, filmstrip, preview, curve editor, virtualizing grid), `Loc` markup extension, MVVM helpers |
+| `src/Titano.Ui` | net10.0-windows (WPF) | Theme (DESIGN tokens), icons, standard and custom controls, visuals (charts, filmstrip, preview, curve editor, virtualizing grid), `Loc` markup extension, MVVM helpers, notification-area icon |
| `src/Titano.App` | WPF exe `Titano.exe` | Desktop client |
| `src/Titano.Uploader` | WPF exe | Uploader (tray, watch folders, resumable queue) |
| `src/Titano.Setup` | WPF exe | In-house installer/uninstaller (TPK1 payload) |
@@ -64,14 +64,14 @@ Dependencies point one way: `Core` ← `Core.Windows`, `Data`, `Protocol` ← `S
| Folder | Content |
|---|---|
-| `Shell` | `MainWindow`, `ShellViewModel` (rail, sections, first run), dialogs, `ErrorText` (the sentence of an error toast), `ScreenCapture` (`--capture` scenes), `SectionTemplates.xaml` (view model → view) |
+| `Shell` | `MainWindow` (rail and its shortcuts, taskbar progress), `ShellViewModel` (rail, sections, first run), `OsNotifications` (toasts as Windows notifications while the window is minimised or in the background), dialogs, `ErrorText` (the sentence of an error toast), `ScreenCapture` (`--capture` scenes), `SectionTemplates.xaml` (view model → view) |
| `Sections` | One `XxxView.xaml` + `XxxViewModel` per screen: Welcome, Library, Sequence (editor), Import, Archive, Jobs, Server, Settings, About |
| `Library` | Filter, facets, pager, timeline, saved views, quick and mass actions, remote cards and thumbnails, thumbnail cache, list export |
| `Editor` | `EditorSession` (project, undo/redo, saving, merges), `ISequenceSource` (`LocalSequenceSource`, `RemoteSequenceSource`), tabs (Frames, Exposure, Camera, Motion, Export), `PreviewRenderer`, `ExportPlanner`, `ExportSync`, `SavedCopies`, `SequenceJobs` |
| `Import` | `CardPool` (inserted cards, remembered cards, folders), camera profiles, plans and choices, destinations (archive, folder, server through `ServerImportSink`), card actions (verified delete, format, eject) |
| `Archive` | `CurrentArchive`, `ArchiveTree`, figures for the charts, maintenance reports, mass rename and move, delete and trash dialogs (`SequenceDeletion`, `DeletePlans`), `ArchiveFailures` |
| `Server` | `ServerSession`, `ConnectFlow` (trust on first use), `SyncHost` (sync engine, agent, metered hold, editor connections, Export Sync), sync table, `RemoteSequenceApi` |
-| `Jobs`, `Settings`, `About` | Job list and buffering; settings rows, encoder inventory, language catalog, naming preview; update check and download |
+| `Jobs`, `Settings`, `About` | Job list and buffering, `JobNotices` (which job endings raise a toast); settings rows, encoder inventory, language catalog, naming preview; update check and download |
| `Infrastructure` | `AppServices` (composition root), `AppSettings`, `AppEnvironment` (installed or portable), `UiLanguage`, `LiveRegion`, `RenderNodeHost`, `DiagnosticsBundle`, `ShellActions` (BRIEF §8.6), device monitor |
| `DesignTime` | `SampleData`: the archive, jobs and server the screenshots and smoke tests run on |
@@ -81,6 +81,7 @@ Dependencies point one way: `Core` ← `Core.Windows`, `Data`, `Protocol` ← `S
|---|---|
| `Ui/Themes`, `Ui/Theming` | DESIGN tokens (light, dark), typography, control styles, `ThemeManager` |
| `Ui/Controls` | `TitanoWindow` (chrome, language direction), `NavRail`, `JobBar`, `ToastHost`, `Field` (placeholder, icon, error), `Chip`, `AutoSlider`, `StatusGlyph`, `EmptyState`, `Icon`, `Bidi` (right-to-left rules) |
+| `Ui/Interop` | DWM calls of the window chrome; `TrayIcon` (`Shell_NotifyIconW`: the Uploader's tray, the client's Windows notifications) |
| `Ui/Visuals` | `DrawingElement` (hover readout, item keyboard and activation) and its charts (`BarChart`, `SeriesChart`, `StackedBar`, `HeatmapStrip`, `TimelineBands`), `Filmstrip`, `PreviewViewport`, `CurveEditor`, `SequenceCard`, `VirtualizingWrapPanel`, `SegmentedControl`, `SplitButton` |
| `Server/Api`, `Server/Events` | Endpoint groups (`XxxEndpoints.Map`), API errors, the WebSocket `EventHub` |
| `Server/Security` | Accounts, password hashing, tokens, session cookies, login guard, access rules, audit log |
diff --git a/i18n/ar/Tooltips.ar.resx b/i18n/ar/Tooltips.ar.resx
index 10859068..aa92a334 100644
--- a/i18n/ar/Tooltips.ar.resx
+++ b/i18n/ar/Tooltips.ar.resx
@@ -200,7 +200,6 @@
جلب النسخ الوكيلة مجددًا وإعادة فتح التسلسل؛ ويُظهر شريط المهام الجارية التنزيلإيقاف مؤقت · مفتاح المسافةتشغيل الإطارات · مفتاح المسافة؛ ومفاتيح الأسهم تنتقل إطارًا واحدًا
- إظهار البكسلات بنسبة 1:1 دون استيفاء · Ctrl+1؛ Ctrl+0 للملاءمةتشغيل عشر ثوانٍ من إطارات الفيديو بالإعدادات الحاليةمقارنة بخط فاصل: الأصلي على اليسار والمصحَّح على اليمين؛ اسحب الخطتعتيم ما يقتطعه الإخراج (ما سأفقده)
@@ -564,7 +563,6 @@
فتح مجلد البيانات في مستكشف الملفاتالوضع المحمول، والسجلات، والتشخيص، والنسخ الاحتياطي لقاعدة البياناتمجلد الأرشيف، وقوالب التسمية، وحجم النسخ الوكيلة
- اللغة، والسمة، وإحصاءات الاستخدامملف تعريف الجودة، وميزانية الذاكرة، والتوازي، والمرمّزاتالخادم الافتراضي، وعقدة التصيير، والشهادات الموثوقةمجلد التخزين المؤقت، والصور المصغرة في الذاكرة، وحد التخزين المؤقت
diff --git a/i18n/bg/Tooltips.bg.resx b/i18n/bg/Tooltips.bg.resx
index 0ef46b4f..832edc23 100644
--- a/i18n/bg/Tooltips.bg.resx
+++ b/i18n/bg/Tooltips.bg.resx
@@ -198,7 +198,6 @@
Изтегля отново прокси файловете и отваря серията наново; лентата с текущите задачи показва изтеглянетоПауза · ИнтервалВъзпроизвежда кадрите · Интервал; стрелките преместват с един кадър
- Показва пикселите 1:1 без интерполация · Ctrl+1; Ctrl+0 побира в прозорецаВъзпроизвежда десет секунди от кадрите на видеото с текущите настройкиСравнение с плъзгаща се линия: оригиналът е отляво, коригираният – отдясно; плъзнете линиятаЗатъмнява това, което изходът изрязва (какво губя)
@@ -534,7 +533,6 @@
Отваря папката с данни във файловия мениджърПреносим режим, журнали, диагностика, резервно копие на базата данниПапка на архива, шаблони за имена, размер на прокси
- Език, тема, статистика за използванеПрофил на качеството, бюджет на паметта, паралелизъм, кодериСървър по подразбиране, възел за рендериране, доверени сертификатиПапка на кеша, миниатюри в паметта, лимит на кеша
diff --git a/i18n/cs/Tooltips.cs.resx b/i18n/cs/Tooltips.cs.resx
index db55e6d4..da9ed4c9 100644
--- a/i18n/cs/Tooltips.cs.resx
+++ b/i18n/cs/Tooltips.cs.resx
@@ -199,7 +199,6 @@
Znovu stáhne proxy a znovu otevře sekvenci; stahování je vidět na panelu úlohPozastaví přehrávání · MezerníkPřehraje snímky · Mezerník; šipky posunou o jeden snímek
- Zobrazí pixely v poměru 1:1 bez interpolace · Ctrl+1; Ctrl+0 přizpůsobí oknuPřehraje deset sekund snímků videa s aktuálním nastavenímPorovnání s předělem: originál vlevo, opravený obraz vpravo; táhněte dělicí čáruZtmaví, co výstup odřízne (co ztratím)
@@ -549,7 +548,6 @@
Otevře datovou složku v PrůzkumníkoviPřenosný režim, protokoly, diagnostika, záloha databázeSložka archivu, šablony pojmenování, velikost proxy
- Jazyk, motiv, statistiky používáníProfil kvality, limit paměti, paralelismus, kodéryVýchozí server, renderovací uzel, důvěryhodné certifikátySložka mezipaměti, miniatury v paměti, limit mezipaměti
diff --git a/i18n/da/Tooltips.da.resx b/i18n/da/Tooltips.da.resx
index c8e8a66c..17ce9343 100644
--- a/i18n/da/Tooltips.da.resx
+++ b/i18n/da/Tooltips.da.resx
@@ -198,7 +198,6 @@
Hent proxyerne igen, og genåbn sekvensen; jobbjælken viser downloadenPause · MellemrumAfspil billederne · Mellemrum; piletasterne går ét billede ad gangen
- Vis pixel i 1:1 uden interpolation · Ctrl+1; Ctrl+0 tilpasserAfspil ti sekunder af videoens billeder med de aktuelle indstillingerSammenligning med skillelinje: original til venstre, korrigeret til højre; træk i linjenDæmp det, som outputtet skærer væk (hvad jeg mister)
@@ -534,7 +533,6 @@
Åbn datamappen i StifinderPortabel tilstand, logge, diagnosticering, sikkerhedskopi af databasenArkivmappe, navngivningsskabeloner, proxystørrelse
- Sprog, tema, brugsstatistikKvalitetsprofil, hukommelsesbudget, parallelitet, encodereStandardserver, renderingsnode, betroede certifikaterCachemappe, miniaturer i hukommelsen, cachegrænse
diff --git a/i18n/de/Tooltips.de.resx b/i18n/de/Tooltips.de.resx
index 0b4e4b6a..8904d510 100644
--- a/i18n/de/Tooltips.de.resx
+++ b/i18n/de/Tooltips.de.resx
@@ -198,7 +198,6 @@
Proxys erneut abrufen und die Sequenz neu öffnen; die Auftragsleiste zeigt den DownloadAnhalten · LeertasteFrames abspielen · Leertaste; Pfeiltasten gehen einen Frame weiter
- Pixel 1:1 ohne Interpolation anzeigen · Ctrl+1; Ctrl+0 passt einZehn Sekunden der Videoframes mit den aktuellen Einstellungen abspielenWischvergleich: Original links, korrigiert rechts; ziehen Sie die LinieAbdunkeln, was die Ausgabe abschneidet (was verloren geht)
@@ -534,7 +533,6 @@
Datenordner im Explorer öffnenPortabler Modus, Protokolle, Diagnose, DatenbanksicherungArchivordner, Namensvorlagen, Proxygröße
- Sprache, Design, NutzungsstatistikQualitätsprofil, Arbeitsspeicher-Budget, Parallelität, EncoderStandardserver, Render-Knoten, vertrauenswürdige ZertifikateCache-Ordner, Miniaturansichten im Arbeitsspeicher, Cache-Limit
diff --git a/i18n/el/Tooltips.el.resx b/i18n/el/Tooltips.el.resx
index 9c5f659f..f7038381 100644
--- a/i18n/el/Tooltips.el.resx
+++ b/i18n/el/Tooltips.el.resx
@@ -198,7 +198,6 @@
Νέα λήψη των proxy και νέο άνοιγμα της ακολουθίας. Η γραμμή προόδου εργασιών δείχνει τη λήψηΠαύση · πλήκτρο διαστήματοςΑναπαραγωγή των καρέ · πλήκτρο διαστήματος. Τα βέλη μετακινούν κατά ένα καρέ
- Εμφάνιση των pixel σε 1:1 χωρίς παρεμβολή · Ctrl+1. Με Ctrl+0 προσαρμόζεται στο παράθυροΑναπαραγωγή δέκα δευτερολέπτων από τα καρέ του βίντεο με τις τρέχουσες ρυθμίσειςΣύγκριση με διαχωριστική γραμμή: το πρωτότυπο αριστερά, το διορθωμένο δεξιά. Σύρετε τη γραμμήΣκίαση όσων αποκόπτει η έξοδος (τι χάνεται)
@@ -534,7 +533,6 @@
Άνοιγμα του φακέλου δεδομένων στην Εξερεύνηση αρχείωνΦορητή λειτουργία, αρχεία καταγραφής, διαγνωστικά, αντίγραφο ασφαλείας της βάσης δεδομένωνΦάκελος αρχειοθήκης, πρότυπα ονοματοδοσίας, μέγεθος proxy
- Γλώσσα, θέμα, στατιστικά χρήσηςΠροφίλ ποιότητας, όριο μνήμης, παραλληλισμός, κωδικοποιητέςΠροεπιλεγμένος διακομιστής, κόμβος απόδοσης, αξιόπιστα πιστοποιητικάΦάκελος κρυφής μνήμης, μικρογραφίες στη μνήμη, όριο κρυφής μνήμης
diff --git a/i18n/en/Settings.resx b/i18n/en/Settings.resx
index 0447eb74..b59cf4ca 100644
--- a/i18n/en/Settings.resx
+++ b/i18n/en/Settings.resx
@@ -31,6 +31,10 @@
Export the settings toCheck on startLanguage
+ Notifications
+ Windows notifications
+ Start with Windows
+ StartupThemeDarkLight
diff --git a/i18n/en/Shell.resx b/i18n/en/Shell.resx
index 0adc9e09..40ec77a9 100644
--- a/i18n/en/Shell.resx
+++ b/i18n/en/Shell.resx
@@ -5,6 +5,8 @@
System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089Titanoinvariant
+ Job finished
+ Job failedReadyPause jobReady · {0} jobs queued
@@ -29,6 +31,7 @@
{0:N0} photos{0:N0} sequence{0:N0} sequences
+ Show TitanoAdopt an existing folderChange…Choose…
diff --git a/i18n/en/Tooltips.resx b/i18n/en/Tooltips.resx
index 915ab73b..d64b113c 100644
--- a/i18n/en/Tooltips.resx
+++ b/i18n/en/Tooltips.resx
@@ -198,7 +198,6 @@
Fetch the proxies again and reopen the sequence; the job bar shows the downloadPause · SpacePlay the frames · Space; arrows step one frame
- Show pixels at 1:1 without interpolation · Ctrl+1; Ctrl+0 fitsPlay ten seconds of the video’s frames with the current settingsWipe compare: original on the left, corrected on the right; drag the lineDim what the output cuts (what I lose)
@@ -206,6 +205,7 @@
Hide what the output cuts (how it will look)Close full screen · EscFull screen at native resolution · Esc closes
+ Show pixels at 1:1 without interpolation · Ctrl+Shift+1; Ctrl+0 fitsShow the sky and landscape boundary used by region deflickerShow or hide the shot dataOverlay the motion to the next frame measured by the engine
@@ -532,9 +532,10 @@
Auto: a quarter of installed memoryBack to Auto: a quarter of installed memoryOpen the data folder in Explorer
+ While Titano is minimised or in the background, inserted cards, finished jobs and server messages also appear as Windows notificationsPortable mode, logs, diagnostics, database backupArchive folder, naming templates, proxy size
- Language, theme, usage counts
+ Language, theme, startup, notificationsQuality profile, memory budget, parallelism, encodersDefault server, render node, trusted certificatesCache folder, thumbnails in memory, cache limit
@@ -554,6 +555,7 @@
Encode a short synthetic clip with every encoder and report pass or fail and speed · about a minuteSpeed on the synthetic 1280×720 test clipAlways the Microsoft software H.264 encoder; slower, identical everywhere
+ Start minimised when you sign in to Windows, so inserted cards are noticedDark interface (default)Light interfaceFollow the Windows app mode
diff --git a/i18n/es/Tooltips.es.resx b/i18n/es/Tooltips.es.resx
index 27e331e3..6a570b2b 100644
--- a/i18n/es/Tooltips.es.resx
+++ b/i18n/es/Tooltips.es.resx
@@ -198,7 +198,6 @@
Vuelve a obtener los proxies y reabre la secuencia; la barra de tareas de Titano muestra la descargaPausa · EspacioReproduce los fotogramas · Espacio; las flechas avanzan de uno en uno
- Muestra los píxeles a 1:1 sin interpolación · Ctrl+1; Ctrl+0 ajusta a la ventanaReproduce diez segundos de fotogramas del vídeo con los ajustes actualesComparación con cortinilla: original a la izquierda, corregido a la derecha; arrastra la líneaAtenúa lo que corta la salida (lo que pierdo)
@@ -534,7 +533,6 @@
Abre la carpeta de datos en el ExploradorModo portátil, registros, diagnóstico, copia de seguridad de la base de datosCarpeta de la fototeca, plantillas de nombres, tamaño de proxy
- Idioma, tema, estadísticas de usoPerfil de calidad, memoria asignada, paralelismo, codificadoresServidor predeterminado, nodo de renderizado, certificados de confianzaCarpeta de caché, miniaturas en memoria, límite de caché
diff --git a/i18n/et/Tooltips.et.resx b/i18n/et/Tooltips.et.resx
index 04b68594..e97f8f6e 100644
--- a/i18n/et/Tooltips.et.resx
+++ b/i18n/et/Tooltips.et.resx
@@ -198,7 +198,6 @@
Hankige proksid uuesti ja avage jada taas; allalaadimist näitab tööde ribaPeatage · TühikEsitage kaadrid · Tühik; nooltega liigute kaadri kaupa
- Kuvage pikslid suhtes 1:1 ilma interpoleerimiseta · Ctrl+1; Ctrl+0 sobitabEsitage praeguste sätetega kümme sekundit video kaadreidLiugvõrdlus: originaal vasakul, korrigeeritud paremal; lohistage joontTumendage osa, mille väljund ära lõikab (mida ma kaotan)
@@ -534,7 +533,6 @@
Avage andmekaust failihaldurisKaasaskantav režiim, logid, diagnostika, andmebaasi varundamineArhiivikaust, nimemallid, proksi suurus
- Keel, kujundus, kasutusstatistikaKvaliteediprofiil, mälueelarve, paralleelsus, kodeerijadVaikeserver, renderdussõlm, usaldatud sertifikaadidVahemälu kaust, pisipildid mälus, vahemälu piirang
diff --git a/i18n/fi/Tooltips.fi.resx b/i18n/fi/Tooltips.fi.resx
index 86978775..ad0d6a6e 100644
--- a/i18n/fi/Tooltips.fi.resx
+++ b/i18n/fi/Tooltips.fi.resx
@@ -198,7 +198,6 @@
Hae proxyt uudelleen ja avaa sarja uudestaan; työpalkissa näkyy latausKeskeytä · VälilyöntiToista kuvat · Välilyönti; nuolinäppäimet siirtävät yhden kuvan kerrallaan
- Näytä pikselit suhteessa 1:1 ilman interpolointia · Ctrl+1; Ctrl+0 sovittaaToista kymmenen sekuntia videon kuvia nykyisillä asetuksillaPyyhkäisyvertailu: alkuperäinen vasemmalla, korjattu oikealla; vedä viivaaHimmennä se, minkä tuloste rajaa pois (mitä menetän)
@@ -534,7 +533,6 @@
Avaa datakansio ResurssienhallinnassaKannettava tila, lokit, diagnostiikka, tietokannan varmuuskopioArkistokansio, nimeämismallit, proxyn koko
- Kieli, teema, käyttötilastotLaatuprofiili, muistibudjetti, rinnakkaisuus, kooderitOletuspalvelin, renderöintisolmu, luotetut varmenteetVälimuistikansio, pikkukuvat muistissa, välimuistin raja
diff --git a/i18n/fr/Tooltips.fr.resx b/i18n/fr/Tooltips.fr.resx
index a7111ff0..c3943a0b 100644
--- a/i18n/fr/Tooltips.fr.resx
+++ b/i18n/fr/Tooltips.fr.resx
@@ -198,7 +198,6 @@
Récupérer de nouveau les proxys et rouvrir la séquence ; la barre de suivi des tâches affiche le téléchargementPause · EspaceLire les images · Espace ; les flèches avancent d'une image
- Afficher les pixels à 1:1 sans interpolation · Ctrl+1 ; Ctrl+0 ajuste à la fenêtreLire dix secondes des images de la vidéo avec les paramètres actuelsComparaison par volet : l'original à gauche, la version corrigée à droite ; faites glisser la ligneAssombrir ce que la sortie coupe (ce que je perds)
@@ -534,7 +533,6 @@
Ouvrir le dossier de données dans l'ExplorateurMode portable, journaux, diagnostic, sauvegarde de la base de donnéesDossier de l'archive, modèles de nommage, taille des proxys
- Langue, thème, statistiques d'utilisationProfil de qualité, budget mémoire, parallélisme, encodeursServeur par défaut, nœud de rendu, certificats approuvésDossier du cache, miniatures en mémoire, limite du cache
diff --git a/i18n/he/Tooltips.he.resx b/i18n/he/Tooltips.he.resx
index 1cd7bb78..eaa03db3 100644
--- a/i18n/he/Tooltips.he.resx
+++ b/i18n/he/Tooltips.he.resx
@@ -199,7 +199,6 @@
הורדה חוזרת של קובצי הפרוקסי ופתיחה מחדש של הרצף; סרגל המשימות מציג את ההורדההשהיה · רווחהפעלת הפריימים · רווח; מקשי החצים מזיזים פריים אחד בכל פעם
- הצגת הפיקסלים ב-1:1 ללא אינטרפולציה · Ctrl+1; Ctrl+0 מתאים לחלוןהפעלת עשר שניות מפריימי הסרטון עם ההגדרות הנוכחיותהשוואה במסך מפוצל: המקור משמאל, המתוקן מימין; יש לגרור את הקו המפרידהכהיית מה שהפלט חותך (מה שאאבד)
@@ -549,7 +548,6 @@
פתיחת תיקיית הנתונים בסייר הקבציםמצב נייד, יומנים, אבחון, גיבוי מסד הנתוניםתיקיית הארכיון, תבניות שמות, גודל פרוקסי
- שפה, ערכת נושא, נתוני שימושפרופיל איכות, תקציב זיכרון, מקביליות, מקודדיםשרת ברירת מחדל, צומת רינדור, תעודות מהימנותתיקיית מטמון, תמונות ממוזערות בזיכרון, מגבלת מטמון
diff --git a/i18n/hi/Tooltips.hi.resx b/i18n/hi/Tooltips.hi.resx
index 1ae67a9b..47b91e59 100644
--- a/i18n/hi/Tooltips.hi.resx
+++ b/i18n/hi/Tooltips.hi.resx
@@ -198,7 +198,6 @@
प्रॉक्सी फिर से प्राप्त करें और सीक्वेंस फिर से खोलें; कार्य बार डाउनलोड दिखाता हैविराम दें · Spaceफ़्रेम चलाएँ · Space; तीर एक-एक फ़्रेम आगे-पीछे करते हैं
- बिना इंटरपोलेशन के 1:1 पर पिक्सेल दिखाएँ · Ctrl+1; Ctrl+0 फ़िट करता हैवर्तमान सेटिंग्स के साथ वीडियो के दस सेकंड के फ़्रेम चलाएँवाइप तुलना: बाईं ओर मूल, दाईं ओर सुधारित; रेखा खींचेंआउटपुट जो काटता है उसे मंद करें (क्या खो जाएगा)
@@ -534,7 +533,6 @@
डेटा फ़ोल्डर को एक्सप्लोरर में खोलेंपोर्टेबल मोड, लॉग, निदान, डेटाबेस बैकअपसंग्रह फ़ोल्डर, नामकरण टेम्पलेट, प्रॉक्सी आकार
- भाषा, थीम, उपयोग गणनागुणवत्ता प्रोफ़ाइल, मेमोरी बजट, समानांतरता, एनकोडरडिफ़ॉल्ट सर्वर, रेंडर नोड, विश्वसनीय प्रमाणपत्रकैश फ़ोल्डर, मेमोरी में थंबनेल, कैश सीमा
diff --git a/i18n/hr/Tooltips.hr.resx b/i18n/hr/Tooltips.hr.resx
index aa4236ed..64a4fad5 100644
--- a/i18n/hr/Tooltips.hr.resx
+++ b/i18n/hr/Tooltips.hr.resx
@@ -199,7 +199,6 @@
Ponovno preuzima proxy kopije i ponovno otvara sekvencu; traka zadataka prikazuje preuzimanjePauzira · razmaknicaReproducira kadrove · razmaknica; strelice pomiču za jedan kadar
- Prikazuje piksele u omjeru 1:1 bez interpolacije · Ctrl+1; Ctrl+0 prilagođava prikazReproducira deset sekundi kadrova videozapisa s trenutačnim postavkamaUsporedba brisanjem: izvornik lijevo, korigirano desno; povucite crtuZatamnjuje ono što izlaz odrezuje (što gubim)
@@ -549,7 +548,6 @@
Otvara mapu s podacima u Eksploreru za datotekePrijenosni način, zapisnici, dijagnostika, sigurnosna kopija baze podatakaMapa arhive, predlošci naziva, veličina proxy kopija
- Jezik, tema, statistika korištenjaProfil kvalitete, dopuštena memorija, paralelizam, koderiZadani poslužitelj, čvor za renderiranje, pouzdani certifikatiMapa predmemorije, minijature u memoriji, ograničenje predmemorije
diff --git a/i18n/hu/Tooltips.hu.resx b/i18n/hu/Tooltips.hu.resx
index 4d71109e..5676b575 100644
--- a/i18n/hu/Tooltips.hu.resx
+++ b/i18n/hu/Tooltips.hu.resx
@@ -198,7 +198,6 @@
Újra lekéri a proxykat, és újra megnyitja a sorozatot; a letöltést a feladatsáv mutatjaSzüneteltetés · SzóközLejátssza a képkockákat · Szóköz; a nyilak egy képkockát léptetnek
- A képpontokat 1:1 arányban, interpoláció nélkül mutatja · Ctrl+1; Ctrl+0: igazítás az ablakhozLejátssza a videó tíz másodpercnyi képkockáját az aktuális beállításokkalOsztott összehasonlítás: balra az eredeti, jobbra a korrigált kép; húzza a vonalatElhalványítja, amit a kimenet levág (mi vész el)
@@ -534,7 +533,6 @@
Megnyitja az adatmappát a FájlkezelőbenHordozható mód, naplók, diagnosztika, adatbázis-mentésArchívummappa, elnevezési sablonok, proxyméret
- Nyelv, téma, használati statisztikaMinőségi profil, memóriakeret, párhuzamosság, kódolókAlapértelmezett szerver, renderelő csomópont, megbízható tanúsítványokGyorsítótár mappája, miniatűrök a memóriában, gyorsítótár korlátja
diff --git a/i18n/id/Tooltips.id.resx b/i18n/id/Tooltips.id.resx
index 5df3b565..4bf04252 100644
--- a/i18n/id/Tooltips.id.resx
+++ b/i18n/id/Tooltips.id.resx
@@ -198,7 +198,6 @@
Ambil lagi proksi dan buka ulang sekuens; bilah status tugas menampilkan unduhannyaJeda · SpasiPutar bingkai · Spasi; tombol panah berpindah satu bingkai
- Tampilkan piksel 1:1 tanpa interpolasi · Ctrl+1; Ctrl+0 menyesuaikan ukuranPutar sepuluh detik bingkai video dengan pengaturan saat iniPerbandingan geser: asli di kiri, dikoreksi di kanan; seret garisnyaRedupkan bagian yang terpangkas dari output (yang hilang)
@@ -534,7 +533,6 @@
Buka folder data di ExplorerMode portabel, log, diagnostik, cadangan basis dataFolder arsip, templat penamaan, ukuran proksi
- Bahasa, tema, hitungan penggunaanProfil kualitas, anggaran memori, paralelisme, encoderServer default, node render, sertifikat tepercayaFolder cache, gambar mini di memori, batas cache
diff --git a/i18n/it/Settings.it.resx b/i18n/it/Settings.it.resx
index d559b97b..8cbd4211 100644
--- a/i18n/it/Settings.it.resx
+++ b/i18n/it/Settings.it.resx
@@ -31,6 +31,10 @@
Esporta le impostazioni inControlla all'avvioLingua
+ Notifiche
+ Notifiche di Windows
+ Avvia con Windows
+ AvvioTemaScuroChiaro
diff --git a/i18n/it/Shell.it.resx b/i18n/it/Shell.it.resx
index d5b6e695..676f7569 100644
--- a/i18n/it/Shell.it.resx
+++ b/i18n/it/Shell.it.resx
@@ -4,6 +4,8 @@
2.0System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+ Attività completata
+ Attività non riuscitaProntoPausa attivitàPronto · {0} attività in coda
@@ -28,6 +30,7 @@
{0:N0} foto{0:N0} sequenza{0:N0} sequenze
+ Mostra TitanoAdotta una cartella esistenteCambia…Scegli…
diff --git a/i18n/it/Tooltips.it.resx b/i18n/it/Tooltips.it.resx
index 634fa3ca..ec1bc2b1 100644
--- a/i18n/it/Tooltips.it.resx
+++ b/i18n/it/Tooltips.it.resx
@@ -198,7 +198,6 @@
Scarica di nuovo i proxy e riapri la sequenza; la barra delle attività mostra lo scaricamentoPausa · SpazioRiproduce i fotogrammi · Spazio; le frecce avanzano di uno
- Mostra i pixel 1:1 senza interpolazione · Ctrl+1; Ctrl+0 adattaRiproduce dieci secondi dei fotogrammi del video con le impostazioni attualiConfronto a tendina: originale a sinistra, corretto a destra; trascina la lineaScurisce ciò che l’uscita taglia (cosa perdo)
@@ -206,6 +205,7 @@
Nasconde ciò che l’uscita taglia (come apparirà)Chiudi schermo intero · EscSchermo intero alla risoluzione nativa · Esc chiude
+ Mostra i pixel 1:1 senza interpolazione · Ctrl+Maiusc+1; Ctrl+0 adattaMostra il confine tra cielo e paesaggio usato dal deflicker per regioniMostra o nasconde i dati di scattoSovrappone il movimento verso il fotogramma successivo misurato dal motore
@@ -532,9 +532,10 @@
Auto: un quarto della memoria installataTorna ad Auto: un quarto della memoria installataApri la cartella dati in Esplora file
+ Quando Titano è ridotto a icona o in secondo piano, schede inserite, attività finite e messaggi del server compaiono anche come notifiche di WindowsModalità portatile, log, diagnostica, backup del databaseCartella dell'archivio, modelli dei nomi, dimensione dei proxy
- Lingua, tema, statistiche d'uso
+ Lingua, tema, avvio, notificheProfilo di qualità, memoria, parallelismo, encoderServer predefinito, nodo di rendering, certificati attendibiliCartella della cache, miniature in memoria, limite della cache
@@ -554,6 +555,7 @@
Codifica una breve clip sintetica con ogni encoder e ne riporta esito e velocità · circa un minutoVelocità sulla clip di prova sintetica 1280×720Sempre l'encoder software H.264 di Microsoft; più lento, identico ovunque
+ Avvia ridotto a icona all’accesso a Windows, così le schede inserite vengono notateInterfaccia scura (predefinita)Interfaccia chiaraSegui la modalità app di Windows
diff --git a/i18n/ja/Tooltips.ja.resx b/i18n/ja/Tooltips.ja.resx
index dd656290..260f459f 100644
--- a/i18n/ja/Tooltips.ja.resx
+++ b/i18n/ja/Tooltips.ja.resx
@@ -198,7 +198,6 @@
プロキシをもう一度取得して、シーケンスを開き直します。ダウンロードの状況はジョブバーに表示されます。一時停止 · Spaceフレームを再生 · Space、矢印キーで 1 フレームずつ移動
- 補間せずにピクセルを 1:1 で表示 · Ctrl+1、Ctrl+0 で全体表示現在の設定で、動画の 10 秒分のフレームを再生します。ワイプ比較: 左がオリジナル、右が補正後です。線をドラッグしてください。出力で切り取られる部分 (失われる部分) を暗く表示します。
@@ -534,7 +533,6 @@
エクスプローラーでデータフォルダーを開きます。ポータブルモード、ログ、診断、データベースのバックアップアーカイブフォルダー、名前のテンプレート、プロキシのサイズ
- 言語、テーマ、利用状況の集計品質プロファイル、メモリ割り当て、並列処理、エンコーダー既定のサーバー、レンダリングノード、信頼済みの証明書キャッシュフォルダー、メモリ内のサムネイル、キャッシュの上限
diff --git a/i18n/ko/Tooltips.ko.resx b/i18n/ko/Tooltips.ko.resx
index c15e022c..dfc25cfc 100644
--- a/i18n/ko/Tooltips.ko.resx
+++ b/i18n/ko/Tooltips.ko.resx
@@ -198,7 +198,6 @@
프록시를 다시 받고 시퀀스를 다시 엽니다. 다운로드 진행 상황은 작업 막대에 표시됩니다.일시 중지 · Space프레임을 재생합니다 · Space, 화살표 키로 한 프레임씩 이동
- 보간 없이 픽셀을 1:1로 표시합니다 · Ctrl+1, Ctrl+0으로 창에 맞춤현재 설정으로 영상 프레임 10초 분량을 재생합니다.와이프 비교: 왼쪽은 원본, 오른쪽은 보정 결과입니다. 선을 끌어 조정하십시오.출력에서 잘리는 부분을 어둡게 표시합니다(잃는 부분).
@@ -534,7 +533,6 @@
탐색기에서 데이터 폴더를 엽니다.포터블 모드, 로그, 진단, 데이터베이스 백업아카이브 폴더, 이름 템플릿, 프록시 크기
- 언어, 테마, 사용 통계품질 프로필, 메모리 한도, 병렬 처리, 인코더기본 서버, 렌더링 노드, 신뢰하는 인증서캐시 폴더, 메모리 내 썸네일, 캐시 한도
diff --git a/i18n/lt/Tooltips.lt.resx b/i18n/lt/Tooltips.lt.resx
index 7383df83..5454663f 100644
--- a/i18n/lt/Tooltips.lt.resx
+++ b/i18n/lt/Tooltips.lt.resx
@@ -199,7 +199,6 @@
Iš naujo gauti tarpines kopijas ir vėl atidaryti seką; atsisiuntimas rodomas užduočių juostojePristabdyti · TarpasLeisti kadrus · Tarpas; rodyklės pereina po vieną kadrą
- Rodyti pikselius 1:1 be interpoliacijos · Ctrl+1; Ctrl+0 pritaiko prie langoPaleisti dešimt sekundžių vaizdo įrašo kadrų su dabartiniais parametraisPalyginimas su slankiąja riba: originalas kairėje, pataisytas dešinėje; vilkite linijąPritemdyti tai, ką išvestis nukerpa (ką prarandu)
@@ -549,7 +548,6 @@
Atidaryti duomenų aplanką failų naršyklėjeNešiojamasis režimas, žurnalai, diagnostika, duomenų bazės atsarginė kopijaArchyvo aplankas, pavadinimų šablonai, tarpinių kopijų dydis
- Kalba, tema, naudojimo statistikaKokybės profilis, atminties limitas, lygiagretumas, koduotuvaiNumatytasis serveris, atvaizdavimo mazgas, patikimi sertifikataiTalpyklos aplankas, miniatiūros atmintyje, talpyklos riba
diff --git a/i18n/lv/Tooltips.lv.resx b/i18n/lv/Tooltips.lv.resx
index 3d586ff1..3655c0bf 100644
--- a/i18n/lv/Tooltips.lv.resx
+++ b/i18n/lv/Tooltips.lv.resx
@@ -199,7 +199,6 @@
Vēlreiz saņemt proxy attēlus un atkārtoti atvērt secību; lejupielāde redzama darbu joslāPauzēt · AtstarpeAtskaņot kadrus · Atstarpe; bultiņas pārslēdz pa vienam kadram
- Rādīt pikseļus mērogā 1:1 bez interpolācijas · Ctrl+1; Ctrl+0 ietilpinaAtskaņot desmit video sekunžu kadrus ar pašreizējiem iestatījumiemSalīdzināšana ar dalījuma līniju: pa kreisi oriģināls, pa labi koriģētais; velciet līnijuAptumšot to, ko izvade nogriež (ko es zaudēju)
@@ -549,7 +548,6 @@
Atvērt datu mapi failu pārlūkāPortatīvais režīms, žurnāli, diagnostika, datu bāzes dublēšanaArhīva mape, nosaukumu veidnes, proxy izmērs
- Valoda, motīvs, lietojuma statistikaKvalitātes profils, atmiņas budžets, paralēlisms, kodētājiNoklusējuma serveris, renderēšanas mezgls, uzticamie sertifikātiKešatmiņas mape, sīktēli atmiņā, kešatmiņas ierobežojums
diff --git a/i18n/ms/Tooltips.ms.resx b/i18n/ms/Tooltips.ms.resx
index 08d3bcee..82029fa1 100644
--- a/i18n/ms/Tooltips.ms.resx
+++ b/i18n/ms/Tooltips.ms.resx
@@ -198,7 +198,6 @@
Ambil proksi sekali lagi dan buka semula jujukan; bar status tugas menunjukkan muat turunJeda · SpaceMainkan bingkai · Space; anak panah untuk melangkah satu bingkai
- Tunjukkan piksel pada 1:1 tanpa interpolasi · Ctrl+1; Ctrl+0 untuk muat ke skrinMainkan sepuluh saat bingkai video dengan tetapan semasaPerbandingan sapuan: asal di kiri, dibetulkan di kanan; seret garisanMalapkan bahagian yang dipotong oleh output (apa yang hilang)
@@ -534,7 +533,6 @@
Buka folder data dalam Penjelajah FailMod mudah alih, log, diagnostik, sandaran pangkalan dataFolder arkib, templat penamaan, saiz proksi
- Bahasa, tema, kiraan penggunaanProfil kualiti, bajet memori, keselarian, pengekodPelayan lalai, nod render, sijil dipercayaiFolder cache, lakaran kecil dalam memori, had cache
diff --git a/i18n/nb/Tooltips.nb.resx b/i18n/nb/Tooltips.nb.resx
index 0aa9f19b..d2049cb3 100644
--- a/i18n/nb/Tooltips.nb.resx
+++ b/i18n/nb/Tooltips.nb.resx
@@ -198,7 +198,6 @@
Hent proxyene på nytt og åpne sekvensen igjen; jobblinjen viser nedlastingenPause · MellomromSpill av bildene · Mellomrom; piltastene går ett bilde om gangen
- Vis piksler i 1:1 uten interpolering · Ctrl+1; Ctrl+0 tilpasserSpill av ti sekunder av videoens bilder med gjeldende innstillingerSammenligning med skillelinje: originalen til venstre, korrigert til høyre; dra linjenDemp det som skjæres bort i utdataene (det jeg mister)
@@ -534,7 +533,6 @@
Åpne datamappen i FilutforskerPortabel modus, logger, diagnostikk, sikkerhetskopi av databasenArkivmappe, navnemaler, proxystørrelse
- Språk, tema, bruksstatistikkKvalitetsprofil, minnebudsjett, parallellitet, kodereStandardserver, renderingsnode, klarerte sertifikaterHurtigbuffermappe, miniatyrbilder i minnet, hurtigbuffergrense
diff --git a/i18n/nl/Tooltips.nl.resx b/i18n/nl/Tooltips.nl.resx
index 74d3db87..49367318 100644
--- a/i18n/nl/Tooltips.nl.resx
+++ b/i18n/nl/Tooltips.nl.resx
@@ -198,7 +198,6 @@
Haal de proxy's opnieuw op en open de reeks opnieuw; de takenbalk toont de downloadOnderbreken · SpatiebalkSpeel de frames af · Spatiebalk; pijltoetsen gaan één frame verder of terug
- Toon pixels op 1:1 zonder interpolatie · Ctrl+1; Ctrl+0 past in het vensterSpeel tien seconden van de videoframes af met de huidige instellingenSchuifvergelijking: origineel links, gecorrigeerd rechts; sleep de lijnMaak donkerder wat de uitvoer wegsnijdt (wat ik verlies)
@@ -534,7 +533,6 @@
Open de gegevensmap in VerkennerDraagbare modus, logboeken, diagnose, databaseback-upArchiefmap, naamsjablonen, proxygrootte
- Taal, thema, gebruikstellingenKwaliteitsprofiel, geheugenbudget, parallellisme, encodersStandaardserver, renderknooppunt, vertrouwde certificatenCachemap, miniaturen in geheugen, cachelimiet
diff --git a/i18n/pl/Tooltips.pl.resx b/i18n/pl/Tooltips.pl.resx
index 653098fe..701eb143 100644
--- a/i18n/pl/Tooltips.pl.resx
+++ b/i18n/pl/Tooltips.pl.resx
@@ -200,7 +200,6 @@
Pobierz ponownie pliki proxy i otwórz sekwencję od nowa; pobieranie widać na pasku zadańWstrzymaj · SpacjaOdtwórz klatki · Spacja; strzałki przechodzą o jedną klatkę
- Pokaż piksele w skali 1:1 bez interpolacji · Ctrl+1; Ctrl+0 dopasowujeOdtwórz dziesięć sekund klatek wideo z bieżącymi ustawieniamiPorównanie z kurtyną: oryginał po lewej, wersja po korekcji po prawej; przeciągnij linięPrzyciemnij to, co wyjście odcina (co tracę)
@@ -564,7 +563,6 @@
Otwórz folder danych w EksploratorzeTryb przenośny, dzienniki, diagnostyka, kopia zapasowa bazy danychFolder archiwum, szablony nazw, rozmiar proxy
- Język, motyw, statystyki użyciaProfil jakości, budżet pamięci, równoległość, enkoderySerwer domyślny, węzeł renderowania, zaufane certyfikatyFolder pamięci podręcznej, miniatury w pamięci, limit pamięci podręcznej
diff --git a/i18n/pt-BR/Tooltips.pt-BR.resx b/i18n/pt-BR/Tooltips.pt-BR.resx
index ecc1f6bc..6fa35c8c 100644
--- a/i18n/pt-BR/Tooltips.pt-BR.resx
+++ b/i18n/pt-BR/Tooltips.pt-BR.resx
@@ -198,7 +198,6 @@
Baixa os proxies de novo e reabre a sequência; a barra inferior mostra o downloadPausa · EspaçoReproduz os quadros · Espaço; as setas avançam um quadro
- Mostra os pixels em 1:1 sem interpolação · Ctrl+1; Ctrl+0 ajusta à janelaReproduz dez segundos dos quadros do vídeo com as configurações atuaisComparação deslizante: original à esquerda, corrigido à direita; arraste a linhaEscurece o que a saída recorta (o que eu perco)
@@ -534,7 +533,6 @@
Abre a pasta de dados no Explorador de ArquivosModo portátil, logs, diagnóstico, backup do banco de dadosPasta do acervo, modelos de nomes, tamanho do proxy
- Idioma, tema, contagens de usoPerfil de qualidade, limite de memória, paralelismo, codificadoresServidor padrão, nó de renderização, certificados confiáveisPasta do cache, miniaturas na memória, limite do cache
diff --git a/i18n/pt-PT/Tooltips.pt-PT.resx b/i18n/pt-PT/Tooltips.pt-PT.resx
index 55b1ea00..72605f84 100644
--- a/i18n/pt-PT/Tooltips.pt-PT.resx
+++ b/i18n/pt-PT/Tooltips.pt-PT.resx
@@ -198,7 +198,6 @@
Obter novamente os proxies e reabrir a sequência; a barra de tarefas do Titano mostra a transferênciaPausar · EspaçoReproduzir os fotogramas · Espaço; as setas avançam um fotograma
- Mostrar os píxeis a 1:1 sem interpolação · Ctrl+1; Ctrl+0 ajusta à janelaReproduzir dez segundos dos fotogramas do vídeo com as definições atuaisComparação com cortina: original à esquerda, corrigido à direita; arraste a linhaEscurecer o que a saída corta (o que perco)
@@ -534,7 +533,6 @@
Abrir a pasta de dados no Explorador de FicheirosModo portátil, registos, diagnóstico, cópia de segurança da base de dadosPasta do arquivo, modelos de nomes, tamanho do proxy
- Idioma, tema, contagens de utilizaçãoPerfil de qualidade, limite de memória, paralelismo, codificadoresServidor predefinido, nó de renderização, certificados fidedignosPasta da cache, miniaturas em memória, limite da cache
diff --git a/i18n/ro/Tooltips.ro.resx b/i18n/ro/Tooltips.ro.resx
index 262438d3..c5aa30ae 100644
--- a/i18n/ro/Tooltips.ro.resx
+++ b/i18n/ro/Tooltips.ro.resx
@@ -199,7 +199,6 @@
Preluați din nou proxy-urile și redeschideți secvența; bara de lucrări afișează descărcareaPauză · SpațiuRedați cadrele · Spațiu; săgețile avansează câte un cadru
- Afișați pixelii la 1:1 fără interpolare · Ctrl+1; Ctrl+0 potrivește în fereastrăRedați zece secunde din cadrele videoclipului cu setările curenteComparare cu cortină: originalul în stânga, varianta corectată în dreapta; trageți liniaEstompați ce taie ieșirea (ce se pierde)
@@ -549,7 +548,6 @@
Deschideți folderul de date în ExplorerMod portabil, jurnale, diagnosticare, copie de rezervă a bazei de dateFolderul arhivei, șabloane de denumire, dimensiunea proxy-urilor
- Limbă, temă, statistici de utilizareProfil de calitate, limită de memorie, paralelism, codificatoareServer implicit, nod de randare, certificate de încredereFolderul cache, miniaturi în memorie, limita cache
diff --git a/i18n/ru/Tooltips.ru.resx b/i18n/ru/Tooltips.ru.resx
index 8692d2c1..b65b08be 100644
--- a/i18n/ru/Tooltips.ru.resx
+++ b/i18n/ru/Tooltips.ru.resx
@@ -200,7 +200,6 @@
Заново получить прокси и снова открыть серию; ход скачивания виден в панели заданийПауза · ПробелВоспроизвести кадры · Пробел; стрелки — на один кадр
- Показать пиксели 1:1 без интерполяции · Ctrl+1; Ctrl+0 — по размеру окнаВоспроизвести десять секунд кадров видео с текущими параметрамиСравнение шторкой: оригинал слева, после коррекции справа; перетащите линиюЗатемнить то, что обрезается при выводе (что теряется)
@@ -564,7 +563,6 @@
Открыть папку данных в проводникеПортативный режим, журналы, диагностика, резервная копия базы данныхПапка архива, шаблоны имён, размер прокси
- Язык, тема, статистика использованияПрофиль качества, лимит памяти, параллелизм, кодировщикиСервер по умолчанию, узел рендеринга, доверенные сертификатыПапка кэша, эскизы в памяти, лимит кэша
diff --git a/i18n/sk/Tooltips.sk.resx b/i18n/sk/Tooltips.sk.resx
index 4e3b1ab7..42f1a149 100644
--- a/i18n/sk/Tooltips.sk.resx
+++ b/i18n/sk/Tooltips.sk.resx
@@ -199,7 +199,6 @@
Znova stiahne proxy a znova otvorí sekvenciu; sťahovanie sa zobrazuje v pruhu úlohPozastaví prehrávanie · medzerníkPrehrá snímky · medzerník; šípky posunú o jednu snímku
- Zobrazí pixely v pomere 1:1 bez interpolácie · Ctrl+1; Ctrl+0 prispôsobí veľkosťPrehrá desať sekúnd snímok videa s aktuálnymi nastaveniamiPorovnanie deliacou čiarou: originál vľavo, upravená verzia vpravo; čiaru môžete posúvaťStmaví časť, ktorú výstup oreže (čo sa stratí)
@@ -549,7 +548,6 @@
Otvorí priečinok údajov v PrieskumníkoviPrenosný režim, denníky, diagnostika, záloha databázyPriečinok archívu, šablóny názvov, veľkosť proxy
- Jazyk, motív, štatistiky používaniaProfil kvality, limit pamäte, paralelizmus, kodéryPredvolený server, renderovací uzol, dôveryhodné certifikátyPriečinok vyrovnávacej pamäte, miniatúry v pamäti, limit vyrovnávacej pamäte
diff --git a/i18n/sl/Tooltips.sl.resx b/i18n/sl/Tooltips.sl.resx
index 2f38c040..2e6e8d1b 100644
--- a/i18n/sl/Tooltips.sl.resx
+++ b/i18n/sl/Tooltips.sl.resx
@@ -199,7 +199,6 @@
Znova prenesi proxyje in znova odpri sekvenco; prenos je prikazan v vrstici opravilZačasno ustavi · preslednicaPredvajaj sličice · preslednica; puščice premaknejo za eno sličico
- Pokaži slikovne pike v razmerju 1:1 brez interpolacije · Ctrl+1; Ctrl+0 prilagodiPredvajaj deset sekund video sličic s trenutnimi nastavitvamiPrimerjava z zaveso: izvirnik levo, popravljeno desno; povlecite črtoZatemni, kar izhod odreže (kaj izgubim)
@@ -549,7 +548,6 @@
Odpri mapo s podatki v RaziskovalcuPrenosni način, dnevniki, diagnostika, varnostna kopija zbirke podatkovMapa arhiva, predloge za poimenovanje, velikost proxyjev
- Jezik, tema, statistika uporabeProfil kakovosti, omejitev pomnilnika, vzporednost, kodirnikiPrivzeti strežnik, vozlišče za upodabljanje, zaupanja vredna potrdilaMapa predpomnilnika, miniature v pomnilniku, omejitev predpomnilnika
diff --git a/i18n/sv/Tooltips.sv.resx b/i18n/sv/Tooltips.sv.resx
index 75b8ef13..bc7a318f 100644
--- a/i18n/sv/Tooltips.sv.resx
+++ b/i18n/sv/Tooltips.sv.resx
@@ -198,7 +198,6 @@
Hämta proxyerna igen och öppna sekvensen på nytt; jobbfältet visar nedladdningenPausa · BlankstegSpela upp bildrutorna · Blanksteg; piltangenterna flyttar en bildruta i taget
- Visa pixlar i 1:1 utan interpolering · Ctrl+1; Ctrl+0 anpassarSpela upp tio sekunder av videons bildrutor med de aktuella inställningarnaJämförelse med delad vy: originalet till vänster, korrigerat till höger; dra linjenTona ned det som utdatan skär bort (det som går förlorat)
@@ -534,7 +533,6 @@
Öppna datamappen i UtforskarenPortabelt läge, loggar, diagnostik, säkerhetskopiering av databasenArkivmapp, namngivningsmallar, proxystorlek
- Språk, tema, användningsstatistikKvalitetsprofil, minnesbudget, parallellitet, kodareStandardserver, renderingsnod, betrodda certifikatCachemapp, miniatyrer i minnet, cachegräns
diff --git a/i18n/th/Tooltips.th.resx b/i18n/th/Tooltips.th.resx
index 795e7462..3795ee47 100644
--- a/i18n/th/Tooltips.th.resx
+++ b/i18n/th/Tooltips.th.resx
@@ -198,7 +198,6 @@
รับพร็อกซีอีกครั้งแล้วเปิดซีเควนซ์นี้ขึ้นมาใหม่ แถบงานจะแสดงการดาวน์โหลดหยุดชั่วคราว · Spaceเล่นเฟรม · Space กดลูกศรเพื่อเลื่อนทีละเฟรม
- แสดงพิกเซลแบบ 1:1 โดยไม่ประมาณค่า · Ctrl+1 ส่วน Ctrl+0 จะปรับให้พอดีเล่นเฟรมของวิดีโอสิบวินาทีด้วยการตั้งค่าปัจจุบันเปรียบเทียบแบบเลื่อน: ต้นฉบับอยู่ทางซ้าย ภาพที่แก้ไขแล้วอยู่ทางขวา ลากเส้นเพื่อเลื่อนหรี่ส่วนที่เอาต์พุตตัดออก (ส่วนที่จะเสียไป)
@@ -534,7 +533,6 @@
เปิดโฟลเดอร์ข้อมูลในตัวสำรวจไฟล์โหมดพกพา ไฟล์บันทึก การวินิจฉัย การสำรองฐานข้อมูลโฟลเดอร์คลังภาพ เทมเพลตการตั้งชื่อ ขนาดพร็อกซี
- ภาษา ธีม สถิติการใช้งานโปรไฟล์คุณภาพ งบหน่วยความจำ การประมวลผลแบบขนาน ตัวเข้ารหัสเซิร์ฟเวอร์เริ่มต้น โหนดเรนเดอร์ ใบรับรองที่เชื่อถือโฟลเดอร์แคช ภาพขนาดย่อในหน่วยความจำ ขีดจำกัดแคช
diff --git a/i18n/tr/Tooltips.tr.resx b/i18n/tr/Tooltips.tr.resx
index 6b716a11..9c40ca6f 100644
--- a/i18n/tr/Tooltips.tr.resx
+++ b/i18n/tr/Tooltips.tr.resx
@@ -198,7 +198,6 @@
Proxy'leri yeniden alır ve sekansı yeniden açar; indirme görev çubuğunda görünürDuraklatır · Ara ÇubuğuKareleri oynatır · Ara Çubuğu; ok tuşları birer kare ilerletir
- Pikselleri ara değerleme olmadan 1:1 gösterir · Ctrl+1; Ctrl+0 sığdırırVideonun on saniyelik karelerini geçerli ayarlarla oynatırKaydırmalı karşılaştırma: solda orijinal, sağda düzeltilmiş; çizgiyi sürükleyinÇıktının kestiği alanı soluklaştırır (kaybedilen kısım)
@@ -534,7 +533,6 @@
Veri klasörünü Dosya Gezgini'nde açarTaşınabilir mod, günlükler, tanılama, veritabanı yedeğiArşiv klasörü, adlandırma şablonları, proxy boyutu
- Dil, tema, kullanım sayılarıKalite profili, bellek bütçesi, paralellik, kodlayıcılarVarsayılan sunucu, işleme düğümü, güvenilen sertifikalarÖnbellek klasörü, bellekteki küçük resimler, önbellek sınırı
diff --git a/i18n/uk/Tooltips.uk.resx b/i18n/uk/Tooltips.uk.resx
index 917ef314..4b768028 100644
--- a/i18n/uk/Tooltips.uk.resx
+++ b/i18n/uk/Tooltips.uk.resx
@@ -200,7 +200,6 @@
Ще раз отримати проксі й знову відкрити послідовність; завантаження видно в рядку завданьПризупинити · ПробілВідтворити кадри · Пробіл; стрілки переходять на один кадр
- Показати пікселі 1:1 без інтерполяції · Ctrl+1; Ctrl+0 вписуєВідтворити десять секунд відеокадрів із поточними налаштуваннямиПорівняння шторкою: оригінал ліворуч, виправлене праворуч; перетягніть лініюЗатемнити те, що обрізає вивід (що я втрачаю)
@@ -564,7 +563,6 @@
Відкрити папку даних у ПровідникуПортативний режим, журнали, діагностика, резервна копія бази данихПапка архіву, шаблони імен, розмір проксі
- Мова, тема, статистика використанняПрофіль якості, бюджет пам’яті, паралелізм, кодувальникиСервер за замовчуванням, вузол рендерингу, довірені сертифікатиПапка кешу, мініатюри в пам’яті, ліміт кешу
diff --git a/i18n/vi/Tooltips.vi.resx b/i18n/vi/Tooltips.vi.resx
index feb719c5..ff2668f0 100644
--- a/i18n/vi/Tooltips.vi.resx
+++ b/i18n/vi/Tooltips.vi.resx
@@ -198,7 +198,6 @@
Lấy lại proxy và mở lại chuỗi ảnh; thanh tác vụ hiển thị tiến trình tải xuốngTạm dừng · SpacePhát các khung hình · Space; phím mũi tên để đi từng khung hình
- Hiển thị điểm ảnh ở tỷ lệ 1:1 không nội suy · Ctrl+1; Ctrl+0 để vừa khungPhát mười giây khung hình của video với cài đặt hiện tạiSo sánh kiểu gạt: bản gốc bên trái, đã hiệu chỉnh bên phải; kéo đường phân chiaLàm mờ phần đầu ra cắt bỏ (phần bị mất)
@@ -534,7 +533,6 @@
Mở thư mục dữ liệu trong ExplorerChế độ di động, nhật ký, chẩn đoán, sao lưu cơ sở dữ liệuThư mục kho lưu trữ, mẫu đặt tên, kích thước proxy
- Ngôn ngữ, chủ đề, số liệu sử dụngHồ sơ chất lượng, giới hạn bộ nhớ, mức song song, bộ mã hóaMáy chủ mặc định, nút kết xuất, chứng chỉ tin cậyThư mục bộ nhớ đệm, hình thu nhỏ trong bộ nhớ, giới hạn bộ nhớ đệm
diff --git a/i18n/zh-Hans/Tooltips.zh-Hans.resx b/i18n/zh-Hans/Tooltips.zh-Hans.resx
index cb6002f8..910f5f5d 100644
--- a/i18n/zh-Hans/Tooltips.zh-Hans.resx
+++ b/i18n/zh-Hans/Tooltips.zh-Hans.resx
@@ -198,7 +198,6 @@
重新获取代理并重新打开序列;任务进度栏会显示下载进度暂停 · 空格键播放帧 · 空格键;方向键逐帧移动
- 以 1:1 显示像素,不做插值 · Ctrl+1;Ctrl+0 适应窗口以当前设置播放十秒的视频帧划像对比:左侧为原始,右侧为校正后;拖动分割线调暗输出将裁掉的部分(会丢失的内容)
@@ -534,7 +533,6 @@
在资源管理器中打开数据文件夹便携模式、日志、诊断、数据库备份档案库文件夹、命名模板、代理尺寸
- 语言、主题、使用统计质量模式、内存预算、并行度、编码器默认服务器、渲染节点、受信任的证书缓存文件夹、内存中的缩略图、缓存上限
diff --git a/i18n/zh-Hant/Tooltips.zh-Hant.resx b/i18n/zh-Hant/Tooltips.zh-Hant.resx
index 793edffb..3c430944 100644
--- a/i18n/zh-Hant/Tooltips.zh-Hant.resx
+++ b/i18n/zh-Hant/Tooltips.zh-Hant.resx
@@ -198,7 +198,6 @@
重新取得代理檔並重新開啟序列;工作進度列會顯示下載進度暫停 · 空白鍵播放影格 · 空白鍵;方向鍵可逐格移動
- 以 1:1 顯示像素,不進行內插 · Ctrl+1;Ctrl+0 可符合視窗大小以目前的設定播放十秒鐘的影片影格分割比較:左側為原始,右側為已修正;拖曳分隔線即可比較調暗輸出會裁掉的部分(檢視會失去的內容)
@@ -534,7 +533,6 @@
在檔案總管中開啟資料位置可攜式模式、記錄、診斷、資料庫備份典藏庫資料夾、命名範本、代理檔大小
- 語言、佈景主題、使用統計品質設定檔、記憶體上限、平行處理、編碼器預設伺服器、算圖節點、信任的憑證快取資料夾、記憶體中的縮圖、快取上限
diff --git a/src/Titano.App/Infrastructure/AppSettings.cs b/src/Titano.App/Infrastructure/AppSettings.cs
index a1773ce8..ac959e07 100644
--- a/src/Titano.App/Infrastructure/AppSettings.cs
+++ b/src/Titano.App/Infrastructure/AppSettings.cs
@@ -60,6 +60,9 @@ public sealed class AppSettings
/// The first-run consent of BRIEF §21; offered only by builds with .
public bool AnonymousUsageCounts { get; set; }
+ /// Toasts also appear as Windows notifications while the window is minimised or in the background (BRIEF §12.1).
+ public bool OsNotifications { get; set; } = true;
+
public WindowPlacement? Window { get; set; }
/// The first-run choice (local archive, adopted folder or server) was made.
diff --git a/src/Titano.App/Infrastructure/StartWithWindows.cs b/src/Titano.App/Infrastructure/StartWithWindows.cs
new file mode 100644
index 00000000..ae3991b2
--- /dev/null
+++ b/src/Titano.App/Infrastructure/StartWithWindows.cs
@@ -0,0 +1,79 @@
+using System.Security;
+using Microsoft.Win32;
+using Titano.Core.Diagnostics;
+
+namespace Titano.App.Infrastructure;
+
+/// Settings › General › Startup: Titano starts when the user signs in to Windows.
+public interface IStartWithWindows
+{
+ bool IsEnabled { get; }
+
+ void SetEnabled(bool enabled);
+
+ /// Points an existing entry at the current executable (after an update moved it).
+ void Refresh();
+}
+
+///
+/// HKCU\Software\Microsoft\Windows\CurrentVersion\Run value that starts Titano minimised at sign-in, so inserted
+/// cards are noticed (BRIEF §12.4) without a window in the way. The registry stays the source of truth because Task
+/// Manager can turn it off; the uninstaller removes it with the Uploader's.
+///
+public sealed class RunKeyStartWithWindows : IStartWithWindows
+{
+ /// Starts the main window minimised on the taskbar.
+ public const string MinimizedOption = "--minimized";
+
+ private const string RunKey = @"Software\Microsoft\Windows\CurrentVersion\Run";
+ private const string ValueName = "Titano";
+
+ public bool IsEnabled
+ {
+ get
+ {
+ try
+ {
+ using var key = Registry.CurrentUser.OpenSubKey(RunKey);
+ return key?.GetValue(ValueName) is string { Length: > 0 };
+ }
+ catch (SecurityException)
+ {
+ return false;
+ }
+ }
+ }
+
+ private static string Command => $"\"{Environment.ProcessPath}\" {MinimizedOption}";
+
+ public void SetEnabled(bool enabled)
+ {
+ try
+ {
+ using var key = Registry.CurrentUser.CreateSubKey(RunKey, writable: true);
+ if (enabled) key.SetValue(ValueName, Command, RegistryValueKind.String);
+ else key.DeleteValue(ValueName, throwOnMissingValue: false);
+ }
+ catch (Exception ex) when (ex is SecurityException or UnauthorizedAccessException)
+ {
+ Log.Warning("startup", "Run key not updated", ex);
+ }
+ }
+
+ public void Refresh()
+ {
+ if (IsEnabled) SetEnabled(true);
+ }
+}
+
+/// Screenshots and tests never touch the user's sign-in programs.
+public sealed class MemoryStartWithWindows : IStartWithWindows
+{
+ public bool IsEnabled { get; private set; }
+
+ public void SetEnabled(bool enabled) => IsEnabled = enabled;
+
+ public void Refresh()
+ {
+ }
+}
diff --git a/src/Titano.App/Jobs/JobNotices.cs b/src/Titano.App/Jobs/JobNotices.cs
new file mode 100644
index 00000000..8d516776
--- /dev/null
+++ b/src/Titano.App/Jobs/JobNotices.cs
@@ -0,0 +1,39 @@
+using Titano.Core.Model;
+
+namespace Titano.App.Jobs;
+
+/// What the shell says when a job of this PC ends.
+public enum JobNotice
+{
+ None,
+ Done,
+ Failed,
+}
+
+///
+/// Which job endings raise a toast (BRIEF §12.1 "toasts for job completion"): the long operations the user asked for
+/// end with one toast, whichever screen started them. Background work (thumbnails, proxies, light analysis, the
+/// analysis queued after an import) and scans (the archive is rescanned every 10 minutes) end silently; an import
+/// has its own toast when it ends well, and the Import screen holds its retry. Cancelled jobs were stopped on purpose.
+///
+public static class JobNotices
+{
+ ///
+ /// The notice for after a change from (null: not seen before).
+ /// A job already finished before the change (a repeated event, a page read again) says nothing.
+ ///
+ public static JobNotice For(JobState? before, Job job)
+ {
+ ArgumentNullException.ThrowIfNull(job);
+ if (before is JobState.Done or JobState.Failed or JobState.Cancelled || job.Priority == JobPriority.Background) return JobNotice.None;
+ return job.State switch
+ {
+ JobState.Done when Announces(job.Kind) => JobNotice.Done,
+ JobState.Failed when Announces(job.Kind) || job.Kind == JobKind.Import => JobNotice.Failed,
+ _ => JobNotice.None,
+ };
+ }
+
+ private static bool Announces(JobKind kind) =>
+ kind is JobKind.Render or JobKind.DeepAnalyse or JobKind.Verify or JobKind.Rebuild or JobKind.Maintenance or JobKind.UploadCommit;
+}
diff --git a/src/Titano.App/Sections/JobsViewModel.cs b/src/Titano.App/Sections/JobsViewModel.cs
index d5ebb1f5..e82b8f4c 100644
--- a/src/Titano.App/Sections/JobsViewModel.cs
+++ b/src/Titano.App/Sections/JobsViewModel.cs
@@ -10,6 +10,7 @@ using Titano.Core.Localization;
using Titano.Core.Model;
using Titano.Data;
using Titano.Data.Jobs;
+using Titano.Ui.Controls;
using Titano.Ui.Mvvm;
namespace Titano.App.Sections;
@@ -49,7 +50,8 @@ public sealed class JobFilterChip(JobFilter filter, Action select) :
///
/// Jobs (BRIEF §12.6, Jobs.html): queue and history with live progress from the engine (batched to about 10
/// updates a second), filters, queue order, an expandable log tail per job, and the row actions. Also feeds the
-/// shell's job bar, the status strip and the rail badge.
+/// shell's job bar, the status strip and the rail badge (running jobs, and failures not seen on this screen yet), and
+/// raises the toast of a long operation that ends (), whichever screen started it.
///
public sealed class JobsViewModel : SectionViewModel
{
@@ -59,6 +61,7 @@ public sealed class JobsViewModel : SectionViewModel
private readonly JobListModel _model = new();
private readonly JobUpdateBuffer _buffer = new();
private readonly Dictionary _rows = [];
+ private readonly HashSet _unseenFailures = [];
private readonly JobActions _actions;
private CoalescingThrottle? _throttle;
private IJobQueue? _queue;
@@ -217,13 +220,73 @@ public sealed class JobsViewModel : SectionViewModel
internal void Flush()
{
var (jobs, progress) = _buffer.Drain();
- foreach (var job in jobs) _model.Apply(job);
+ foreach (var job in jobs)
+ {
+ var before = _model[job.Id]?.State;
+ _model.Apply(job);
+ Follow(before, job);
+ }
foreach (var p in progress) _model.Apply(p);
SyncRows();
UpdateShell();
}
- private void OnJobChanged(Job job)
+ /// Failures seen on this screen no longer count on the rail.
+ protected override void OnActivated()
+ {
+ if (_unseenFailures.Count == 0) return;
+ _unseenFailures.Clear();
+ UpdateShell();
+ }
+
+ ///
+ /// A change the engine reported (these are live, never pages read again): a failure counts on the rail until this
+ /// screen is opened, and a long operation that ends says so in a toast with one action (BRIEF §12.1, §0.2 rule 6).
+ ///
+ private void Follow(JobState? before, Job job)
+ {
+ if (job.State != JobState.Failed) _unseenFailures.Remove(job.Id);
+ else if (before != JobState.Failed && !IsSelected) _unseenFailures.Add(job.Id);
+ var notice = JobNotices.For(before, job);
+ if (notice == JobNotice.None || (notice == JobNotice.Done && EditorAnnounces(job))) return;
+ Shell.ShowToast(notice == JobNotice.Done
+ ? new Toast
+ {
+ Title = Loc.L("Shell.Job.Done"),
+ Message = JobText.Name(job),
+ ActionText = Loc.L("Jobs.Action.Open"),
+ ActionToolTip = Loc.L("Tooltips.Jobs.Open"),
+ ActionCommand = new AsyncRelayCommand(() => OpenTargetAsync(job)),
+ }
+ : job.Kind == JobKind.Import
+ // The Import screen resumes an import with its plan and card; it holds the retry.
+ ? new Toast
+ {
+ Title = Loc.L("Shell.Job.Failed"),
+ Message = JobText.Name(job),
+ ActionText = Loc.L("Shell.Nav.Import"),
+ ActionToolTip = Loc.L("Tooltips.Nav.Import"),
+ ActionCommand = new RelayCommand(() => Shell.Navigate(SectionKey.Import)),
+ IsError = true,
+ }
+ : new Toast
+ {
+ Title = Loc.L("Shell.Job.Failed"),
+ Message = JobText.Name(job),
+ ActionText = Loc.L("Jobs.Action.Retry"),
+ ActionToolTip = Loc.L("Tooltips.Jobs.Retry"),
+ ActionCommand = new AsyncRelayCommand(() => _queue?.ResumeAsync(job.Id) ?? Task.CompletedTask),
+ IsError = true,
+ });
+ }
+
+ /// A finished render of the sequence open in the editor: the editor says it, with its output file.
+ private bool EditorAnnounces(Job job) =>
+ job is { Kind: JobKind.Render, State: JobState.Done } && Shell.Sequence.Editor is { IsRemote: false } editor
+ && job.TargetIds.Contains(editor.Session.Content.Sequence.Id);
+
+ /// A job changed state (any thread; tests feed it too): buffered until the next flush.
+ internal void OnJobChanged(Job job)
{
_buffer.Post(job);
_throttle?.Signal();
@@ -274,10 +337,12 @@ public sealed class JobsViewModel : SectionViewModel
Shell.SetJob(JobText.Bar(current), current.Fraction ?? 0, indeterminate: current.Fraction is null, name: JobText.Name(current.Job));
else
Shell.SetJob(null, 0);
- // The rail badge, the status strip and the Running chip count the same jobs: running or paused (Jobs.html).
+ // The status strip and the Running chip count the same jobs: running or paused (Jobs.html). The rail badge adds the
+ // failures not seen here yet, which also turn the taskbar button red while no job runs.
var active = _model.CountOf(JobFilter.Running);
Shell.SetJobCount(active, _model.QueuedCount);
- Badge = active;
+ Shell.SetUnseenFailures(_unseenFailures.Count);
+ Badge = active + _unseenFailures.Count;
OnPropertyChanged(nameof(WorkersText));
OnPropertyChanged(nameof(HasWorkers));
CommandManager.InvalidateRequerySuggested();
diff --git a/src/Titano.App/Sections/SequenceView.xaml b/src/Titano.App/Sections/SequenceView.xaml
index 2f2ac0d4..4cbcd45d 100644
--- a/src/Titano.App/Sections/SequenceView.xaml
+++ b/src/Titano.App/Sections/SequenceView.xaml
@@ -27,7 +27,7 @@
-
+
@@ -141,7 +141,7 @@
IsChecked="{Binding IsCropResult}" ui:ButtonIcon.Glyph="{StaticResource Icon.Eye}" ToolTip="{Binding CropModeToolTip}"
AutomationProperties.Name="{l:Loc Editor.Preview.CropResult}" />
+ IsChecked="{Binding IsActualSize}" Content="{l:Loc Editor.Preview.ActualSize}" ToolTip="{l:Loc Tooltips.Editor.Preview.OneToOne}" />
diff --git a/src/Titano.App/Sections/ServerViewModel.cs b/src/Titano.App/Sections/ServerViewModel.cs
index 093dbf4d..65000153 100644
--- a/src/Titano.App/Sections/ServerViewModel.cs
+++ b/src/Titano.App/Sections/ServerViewModel.cs
@@ -15,9 +15,11 @@ namespace Titano.App.Sections;
/// Server (BRIEF §12.7, Server.html): address with LAN-discovered servers, connect with trust-on-first-use and login,
/// status (name, version, latency, certificate), account and quota, sign out, the options of this PC (render node,
/// proxies kept offline, automatic project sync, uploads paused on metered networks) and the sync table ().
+/// The rail badge counts the settings conflicts waiting for a choice.
///
public sealed class ServerViewModel : SectionViewModel
{
+ private readonly SyncFilterChip _conflicts;
private string _address;
private string? _errorText;
private ServerSession? _session;
@@ -37,6 +39,8 @@ public sealed class ServerViewModel : SectionViewModel
});
CertificateCommand = new RelayCommand(ShowCertificate, () => Fingerprint is not null);
Sync = new SyncTableViewModel(shell);
+ _conflicts = Sync.Chips.Single(c => c.Filter == SyncFilter.Conflicts);
+ _conflicts.PropertyChanged += OnConflictsChanged;
}
/// Sequences of this PC and of the server, where they stand and what can be done.
@@ -213,6 +217,7 @@ public sealed class ServerViewModel : SectionViewModel
public override void Dispose()
{
+ _conflicts.PropertyChanged -= OnConflictsChanged;
if (_session is not null) _session.PropertyChanged -= OnSessionChanged;
Shell.Settings.Encoders.CollectionChanged -= OnEncodersChanged;
Sync.Dispose();
@@ -225,6 +230,11 @@ public sealed class ServerViewModel : SectionViewModel
if (Shell.Settings.Encoders.Count == 0 && !Shell.Settings.IsDetecting) _ = Shell.Settings.DetectEncodersAsync();
}
+ private void OnConflictsChanged(object? sender, PropertyChangedEventArgs e)
+ {
+ if (e.PropertyName is nameof(SyncFilterChip.Count) or "" or null) Badge = _conflicts.Count;
+ }
+
private void SetSyncOption(bool value, bool current, Action store, [System.Runtime.CompilerServices.CallerMemberName] string? name = null)
{
if (value == current) return;
diff --git a/src/Titano.App/Sections/SettingsView.xaml b/src/Titano.App/Sections/SettingsView.xaml
index 1547ac25..0d78b8e8 100644
--- a/src/Titano.App/Sections/SettingsView.xaml
+++ b/src/Titano.App/Sections/SettingsView.xaml
@@ -134,6 +134,12 @@
+
+
+
+
+
+
diff --git a/src/Titano.App/Sections/SettingsViewModel.cs b/src/Titano.App/Sections/SettingsViewModel.cs
index 2e79ab42..e52323e0 100644
--- a/src/Titano.App/Sections/SettingsViewModel.cs
+++ b/src/Titano.App/Sections/SettingsViewModel.cs
@@ -41,9 +41,11 @@ public sealed class SettingsViewModel : SectionViewModel
{
Shell = shell;
_s = shell.Services.Settings;
+ Startup = shell.Services.Environment.IsCapture ? new MemoryStartWithWindows() : new RunKeyStartWithWindows();
AllPages =
[
- new(SettingsPage.General, ["Settings.General.Language", "Settings.General.Theme", .. ProductFeatures.AdsEnabled ? (string[])["Settings.General.Usage"] : []]),
+ new(SettingsPage.General, ["Settings.General.Language", "Settings.General.Theme", "Settings.General.Startup", "Settings.General.Notifications",
+ .. ProductFeatures.AdsEnabled ? (string[])["Settings.General.Usage"] : []]),
new(SettingsPage.Archive, ["Settings.Archive.Root", "Settings.Archive.Folders", "Settings.Archive.Files", "Settings.Archive.Proxies"]),
new(SettingsPage.Rendering, ["Settings.Rendering.Quality", "Settings.Rendering.Memory", "Settings.Rendering.Parallelism", "Settings.Rendering.Hardware", "Settings.Rendering.Encoders"]),
new(SettingsPage.Storage, ["Settings.Storage.Folder", "Settings.Storage.Thumbnails", "Settings.Storage.Limit"]),
@@ -247,6 +249,34 @@ public sealed class SettingsViewModel : SectionViewModel
}
}
+ /// Where "Start with Windows" is kept (the Run key); screenshots and tests keep it in memory.
+ internal IStartWithWindows Startup { get; set; }
+
+ /// Titano starts minimised when the user signs in to Windows.
+ public bool StartWithWindows
+ {
+ get => Startup.IsEnabled;
+ set
+ {
+ if (Startup.IsEnabled == value) return;
+ Startup.SetEnabled(value);
+ OnPropertyChanged();
+ }
+ }
+
+ /// Toasts also appear as Windows notifications while the window is minimised or in the background.
+ public bool OsNotifications
+ {
+ get => _s.OsNotifications;
+ set
+ {
+ if (_s.OsNotifications == value) return;
+ _s.OsNotifications = value;
+ Save();
+ OnPropertyChanged();
+ }
+ }
+
/// The usage counts consent belongs to monetization (BRIEF §21): only builds with it enabled offer it.
public bool ShowsUsageCounts => ProductFeatures.AdsEnabled;
@@ -503,6 +533,7 @@ public sealed class SettingsViewModel : SectionViewModel
}
LoadCertificates();
Shell.Services.Server.PropertyChanged += OnServerChanged;
+ Startup.Refresh();
}
public override void Dispose()
@@ -709,6 +740,8 @@ public sealed class SettingsViewModel : SectionViewModel
{
case SettingsPage.General:
_s.AnonymousUsageCounts = defaults.AnonymousUsageCounts;
+ _s.OsNotifications = defaults.OsNotifications;
+ Startup.SetEnabled(false);
ApplyTheme(defaults.Theme);
_s.Language = null;
UiLanguage.Apply(null);
diff --git a/src/Titano.App/Shell/MainWindow.xaml b/src/Titano.App/Shell/MainWindow.xaml
index 08a191b5..e1604357 100644
--- a/src/Titano.App/Shell/MainWindow.xaml
+++ b/src/Titano.App/Shell/MainWindow.xaml
@@ -9,6 +9,26 @@
Title="{Binding WindowTitle}"
Width="1440" Height="900" MinWidth="1200" MinHeight="760"
WindowStartupLocation="CenterScreen">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Titano.App/Shell/MainWindow.xaml.cs b/src/Titano.App/Shell/MainWindow.xaml.cs
index b5fc47f7..4dd67dac 100644
--- a/src/Titano.App/Shell/MainWindow.xaml.cs
+++ b/src/Titano.App/Shell/MainWindow.xaml.cs
@@ -9,9 +9,15 @@ using Titano.Ui.Controls;
namespace Titano.App.Shell;
+///
+/// The client's window (BRIEF §12.1): rail, job bar, section, status strip, the first-run dialog and the toasts, which
+/// also become Windows notifications while nobody sees the window ().
+///
public partial class MainWindow : TitanoWindow
{
private readonly ShellViewModel _shell;
+ private readonly OsNotifications _notifications;
+ private WindowState? _restoreTo;
public MainWindow(ShellViewModel shell)
{
@@ -24,10 +30,26 @@ public partial class MainWindow : TitanoWindow
if (e.PropertyName is nameof(ShellViewModel.IsConnected) or "") UpdateConnection();
if (e.PropertyName is nameof(ShellViewModel.IsWelcomeOpen) or "") FocusWelcome();
};
+ // Screenshots and tests run off screen and never activated: they must not reach the notification area.
+ _notifications = new OsNotifications(this, () => shell.Services.Settings.OsNotifications && !shell.Services.Environment.IsCapture, t => Toasts.Dismiss(t));
shell.PendingToasts.CollectionChanged += OnToastRequested;
Loaded += (_, _) => FocusWelcome();
RestorePlacement();
Closing += (_, _) => SavePlacement();
+ Closed += (_, _) => _notifications.Dispose();
+ }
+
+ /// Started at sign-in (Settings › General › Startup): the window waits minimised on the taskbar.
+ internal static bool StartsMinimized(IReadOnlyList arguments) =>
+ arguments.Any(a => a.Equals(RunKeyStartWithWindows.MinimizedOption, StringComparison.OrdinalIgnoreCase));
+
+ /// The first restore of a window started minimised brings back the saved maximised state.
+ protected override void OnStateChanged(EventArgs e)
+ {
+ base.OnStateChanged(e);
+ if (_restoreTo is not { } state || WindowState == WindowState.Minimized) return;
+ _restoreTo = null;
+ if (WindowState != state) WindowState = state;
}
/// F6 moves the keyboard to the newest notification (as in Windows apps), Esc there dismisses it.
@@ -66,14 +88,25 @@ public partial class MainWindow : TitanoWindow
private void OnToastRequested(object? sender, NotifyCollectionChangedEventArgs e)
{
if (e.Action != NotifyCollectionChangedAction.Add || e.NewItems is null) return;
- foreach (Toast t in e.NewItems) Toasts.Show(t);
+ foreach (Toast t in e.NewItems)
+ {
+ Toasts.Show(t);
+ _notifications.Show(t);
+ }
Dispatcher.BeginInvoke(() => _shell.PendingToasts.Clear());
}
private void RestorePlacement()
{
+ if (_shell.Services.Environment.IsCapture) return;
var p = _shell.Services.Settings.Window;
- if (p is null || p.Width < MinWidth || p.Height < MinHeight || _shell.Services.Environment.IsCapture) return;
+ var maximized = p?.Maximized == true;
+ if (StartsMinimized(Environment.GetCommandLineArgs()))
+ {
+ WindowState = WindowState.Minimized;
+ _restoreTo = maximized ? WindowState.Maximized : WindowState.Normal;
+ }
+ if (p is null || p.Width < MinWidth || p.Height < MinHeight) return;
var virtualScreen = new Rect(SystemParameters.VirtualScreenLeft, SystemParameters.VirtualScreenTop, SystemParameters.VirtualScreenWidth, SystemParameters.VirtualScreenHeight);
var rect = new Rect(p.Left, p.Top, p.Width, p.Height);
if (!virtualScreen.IntersectsWith(rect)) return;
@@ -82,7 +115,7 @@ public partial class MainWindow : TitanoWindow
Top = p.Top;
Width = p.Width;
Height = p.Height;
- if (p.Maximized) WindowState = WindowState.Maximized;
+ if (maximized && _restoreTo is null) WindowState = WindowState.Maximized;
}
private void SavePlacement()
@@ -95,7 +128,8 @@ public partial class MainWindow : TitanoWindow
Top = b.Top,
Width = b.Width,
Height = b.Height,
- Maximized = WindowState == WindowState.Maximized,
+ // Started minimised and never opened: the saved state stays the one it would have been restored to.
+ Maximized = WindowState == WindowState.Maximized || (WindowState == WindowState.Minimized && _restoreTo == WindowState.Maximized),
};
}
}
diff --git a/src/Titano.App/Shell/OsNotifications.cs b/src/Titano.App/Shell/OsNotifications.cs
new file mode 100644
index 00000000..38c81783
--- /dev/null
+++ b/src/Titano.App/Shell/OsNotifications.cs
@@ -0,0 +1,119 @@
+using System.Windows;
+using Titano.Core.Localization;
+using Titano.Ui.Controls;
+using Titano.Ui.Interop;
+
+namespace Titano.App.Shell;
+
+///
+/// Windows notifications for the toasts nobody would see (BRIEF §12.1 "optional OS toast when minimised", §12.4 "Card
+/// X detected — Import"): while the main window is minimised, hidden or behind another program, every toast also goes
+/// to a tray balloon, which Windows 10/11 shows as a notification, when Settings › General allows it. Clicking it
+/// brings the window back and runs the toast's action. The tray icon exists only while such a notification can be
+/// clicked: it goes once a window of Titano is active again. Create, use and dispose it on the UI thread.
+///
+public sealed class OsNotifications : IDisposable
+{
+ private const int MenuShow = 1;
+
+ private readonly Window _window;
+ private readonly Func _enabled;
+ private readonly Action _dismiss;
+ private TrayIcon? _tray;
+ private Toast? _latest;
+ private bool _disposed;
+
+ /// The main window, restored by a click.
+ /// Settings › General › Notifications (never during screenshots and tests).
+ /// Closes the in-window toast whose action a click ran.
+ public OsNotifications(Window window, Func enabled, Action dismiss)
+ {
+ _window = window;
+ _enabled = enabled;
+ _dismiss = dismiss;
+ _window.Activated += OnActivated;
+ }
+
+ /// The tray icon is in the notification area (tests).
+ internal bool HasTrayIcon => _tray is not null;
+
+ /// Mirrors as a Windows notification when nobody sees the window; true when it did.
+ public bool Show(Toast toast)
+ {
+ // A toast raised while the app closes (the window is hidden by then) needs no icon that would outlive it.
+ if (_disposed || !_enabled() || !IsUnseen(_window.WindowState, _window.IsVisible, AnyWindowActive())) return false;
+ _tray ??= new TrayIcon(Loc.L("Shell.AppName"), Menu, OnMenu, Restore, OnBalloonClicked);
+ _latest = toast;
+ _tray.ShowBalloon(toast.Title, BalloonText(toast), toast.IsError);
+ return true;
+ }
+
+ public void Dispose()
+ {
+ _disposed = true;
+ _window.Activated -= OnActivated;
+ RemoveIcon();
+ }
+
+ /// Nobody sees the main window: minimised, hidden, or no window of Titano has the foreground.
+ public static bool IsUnseen(WindowState state, bool isVisible, bool anyWindowActive) =>
+ state == WindowState.Minimized || !isVisible || !anyWindowActive;
+
+ ///
+ /// The notification's text: the toast's message, then its action ("Import"), which a click on it runs; the title
+ /// alone when there is neither (Windows needs a text to show a notification at all).
+ ///
+ public static string BalloonText(Toast toast)
+ {
+ ArgumentNullException.ThrowIfNull(toast);
+ var lines = new[] { toast.Message, toast.ActionText }.Where(l => !string.IsNullOrWhiteSpace(l));
+ return string.Join(Environment.NewLine, lines) is { Length: > 0 } text ? text : toast.Title;
+ }
+
+ private static bool AnyWindowActive() => Application.Current?.Windows.OfType().Any(w => w.IsActive) ?? false;
+
+ private IReadOnlyList Menu() => [new(MenuShow, Loc.L("Shell.Tray.Show"))];
+
+ private void OnMenu(int id)
+ {
+ if (id == MenuShow) Restore();
+ }
+
+ /// The window as it was before it was minimised (maximised stays maximised), in front.
+ private void Restore()
+ {
+ _window.Show();
+ if (_window.WindowState == WindowState.Minimized) SystemCommands.RestoreWindow(_window);
+ _window.Activate();
+ }
+
+ private void OnBalloonClicked()
+ {
+ var toast = _latest;
+ _latest = null;
+ Restore();
+ if (toast?.ActionCommand is not { } command || !command.CanExecute(null)) return;
+ command.Execute(null);
+ _dismiss(toast);
+ }
+
+ ///
+ /// Back in front: the notifications have done their job. The icon goes after the current message, since activation
+ /// may come from a click the icon's own window is still handling, unless the window went to the background again.
+ ///
+ private void OnActivated(object? sender, EventArgs e)
+ {
+ if (_tray is null) return;
+ _window.Dispatcher.BeginInvoke(() =>
+ {
+ if (!IsUnseen(_window.WindowState, _window.IsVisible, AnyWindowActive())) RemoveIcon();
+ });
+ }
+
+ private void RemoveIcon()
+ {
+ _latest = null;
+ _tray?.Dispose();
+ _tray = null;
+ }
+}
diff --git a/src/Titano.App/Shell/ShellViewModel.cs b/src/Titano.App/Shell/ShellViewModel.cs
index 5ea0e3fd..e762d7f7 100644
--- a/src/Titano.App/Shell/ShellViewModel.cs
+++ b/src/Titano.App/Shell/ShellViewModel.cs
@@ -1,5 +1,6 @@
using System.Collections.ObjectModel;
using System.Windows.Input;
+using System.Windows.Shell;
using Titano.App.Infrastructure;
using Titano.App.Sections;
using Titano.Core.Diagnostics;
@@ -26,6 +27,7 @@ public sealed class ShellViewModel : LocalizedViewModel
private string? _serverName;
private int _jobCount;
private int _queuedCount;
+ private int _unseenFailures;
private WelcomeViewModel? _welcome;
private Guid? _currentSequenceId;
@@ -48,12 +50,13 @@ public sealed class ShellViewModel : LocalizedViewModel
Library.IsSelected = true;
Library.PropertyChanged += OnCurrentChanged;
+ // The rail and its shortcuts (Ctrl+1…6, Ctrl+,) navigate only while no first-run dialog covers the shell.
NavigateCommand = new RelayCommand(p =>
{
if (p is SectionViewModel s) Navigate(s.Key);
else if (p is SectionKey k) Navigate(k);
else if (p is string name && Enum.TryParse(name, out var key)) Navigate(key);
- });
+ }, _ => IsShellEnabled);
ToggleRailCommand = new RelayCommand(() => IsRailCollapsed = !IsRailCollapsed);
services.Server.PropertyChanged += (_, _) => SetConnection(services.Server.ServerName);
if (!_settings.FirstRunCompleted) _welcome = new WelcomeViewModel(this);
@@ -89,6 +92,7 @@ public sealed class ShellViewModel : LocalizedViewModel
if (!Set(ref _welcome, value)) return;
OnPropertyChanged(nameof(IsWelcomeOpen));
OnPropertyChanged(nameof(IsShellEnabled));
+ CommandManager.InvalidateRequerySuggested();
}
}
@@ -196,8 +200,20 @@ public sealed class ShellViewModel : LocalizedViewModel
public string JobAnnouncement => _jobActive && _jobName is not null ? _jobName : JobText;
///
- /// Updates the global job bar (and the taskbar progress through the window). says which job
- /// it is without its progress ("Render: Harbour sunset"); null reads .
+ /// The taskbar button mirrors the job bar (BRIEF §11.5): the running job's progress, sliding while its total is
+ /// unknown; red while no job runs and a failure waits on the Jobs screen; nothing otherwise.
+ ///
+ public TaskbarItemProgressState TaskbarState =>
+ _jobActive ? _jobIndeterminate ? TaskbarItemProgressState.Indeterminate : TaskbarItemProgressState.Normal
+ : _unseenFailures > 0 ? TaskbarItemProgressState.Error
+ : TaskbarItemProgressState.None;
+
+ /// 0…1 for ; a waiting failure fills the button.
+ public double TaskbarProgress => _jobActive ? _jobProgress : _unseenFailures > 0 ? 1 : 0;
+
+ ///
+ /// Updates the global job bar and the taskbar button. says which job it is without its
+ /// progress ("Render: Harbour sunset"); null reads .
///
public void SetJob(string? text, double progress, bool indeterminate = false, string? name = null)
{
@@ -208,6 +224,17 @@ public sealed class ShellViewModel : LocalizedViewModel
IsJobIndeterminate = indeterminate;
OnPropertyChanged(nameof(JobText));
OnPropertyChanged(nameof(JobAnnouncement));
+ OnPropertyChanged(nameof(TaskbarState));
+ OnPropertyChanged(nameof(TaskbarProgress));
+ }
+
+ /// Failed jobs not seen on the Jobs screen yet (the taskbar button turns red while no job runs).
+ public void SetUnseenFailures(int count)
+ {
+ if (_unseenFailures == count) return;
+ _unseenFailures = count;
+ OnPropertyChanged(nameof(TaskbarState));
+ OnPropertyChanged(nameof(TaskbarProgress));
}
// ---- Status strip ----
diff --git a/src/Titano.Uploader/Interop/TrayIcon.cs b/src/Titano.Ui/Interop/TrayIcon.cs
similarity index 85%
rename from src/Titano.Uploader/Interop/TrayIcon.cs
rename to src/Titano.Ui/Interop/TrayIcon.cs
index 4daed96f..ff4c8bd4 100644
--- a/src/Titano.Uploader/Interop/TrayIcon.cs
+++ b/src/Titano.Ui/Interop/TrayIcon.cs
@@ -3,14 +3,16 @@ using System.Windows.Interop;
using Titano.Core.Diagnostics;
using Titano.Core.Localization;
-namespace Titano.Uploader.Interop;
+namespace Titano.Ui.Interop;
/// One entry of the tray menu; an id of 0 is a separator.
public readonly record struct TrayMenuItem(int Id, string? Text);
///
/// Notification-area icon through Shell_NotifyIconW: the program icon from the executable's resources, a tooltip,
-/// a native context menu and balloons. A hidden window receives the callbacks and re-adds the icon after Explorer restarts.
+/// a native context menu and balloons (Windows notifications on Windows 10/11). A hidden window receives the callbacks
+/// and re-adds the icon after Explorer restarts. Used by the Uploader (tray) and the client (notifications while
+/// minimised); create, use and dispose it on the UI thread.
///
public sealed unsafe partial class TrayIcon : IDisposable
{
@@ -21,6 +23,7 @@ public sealed unsafe partial class TrayIcon : IDisposable
private const uint NifIcon = 0x2;
private const uint NifTip = 0x4;
private const uint NifInfo = 0x10;
+ private const uint NiifError = 0x3;
private const uint NiifUser = 0x4;
private const int CallbackMessage = 0x8000 + 1; // WM_APP + 1
private const int WmContextMenu = 0x007B;
@@ -42,21 +45,24 @@ public sealed unsafe partial class TrayIcon : IDisposable
private readonly Func> _menu;
private readonly Action _command;
private readonly Action _show;
+ private readonly Action? _balloonClicked;
private string _toolTip;
private bool _added;
/// Hover text (up to 127 characters).
/// Builds the context menu when it opens.
/// Runs a chosen menu id.
- /// Left click or balloon click.
- public TrayIcon(string toolTip, Func> menu, Action command, Action show)
+ /// Left click, and balloon click when is null.
+ /// Click on the last balloon (or its Windows notification).
+ public TrayIcon(string toolTip, Func> menu, Action command, Action show, Action? balloonClicked = null)
{
_toolTip = toolTip;
_menu = menu;
_command = command;
_show = show;
+ _balloonClicked = balloonClicked;
// A hidden top-level window: message-only windows miss the TaskbarCreated broadcast.
- _window = new HwndSource(new HwndSourceParameters("TitanoUploaderTray") { Width = 0, Height = 0, WindowStyle = 0 });
+ _window = new HwndSource(new HwndSourceParameters("TitanoTray") { Width = 0, Height = 0, WindowStyle = 0 });
_window.AddHook(WndProc);
_taskbarCreated = RegisterWindowMessageW("TaskbarCreated");
(_icon, _ownsIcon) = LoadProgramIcon();
@@ -71,13 +77,16 @@ public sealed unsafe partial class TrayIcon : IDisposable
Notify(NimModify, &data);
}
- /// Shows a balloon (a toast on Windows 10/11) with the program icon.
- public void ShowBalloon(string title, string text)
+ ///
+ /// Shows a balloon (a Windows notification on Windows 10/11) with the program icon, or the error icon when
+ /// . must not be empty: an empty text removes the balloon.
+ ///
+ public void ShowBalloon(string title, string text, bool isError = false)
{
var data = NewData(NifInfo);
Copy(title, data.InfoTitle, 64);
Copy(text, data.Info, 256);
- data.InfoFlags = NiifUser;
+ data.InfoFlags = isError ? NiifError : NiifUser;
Notify(NimModify, &data);
}
@@ -108,9 +117,12 @@ public sealed unsafe partial class TrayIcon : IDisposable
{
switch ((int)(lParam.ToInt64() & 0xFFFF))
{
- case WmLButtonUp or WmLButtonDblClk or NinBalloonUserClick:
+ case WmLButtonUp or WmLButtonDblClk:
_show();
break;
+ case NinBalloonUserClick:
+ (_balloonClicked ?? _show)();
+ break;
case WmRButtonUp or WmContextMenu:
ShowMenu();
break;
@@ -172,7 +184,7 @@ public sealed unsafe partial class TrayIcon : IDisposable
destination[length] = '\0';
}
- /// The generated titano-uploader icon embedded in the executable; the stock icon if it cannot be read.
+ /// The program's generated icon embedded in its executable; the stock icon if it cannot be read.
private static (IntPtr Icon, bool Owned) LoadProgramIcon()
{
if (Environment.ProcessPath is { } exe)
diff --git a/src/Titano.Ui/Visuals/PreviewViewport.cs b/src/Titano.Ui/Visuals/PreviewViewport.cs
index 559dce68..474db278 100644
--- a/src/Titano.Ui/Visuals/PreviewViewport.cs
+++ b/src/Titano.Ui/Visuals/PreviewViewport.cs
@@ -42,8 +42,9 @@ public readonly record struct MotionVector(float X, float Y, float Dx, float Dy)
/// polyline) and a crop mask (normalised ; dims or hides what the output loses). Tools go
/// bottom-left (), the shot data pill bottom-right (). Images and
/// overlays are retained visuals under one shared transform, so panning re-renders nothing. Double-click toggles
-/// Fit and 1:1; Ctrl+0 fits, Ctrl+1 shows 1:1. Screen readers see an image (named by AutomationProperties.Name)
-/// whose status is the zoom and whose help text is the shot data, holding the tools.
+/// Fit and 1:1; Ctrl+0 fits, Ctrl+Shift+1 shows 1:1 (Ctrl+1 to Ctrl+6 switch the client's sections). Screen readers
+/// see an image (named by AutomationProperties.Name) whose status is the zoom and whose help text is the shot data,
+/// holding the tools.
///
[TemplatePart(Name = PartSurface, Type = typeof(FrameworkElement))]
[TemplatePart(Name = PartTools, Type = typeof(FrameworkElement))]
@@ -55,7 +56,7 @@ public class PreviewViewport : Control
public const string PartInfo = "PART_Info";
public static readonly RoutedCommand FitCommand = new(nameof(FitCommand), typeof(PreviewViewport), [new KeyGesture(Key.D0, ModifierKeys.Control)]);
- public static readonly RoutedCommand ActualSizeCommand = new(nameof(ActualSizeCommand), typeof(PreviewViewport), [new KeyGesture(Key.D1, ModifierKeys.Control)]);
+ public static readonly RoutedCommand ActualSizeCommand = new(nameof(ActualSizeCommand), typeof(PreviewViewport), [new KeyGesture(Key.D1, ModifierKeys.Control | ModifierKeys.Shift)]);
public static readonly DependencyProperty SourceProperty = DependencyProperty.Register(
nameof(Source), typeof(ImageSource), typeof(PreviewViewport), new PropertyMetadata(null, OnImagesChanged));
diff --git a/src/Titano.Uploader/App.xaml.cs b/src/Titano.Uploader/App.xaml.cs
index 6ce377f8..7eb3e1c9 100644
--- a/src/Titano.Uploader/App.xaml.cs
+++ b/src/Titano.Uploader/App.xaml.cs
@@ -5,10 +5,10 @@ using System.Windows;
using System.Windows.Threading;
using Titano.Core.Diagnostics;
using Titano.Core.Localization;
+using Titano.Ui.Interop;
using Titano.Ui.Mvvm;
using Titano.Ui.Theming;
using Titano.Uploader.Infrastructure;
-using Titano.Uploader.Interop;
using Titano.Uploader.Server;
using Titano.Uploader.Shell;
using Titano.Uploader.Uploads;
diff --git a/tests/Titano.App.Tests/Jobs/JobNoticesTests.cs b/tests/Titano.App.Tests/Jobs/JobNoticesTests.cs
new file mode 100644
index 00000000..69136c59
--- /dev/null
+++ b/tests/Titano.App.Tests/Jobs/JobNoticesTests.cs
@@ -0,0 +1,68 @@
+using Titano.App.Jobs;
+using Titano.Core.Model;
+using Titano.Testing;
+
+namespace Titano.App.Tests.Jobs;
+
+/// UI-08: which job endings raise the shell's toast, whichever screen started the job.
+public sealed class JobNoticesTests
+{
+ [Theory]
+ [Case(JobKind.Render)]
+ [Case(JobKind.DeepAnalyse)]
+ [Case(JobKind.Verify)]
+ [Case(JobKind.Rebuild)]
+ [Case(JobKind.Maintenance)]
+ [Case(JobKind.UploadCommit)]
+ public void ALongOperationThatEndsSaysSo(JobKind kind)
+ {
+ Assert.Equal(JobNotice.Done, JobNotices.For(JobState.Running, Job(kind, JobState.Done)));
+ Assert.Equal(JobNotice.Failed, JobNotices.For(JobState.Running, Job(kind, JobState.Failed)));
+ // Queued and finished between two flushes of the Jobs screen: still one notice.
+ Assert.Equal(JobNotice.Done, JobNotices.For(JobState.Queued, Job(kind, JobState.Done)));
+ Assert.Equal(JobNotice.Done, JobNotices.For(null, Job(kind, JobState.Done)));
+ }
+
+ [Theory]
+ [Case(JobKind.Scan)]
+ [Case(JobKind.LightAnalyse)]
+ [Case(JobKind.Thumbs)]
+ [Case(JobKind.Proxies)]
+ [Case(JobKind.Download)]
+ public void BackgroundWorkAndScansEndSilently(JobKind kind)
+ {
+ Assert.Equal(JobNotice.None, JobNotices.For(JobState.Running, Job(kind, JobState.Done)));
+ Assert.Equal(JobNotice.None, JobNotices.For(JobState.Running, Job(kind, JobState.Failed)));
+ }
+
+ [Test]
+ public void AnImportSaysOnlyThatItFailed()
+ {
+ // The Import screen announces a finished import with its result.
+ Assert.Equal(JobNotice.None, JobNotices.For(JobState.Running, Job(JobKind.Import, JobState.Done)));
+ Assert.Equal(JobNotice.Failed, JobNotices.For(JobState.Running, Job(JobKind.Import, JobState.Failed)));
+ }
+
+ [Test]
+ public void BackgroundPriorityCancelledAndRepeatedEndingsSayNothing()
+ {
+ // The deep analysis queued after an import runs in the background.
+ Assert.Equal(JobNotice.None, JobNotices.For(JobState.Running, Job(JobKind.DeepAnalyse, JobState.Done, JobPriority.Background)));
+ Assert.Equal(JobNotice.None, JobNotices.For(JobState.Running, Job(JobKind.Render, JobState.Cancelled)));
+ Assert.Equal(JobNotice.None, JobNotices.For(JobState.Done, Job(JobKind.Render, JobState.Done)));
+ Assert.Equal(JobNotice.None, JobNotices.For(JobState.Failed, Job(JobKind.Render, JobState.Failed)));
+ Assert.Equal(JobNotice.None, JobNotices.For(JobState.Queued, Job(JobKind.Render, JobState.Running)));
+ // "Add to queue" renders have Normal priority: they are announced too.
+ Assert.Equal(JobNotice.Done, JobNotices.For(JobState.Running, Job(JobKind.Render, JobState.Done, JobPriority.Normal)));
+ }
+
+ private static Job Job(JobKind kind, JobState state, JobPriority priority = JobPriority.User) => new()
+ {
+ Id = Guid.CreateVersion7(),
+ Kind = kind,
+ State = state,
+ Priority = priority,
+ TargetLabel = "Harbour sunset",
+ Created = DateTimeOffset.UtcNow,
+ };
+}
diff --git a/tests/Titano.App.Tests/Windows/ShellNotificationTests.cs b/tests/Titano.App.Tests/Windows/ShellNotificationTests.cs
new file mode 100644
index 00000000..03771f37
--- /dev/null
+++ b/tests/Titano.App.Tests/Windows/ShellNotificationTests.cs
@@ -0,0 +1,265 @@
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Input;
+using System.Windows.Shell;
+using Titano.App.Infrastructure;
+using Titano.App.Sections;
+using Titano.App.Settings;
+using Titano.App.Shell;
+using Titano.Core.Localization;
+using Titano.Core.Model;
+using Titano.Testing;
+using Titano.Ui.Controls;
+using Titano.Ui.Mvvm;
+using Titano.Ui.Visuals;
+
+namespace Titano.App.Tests.Windows;
+
+///
+/// The shell's ways of telling what happens outside the screen in front: the taskbar button (UI-05), Windows
+/// notifications (UI-06), section shortcuts (UI-07), job toasts (UI-08), rail badges (UI-10), and the General settings
+/// that drive them; the usage counts consent stays hidden in builds without monetization (RF-3).
+///
+[WindowsOnly]
+[Serial]
+[Timeout(300_000)]
+public sealed class ShellNotificationTests
+{
+ [Test]
+ public Task TheTaskbarButtonMirrorsTheJobBar() => ScreenHost.RunAsync(async () =>
+ {
+ await using var app = await ScreenSmokeTests.SampleApp.StartAsync();
+ var shell = app.Shell;
+ await JobsLoadedAsync(shell);
+ var taskbar = Assert.NotNull(app.Window.TaskbarItemInfo);
+
+ shell.SetJob("Render · Harbour sunset", 0.25, name: "Render: Harbour sunset");
+ Assert.Equal(TaskbarItemProgressState.Normal, taskbar.ProgressState);
+ Assert.Approximately(0.25, taskbar.ProgressValue, 1e-9);
+
+ shell.SetJob("Scan · Archive", 0, indeterminate: true);
+ Assert.Equal(TaskbarItemProgressState.Indeterminate, taskbar.ProgressState);
+
+ shell.SetJob(null, 0);
+ Assert.Equal(TaskbarItemProgressState.None, taskbar.ProgressState);
+
+ // A failure nobody has seen on the Jobs screen turns the idle button red.
+ shell.SetUnseenFailures(1);
+ Assert.Equal(TaskbarItemProgressState.Error, taskbar.ProgressState);
+ Assert.Approximately(1, taskbar.ProgressValue, 1e-9);
+ shell.SetJob("Render · Harbour sunset", 0.5);
+ Assert.Equal(TaskbarItemProgressState.Normal, taskbar.ProgressState, "a running job comes first");
+ shell.SetUnseenFailures(0);
+ shell.SetJob(null, 0);
+ Assert.Equal(TaskbarItemProgressState.None, taskbar.ProgressState);
+ });
+
+ [Test]
+ public Task TheRailShortcutsOfTheTooltipsNavigate() => ScreenHost.RunAsync(async () =>
+ {
+ await using var app = await ScreenSmokeTests.SampleApp.StartAsync(firstRun: true);
+ var shell = app.Shell;
+ var bindings = app.Window.InputBindings.OfType().ToList();
+ var expected = new (Key Key, SectionKey Section)[]
+ {
+ (Key.D1, SectionKey.Library), (Key.D2, SectionKey.Import), (Key.D3, SectionKey.Sequence), (Key.D4, SectionKey.Archive),
+ (Key.D5, SectionKey.Jobs), (Key.D6, SectionKey.Server), (Key.OemComma, SectionKey.Settings),
+ };
+
+ // The first-run dialog keeps the shell behind it: no shortcut moves it.
+ var library = bindings.Single(b => b.Key == Key.D1 && b.Modifiers == ModifierKeys.Control);
+ Assert.False(library.Command.CanExecute(library.CommandParameter), "no navigation behind the first-run dialog");
+ shell.CompleteWelcome();
+
+ foreach (var (key, section) in expected)
+ {
+ var binding = bindings.Single(b => b.Key == key && b.Modifiers == ModifierKeys.Control);
+ Assert.True(binding.Command.CanExecute(binding.CommandParameter), $"Ctrl+{key}");
+ binding.Command.Execute(binding.CommandParameter);
+ Assert.Equal(section, shell.Current.Key, $"Ctrl+{key}");
+ // The rail tooltip lists the shortcut it answers to.
+ var shortcut = key == Key.OemComma ? "Ctrl+," : "Ctrl+" + (char)('1' + (key - Key.D1));
+ Assert.True(shell.Current.ToolTip.EndsWith(shortcut, StringComparison.Ordinal), $"{section} tooltip ends with {shortcut}");
+ }
+
+ // The editor's 1:1 view no longer takes Ctrl+1 from the Library.
+ var gestures = PreviewViewport.ActualSizeCommand.InputGestures.OfType().ToList();
+ Assert.True(gestures.All(g => g is not { Key: Key.D1, Modifiers: ModifierKeys.Control }), "the preview keeps away from Ctrl+1");
+ Assert.Contains(gestures, g => g is { Key: Key.D1, Modifiers: ModifierKeys.Control | ModifierKeys.Shift });
+ Assert.Contains("Ctrl+Shift+1", Loc.L("Tooltips.Editor.Preview.OneToOne"));
+ });
+
+ [Test]
+ public Task JobsThatEndRaiseOneToastAndFailuresCountUntilSeen() => ScreenHost.RunAsync(async () =>
+ {
+ await using var app = await ScreenSmokeTests.SampleApp.StartAsync();
+ var shell = app.Shell;
+ shell.CompleteWelcome();
+ await JobsLoadedAsync(shell);
+ var jobs = shell.Jobs;
+ var raised = new List();
+ shell.PendingToasts.CollectionChanged += (_, e) => raised.AddRange(e.NewItems?.Cast() ?? []);
+ var badge = jobs.Badge;
+
+ // A deep analysis started from the Library ends: one toast whose action opens what it worked on.
+ var analysis = Job(JobKind.DeepAnalyse, JobState.Running, Guid.CreateVersion7());
+ jobs.OnJobChanged(analysis);
+ jobs.Flush();
+ jobs.OnJobChanged(analysis with { State = JobState.Done });
+ jobs.Flush();
+ var done = raised.Single(t => t.Title == Loc.L("Shell.Job.Done"));
+ Assert.Equal(Loc.L("Jobs.Action.Open"), done.ActionText);
+ Assert.False(done.IsError);
+ // The same ending reported again says nothing more.
+ jobs.OnJobChanged(analysis with { State = JobState.Done });
+ jobs.Flush();
+ Assert.Equal(1, raised.Count(t => t.Title == Loc.L("Shell.Job.Done")));
+
+ // A failed verify: an error toast with Retry, a badge on the rail and a red taskbar button until Jobs is opened.
+ var verify = Job(JobKind.Verify, JobState.Running, Guid.CreateVersion7());
+ jobs.OnJobChanged(verify);
+ jobs.Flush();
+ jobs.OnJobChanged(verify with { State = JobState.Failed, Error = "Disk read error" });
+ jobs.Flush();
+ var failed = raised.Single(t => t.Title == Loc.L("Shell.Job.Failed"));
+ Assert.True(failed.IsError);
+ Assert.Equal(Loc.L("Jobs.Action.Retry"), failed.ActionText);
+ Assert.Equal(badge + 1, jobs.Badge);
+ Assert.Equal(TaskbarItemProgressState.Error, shell.TaskbarState);
+ shell.Navigate(SectionKey.Jobs);
+ Assert.Equal(badge, jobs.Badge);
+ Assert.NotEqual(TaskbarItemProgressState.Error, shell.TaskbarState);
+
+ // The editor announces the renders of its own sequence, with their output: the shell says nothing then.
+ var id = await app.Sample.FillEditorAsync();
+ shell.OpenSequence(id);
+ await shell.Sequence.OpenAsync(id);
+ Assert.NotNull(shell.Sequence.Editor);
+ raised.Clear();
+ var render = Job(JobKind.Render, JobState.Running, id);
+ jobs.OnJobChanged(render);
+ jobs.Flush();
+ jobs.OnJobChanged(render with { State = JobState.Done });
+ jobs.Flush();
+ Assert.False(raised.Any(t => t.Title == Loc.L("Shell.Job.Done")), "the editor's own render toast is not doubled");
+ // A render of another sequence is the shell's to announce.
+ var other = Job(JobKind.Render, JobState.Running, Guid.CreateVersion7());
+ jobs.OnJobChanged(other);
+ jobs.Flush();
+ jobs.OnJobChanged(other with { State = JobState.Done });
+ jobs.Flush();
+ Assert.Equal(1, raised.Count(t => t.Title == Loc.L("Shell.Job.Done")));
+ await shell.Sequence.CloseAsync();
+ });
+
+ [Test]
+ public Task ToastsBecomeWindowsNotificationsOnlyWhileNobodySeesTheWindow() => ScreenHost.RunAsync(async () =>
+ {
+ Assert.True(OsNotifications.IsUnseen(WindowState.Minimized, isVisible: true, anyWindowActive: true));
+ Assert.True(OsNotifications.IsUnseen(WindowState.Normal, isVisible: true, anyWindowActive: false));
+ Assert.True(OsNotifications.IsUnseen(WindowState.Maximized, isVisible: false, anyWindowActive: true));
+ Assert.False(OsNotifications.IsUnseen(WindowState.Maximized, isVisible: true, anyWindowActive: true));
+
+ // The card prompt of BRIEF §12.4 reads "Card X detected", then its action, which a click runs.
+ var card = new Toast { Title = "EOS R5 card A inserted", Message = "SD 128 GB", ActionText = "Import" };
+ Assert.Equal("SD 128 GB" + Environment.NewLine + "Import", OsNotifications.BalloonText(card));
+ Assert.Equal("Job finished", OsNotifications.BalloonText(new Toast { Title = "Job finished" }));
+
+ Assert.True(MainWindow.StartsMinimized(["Titano.exe", "--minimized"]));
+ Assert.False(MainWindow.StartsMinimized(["Titano.exe"]));
+
+ await using var app = await ScreenSmokeTests.SampleApp.StartAsync();
+ app.Shell.CompleteWelcome();
+ // Minimised: nobody sees the window.
+ app.Window.WindowState = WindowState.Minimized;
+ var enabled = false;
+ using var notifications = new OsNotifications(app.Window, () => enabled, _ => { });
+ Assert.False(notifications.Show(card), "Settings › General › Notifications is off");
+ Assert.False(notifications.HasTrayIcon);
+ enabled = true;
+ Assert.True(notifications.Show(new Toast { Title = "Job finished", Message = "Render · Harbour sunset", ActionCommand = new RelayCommand(() => { }) }));
+ Assert.True(notifications.HasTrayIcon, "the notification area holds the icon while a notification can be clicked");
+ notifications.Dispose();
+ Assert.False(notifications.HasTrayIcon);
+ app.Window.WindowState = WindowState.Normal;
+ });
+
+ [Test]
+ public Task GeneralSettingsHoldStartupAndNotificationsButNoConsent() => ScreenHost.RunAsync(async () =>
+ {
+ // Monetization (BRIEF §21) ships disabled: the default build offers no usage counts consent.
+ Assert.False(ProductFeatures.AdsEnabled);
+
+ await using var app = await ScreenSmokeTests.SampleApp.StartAsync(firstRun: true);
+ var shell = app.Shell;
+ await app.ExpectAsync("welcome");
+ Assert.False(app.FindAll().Any(c => c.IsVisible && Equals(c.Content, Loc.L("Settings.General.UsageCounts"))), "no consent on the first-run dialog");
+ shell.CompleteWelcome();
+
+ var settings = shell.Settings;
+ var startup = new MemoryStartWithWindows();
+ settings.Startup = startup;
+ shell.Navigate(SectionKey.Settings);
+ settings.Page = SettingsPage.General;
+ await app.ExpectAsync("settings-general");
+ var boxes = app.FindAll().Where(c => c.IsVisible).ToList();
+ Assert.False(boxes.Any(c => Equals(c.Content, Loc.L("Settings.General.UsageCounts"))), "no consent in Settings");
+ var start = boxes.Single(c => Equals(c.Content, Loc.L("Settings.General.StartWithWindows")));
+ Assert.Equal(Loc.L("Tooltips.Settings.StartWithWindows"), start.ToolTip);
+ var notify = boxes.Single(c => Equals(c.Content, Loc.L("Settings.General.OsNotifications")));
+ Assert.Equal(Loc.L("Tooltips.Settings.OsNotifications"), notify.ToolTip);
+ Assert.True(notify.IsChecked == true, "Windows notifications are on by default");
+
+ settings.StartWithWindows = true;
+ Assert.True(startup.IsEnabled);
+ settings.OsNotifications = false;
+ Assert.False(shell.Services.Settings.OsNotifications);
+ settings.ResetSectionCommand.Execute(null);
+ Assert.False(startup.IsEnabled, "Reset section turns Start with Windows off");
+ Assert.True(shell.Services.Settings.OsNotifications, "Reset section turns notifications back on");
+ // Reset section also returned the language to the system's.
+ UiLanguage.Apply("en");
+
+ // The search finds General by its new rows, not by the hidden consent.
+ settings.SearchText = Loc.L("Settings.General.Startup");
+ Assert.Contains(settings.VisiblePages, p => p.Page == SettingsPage.General);
+ settings.SearchText = Loc.L("Settings.General.Usage");
+ Assert.False(settings.VisiblePages.Any(p => p.Page == SettingsPage.General), "the hidden consent does not match");
+ settings.SearchText = string.Empty;
+ });
+
+ [Test]
+ public Task TheServerBadgeCountsConflicts() => ScreenHost.RunAsync(async () =>
+ {
+ await using var app = await ScreenSmokeTests.SampleApp.StartAsync();
+ var shell = app.Shell;
+ shell.CompleteWelcome();
+ Assert.Equal(0, shell.Server.Badge);
+ await app.Sample.FillAsync();
+ await shell.Services.Server.RestoreAsync();
+ Assert.NotNull(await shell.Services.Sync.RefreshAsync());
+ await shell.Server.Sync.ReloadAsync();
+ // The sample server holds one sequence whose settings changed on both sides.
+ Assert.Equal(1, shell.Server.Sync.Chips.Single(c => c.Filter == Titano.App.Server.SyncFilter.Conflicts).Count);
+ Assert.Equal(1, shell.Server.Badge);
+ });
+
+ /// The Jobs screen read its first page (it would set the job bar and the badge again).
+ private static async Task JobsLoadedAsync(ShellViewModel shell)
+ {
+ for (var i = 0; i < 200 && !shell.Jobs.IsEmpty && !shell.Jobs.HasRows; i++) await Task.Delay(20);
+ Assert.True(shell.Jobs.IsEmpty || shell.Jobs.HasRows, "the job list loaded");
+ }
+
+ private static Job Job(JobKind kind, JobState state, Guid target) => new()
+ {
+ Id = Guid.CreateVersion7(),
+ Kind = kind,
+ State = state,
+ Priority = JobPriority.User,
+ TargetIds = [target],
+ TargetLabel = "Harbour sunset",
+ Created = DateTimeOffset.UtcNow,
+ Started = DateTimeOffset.UtcNow,
+ };
+}