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

@@ -7,7 +7,7 @@
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>
<Version>1.2.10</Version> <Version>1.2.12</Version>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View File

@@ -8,7 +8,7 @@
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>
<Version>3.1.2</Version> <Version>3.1.4</Version>
</PropertyGroup> </PropertyGroup>
</Project> </Project>

View File

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

View File

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