Ruben 1 год назад
Родитель
Сommit
445ea2de19

+ 4 - 0
src/PicView.Avalonia/PicViewTheme/ThemeManager.cs

@@ -18,6 +18,10 @@ public static class ThemeManager
             return;
         
         // https://www.codeproject.com/Articles/5317972/Theming-and-Localization-Functionality-for-Multipl
+        // StyleInclude breaks trimming and AOT
+        // Change colors with keys like https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Themes.Simple/Accents/Base.xaml
+
+        var test = Application.Current.Resources.MergedDictionaries[1];
 
         // Add the new theme
         if (dark)

+ 1 - 0
src/PicView.Avalonia/Views/AppearanceView.axaml

@@ -31,6 +31,7 @@
             BorderBrush="{StaticResource MainBorderColor}"
             BorderThickness="1"
             FontFamily="/Assets/Fonts/Roboto-Medium.ttf#Roboto"
+            IsEnabled="False"
             Margin="0,0,0,5"
             Padding="5,7,0,7"
             Width="270"