fixes
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<Version>1.2.10</Version>
|
||||
<Version>1.2.12</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<Version>3.1.2</Version>
|
||||
<Version>3.1.4</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -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),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user