This commit is contained in:
2025-11-16 08:46:56 +01:00
parent 40a28aecf3
commit e969533dc0
4 changed files with 8 additions and 8 deletions

View File

@@ -13,9 +13,9 @@ public abstract class BaseSymbolFactory<TSymbols> : IBaseSymbolFactory<TSymbols>
return size switch
{
SymbolSize.Default => Size.Empty,
SymbolSize.Small => new Size(SymbolGlobals.DefaultImageSmallSize, SymbolGlobals.DefaultImageSmallSize),
SymbolSize.Medium => new Size(SymbolGlobals.DefaultImageMediumSize, SymbolGlobals.DefaultImageMediumSize),
SymbolSize.Large => new Size(SymbolGlobals.DefaultImageLargeSize, SymbolGlobals.DefaultImageLargeSize),
SymbolSize.Small => new Size((int)SymbolGlobals.DefaultImageSmallSize, (int)SymbolGlobals.DefaultImageSmallSize),
SymbolSize.Medium => new Size((int)SymbolGlobals.DefaultImageMediumSize, (int)SymbolGlobals.DefaultImageMediumSize),
SymbolSize.Large => new Size((int)SymbolGlobals.DefaultImageLargeSize, (int)SymbolGlobals.DefaultImageLargeSize),
_ => new Size((int)size, (int)size),
};
}

View File

@@ -2,7 +2,7 @@ namespace Pilz.UI.Symbols;
public static class SymbolGlobals
{
public static int DefaultImageSmallSize { get;} = 16;
public static int DefaultImageMediumSize { get;} = 20;
public static int DefaultImageLargeSize { get;} = 32;
public static double DefaultImageSmallSize { get; set; } = 16;
public static double DefaultImageMediumSize { get; set; } = 20;
public static double DefaultImageLargeSize { get; set; } = 32;
}