From c7ca6f5702b3651972211abd654fa5a8cc1fd02a Mon Sep 17 00:00:00 2001 From: Schedel Pascal Date: Mon, 8 Jul 2024 06:56:33 +0200 Subject: [PATCH] more large symbol sizes --- Pilz.UI/Symbols/SymbolFactory.cs | 3 +- Pilz.UI/Symbols/SymbolSize.cs | 53 +++++++++++++++++++++++++++++++- 2 files changed, 54 insertions(+), 2 deletions(-) diff --git a/Pilz.UI/Symbols/SymbolFactory.cs b/Pilz.UI/Symbols/SymbolFactory.cs index c87f7fc..91693b6 100644 --- a/Pilz.UI/Symbols/SymbolFactory.cs +++ b/Pilz.UI/Symbols/SymbolFactory.cs @@ -11,10 +11,11 @@ public abstract class SymbolFactory : ISymbolFactory { return size switch { + SymbolSize.Default => Size.Empty, SymbolSize.Small => new Size(16, 16), SymbolSize.Medium => new Size(20, 20), SymbolSize.Large => new Size(32, 32), - _ => Size.Empty, + _ => new Size((int)size, (int)size), }; } diff --git a/Pilz.UI/Symbols/SymbolSize.cs b/Pilz.UI/Symbols/SymbolSize.cs index 5a5c0cc..85efff1 100644 --- a/Pilz.UI/Symbols/SymbolSize.cs +++ b/Pilz.UI/Symbols/SymbolSize.cs @@ -8,14 +8,65 @@ public enum SymbolSize Default, /// /// Resizes the symbol to 16 x 16 pixels. + ///
Deprecated! This is just present due legacy reasons. Use instead. ///
Small, /// /// Resizes the symbol to 20 x 20 pixels. + ///
Deprecated! This is just present due legacy reasons. Use instead. ///
Medium, /// /// Resizes the symbol to 32 x 32 pixels. + ///
Deprecated! This is just present due legacy reasons. Use instead. ///
- Large + Large, + /// + /// Resizes the symbol to 8 x 8 pixels. + /// + x8 = 8, + /// + /// Resizes the symbol to 12 x 12 pixels. + /// + x12 = 12, + /// + /// Resizes the symbol to 16 x 16 pixels. + /// + x16 = 16, + /// + /// Resizes the symbol to 20 x 20 pixels. + /// + x20 = 20, + /// + /// Resizes the symbol to 32 x 32 pixels. + /// + x32 = 32, + /// + /// Resizes the symbol to 48 x 48 pixels. + /// + x48 = 48, + /// + /// Resizes the symbol to 64 x 64 pixels. + /// + x64 = 64, + /// + /// Resizes the symbol to 96 x 96 pixels. + /// + x96 = 96, + /// + /// Resizes the symbol to 128 x 128 pixels. + /// + x128 = 128, + /// + /// Resizes the symbol to 192 x 192 pixels. + /// + x192 = 192, + /// + /// Resizes the symbol to 256 x 256 pixels. + /// + x256 = 256, + /// + /// Resizes the symbol to 512 x 512 pixels. + /// + x512 = 512, }