Local-mode composition root (SQLite index, one JobEngine fed by a single handler registration list), keyset-paged library with thumbnail cache and hover scrub, live job list with throttled updates and the shell job bar, settings with live template validation and encoder self-test, server connection with trust-on-first-use and DPAPI token, first-run welcome, About with update check, and --capture screenshots with synthetic data. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
20 lines
789 B
C#
20 lines
789 B
C#
using System.Windows;
|
|
|
|
namespace Titano.App.Shell;
|
|
|
|
/// <summary>
|
|
/// The client's own styles (<c>Shell/AppStyles.xaml</c>) and view templates. They build on the Titano.Ui kit with
|
|
/// StaticResource, so they are merged after <see cref="Ui.Theming.ThemeManager.Initialize"/> loaded the kit.
|
|
/// </summary>
|
|
public static class AppResources
|
|
{
|
|
private static readonly Uri Styles = new("pack://application:,,,/Titano;component/Shell/AppStyles.xaml", UriKind.Absolute);
|
|
|
|
/// <summary>Merges the client styles into <paramref name="app"/> once.</summary>
|
|
public static void Merge(Application app)
|
|
{
|
|
if (app.Resources.MergedDictionaries.Any(d => d.Source == Styles)) return;
|
|
app.Resources.MergedDictionaries.Add(new ResourceDictionary { Source = Styles });
|
|
}
|
|
}
|