using System.Windows;
namespace Titano.App.Shell;
///
/// The client's own styles (Shell/AppStyles.xaml) and view templates. They build on the Titano.Ui kit with
/// StaticResource, so they are merged after loaded the kit.
///
public static class AppResources
{
private static readonly Uri Styles = new("pack://application:,,,/Titano;component/Shell/AppStyles.xaml", UriKind.Absolute);
/// Merges the client styles into once.
public static void Merge(Application app)
{
if (app.Resources.MergedDictionaries.Any(d => d.Source == Styles)) return;
app.Resources.MergedDictionaries.Add(new ResourceDictionary { Source = Styles });
}
}