Revert "File scoped namespaces"

This reverts commit d31d8f574e.
This commit is contained in:
Burak Kaan Köse
2025-02-16 11:43:30 +01:00
parent d31d8f574e
commit cf9869b71e
617 changed files with 32097 additions and 31478 deletions

View File

@@ -2,27 +2,28 @@
using System.Threading.Tasks;
using Wino.Core.Domain.Enums;
namespace Wino.Core.Domain.Models.Personalization;
/// <summary>
/// Base class for all app themes.
/// </summary>
public abstract class AppThemeBase
namespace Wino.Core.Domain.Models.Personalization
{
public Guid Id { get; set; }
public string ThemeName { get; set; }
public ApplicationElementTheme ForceElementTheme { get; set; }
public string AccentColor { get; set; }
public bool IsAccentColorAssigned => !string.IsNullOrEmpty(AccentColor);
public string BackgroundPreviewImage => GetBackgroundPreviewImagePath();
public abstract AppThemeType AppThemeType { get; }
protected AppThemeBase(string themeName, Guid id)
/// <summary>
/// Base class for all app themes.
/// </summary>
public abstract class AppThemeBase
{
ThemeName = themeName;
Id = id;
}
public Guid Id { get; set; }
public string ThemeName { get; set; }
public ApplicationElementTheme ForceElementTheme { get; set; }
public string AccentColor { get; set; }
public bool IsAccentColorAssigned => !string.IsNullOrEmpty(AccentColor);
public string BackgroundPreviewImage => GetBackgroundPreviewImagePath();
public abstract AppThemeType AppThemeType { get; }
public abstract Task<string> GetThemeResourceDictionaryContentAsync();
public abstract string GetBackgroundPreviewImagePath();
protected AppThemeBase(string themeName, Guid id)
{
ThemeName = themeName;
Id = id;
}
public abstract Task<string> GetThemeResourceDictionaryContentAsync();
public abstract string GetBackgroundPreviewImagePath();
}
}

View File

@@ -1,11 +1,12 @@
using System;
namespace Wino.Core.Domain.Models.Personalization;
public class CustomThemeMetadata
namespace Wino.Core.Domain.Models.Personalization
{
public Guid Id { get; set; }
public string Name { get; set; }
public string AccentColorHex { get; set; }
public bool HasCustomAccentColor => !string.IsNullOrEmpty(AccentColorHex);
public class CustomThemeMetadata
{
public Guid Id { get; set; }
public string Name { get; set; }
public string AccentColorHex { get; set; }
public bool HasCustomAccentColor => !string.IsNullOrEmpty(AccentColorHex);
}
}

View File

@@ -1,15 +1,16 @@
using Wino.Core.Domain.Enums;
namespace Wino.Core.Domain.Models.Personalization;
public class ElementThemeContainer
namespace Wino.Core.Domain.Models.Personalization
{
public ElementThemeContainer(ApplicationElementTheme nativeTheme, string title)
public class ElementThemeContainer
{
NativeTheme = nativeTheme;
Title = title;
}
public ElementThemeContainer(ApplicationElementTheme nativeTheme, string title)
{
NativeTheme = nativeTheme;
Title = title;
}
public ApplicationElementTheme NativeTheme { get; set; }
public string Title { get; set; }
public ApplicationElementTheme NativeTheme { get; set; }
public string Title { get; set; }
}
}