diff --git a/src/Files.App/Constants.cs b/src/Files.App/Constants.cs index 21a49473e83a..9949b8a45786 100644 --- a/src/Files.App/Constants.cs +++ b/src/Files.App/Constants.cs @@ -103,6 +103,11 @@ public static class UI public const double ContextMenuItemsMaxWidth = 250; } + public static class Appearance + { + public const string StandardFont = "Segoe UI Variable"; + } + public static class Browser { public static class GridViewBrowser diff --git a/src/Files.App/Helpers/AppThemeResourcesHelper.cs b/src/Files.App/Helpers/AppThemeResourcesHelper.cs index 1ab2d3a85284..abd162aed5ce 100644 --- a/src/Files.App/Helpers/AppThemeResourcesHelper.cs +++ b/src/Files.App/Helpers/AppThemeResourcesHelper.cs @@ -25,22 +25,22 @@ public static void LoadAppResources(this IResourcesService service, IAppearanceS service.SetCompactSpacing(useCompactStyles); service.SetAppThemeBackgroundColor(appThemeBackgroundColor.FromWindowsColor()); - if (!String.IsNullOrWhiteSpace(appThemeAddressBarBackgroundColor) && appThemeAddressBarBackgroundColor != "#00000000") + if (!string.IsNullOrWhiteSpace(appThemeAddressBarBackgroundColor) && appThemeAddressBarBackgroundColor != "#00000000") service.SetAppThemeAddressBarBackgroundColor(ColorHelper.ToColor(appThemeAddressBarBackgroundColor).FromWindowsColor()); else appearance.AppThemeAddressBarBackgroundColor = ""; //migrate to new default - if (!String.IsNullOrWhiteSpace(appThemeSidebarBackgroundColor) && appThemeAddressBarBackgroundColor != "#00000000") + if (!string.IsNullOrWhiteSpace(appThemeSidebarBackgroundColor) && appThemeAddressBarBackgroundColor != "#00000000") service.SetAppThemeSidebarBackgroundColor(ColorHelper.ToColor(appThemeSidebarBackgroundColor).FromWindowsColor()); else appearance.AppThemeSidebarBackgroundColor = ""; //migrate to new default - if (!String.IsNullOrWhiteSpace(appThemeFileAreaBackgroundColor) && appThemeAddressBarBackgroundColor != "#00000000") + if (!string.IsNullOrWhiteSpace(appThemeFileAreaBackgroundColor) && appThemeAddressBarBackgroundColor != "#00000000") service.SetAppThemeFileAreaBackgroundColor(ColorHelper.ToColor(appThemeFileAreaBackgroundColor).FromWindowsColor()); else appearance.AppThemeFileAreaBackgroundColor = ""; //migrate to new default - if (appThemeFontFamily != "Segoe UI Variable") + if (appThemeFontFamily != Constants.Appearance.StandardFont) service.SetAppThemeFontFamily(appThemeFontFamily); service.ApplyResources(); diff --git a/src/Files.App/UserControls/Pane/PreviewPane.xaml b/src/Files.App/UserControls/Pane/PreviewPane.xaml index f9396d0ab7c3..b511fe17a6e8 100644 --- a/src/Files.App/UserControls/Pane/PreviewPane.xaml +++ b/src/Files.App/UserControls/Pane/PreviewPane.xaml @@ -113,6 +113,11 @@ + + @@ -205,6 +210,7 @@ - @@ -356,4 +361,4 @@ - \ No newline at end of file + diff --git a/src/Files.App/ViewModels/Previews/FolderPreviewViewModel.cs b/src/Files.App/ViewModels/Previews/FolderPreviewViewModel.cs index cc94f639b93a..bbac905ac2f3 100644 --- a/src/Files.App/ViewModels/Previews/FolderPreviewViewModel.cs +++ b/src/Files.App/ViewModels/Previews/FolderPreviewViewModel.cs @@ -47,10 +47,9 @@ private async Task LoadPreviewAndDetailsAsync() GetFileProperty("PropertyDateModified", dateTimeFormatter.ToLongLabel(info.DateModified)), GetFileProperty("PropertyDateCreated", dateTimeFormatter.ToLongLabel(info.ItemDate)), GetFileProperty("PropertyItemPathDisplay", Folder.Path), + GetFileProperty("FileTags", + Item.FileTagsUI is not null ? string.Join(',', Item.FileTagsUI.Select(x => x.Name)) : null) }; - - Item.FileDetails.Add(GetFileProperty("FileTags", - Item.FileTagsUI is not null ? string.Join(',', Item.FileTagsUI.Select(x => x.Name)) : null)); } private static FileProperty GetFileProperty(string nameResource, object value)