-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #895 from Krypton-Suite/alpha-fr#891
* Resolves #891
- Loading branch information
Showing
13 changed files
with
249 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
Source/Krypton Components/Krypton.Toolkit/Utilities/UACShieldIconSize.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#region BSD License | ||
/* | ||
* | ||
* New BSD 3-Clause License (https://github.com/Krypton-Suite/Standard-Toolkit/blob/master/LICENSE) | ||
* Modifications by Peter Wagner(aka Wagnerp) & Simon Coghlan(aka Smurf-IV), et al. 2017 - 2023. All rights reserved. | ||
* | ||
*/ | ||
#endregion | ||
|
||
namespace Krypton.Toolkit | ||
{ | ||
/// <summary>Defines the UAC shield image size for a <see cref="KryptonButton"/>.</summary> | ||
public enum UACShieldIconSize | ||
{ | ||
/// <summary>A custom image size.</summary> | ||
Custom = 0, | ||
/// <summary>The extra small image size (16 x 16).</summary> | ||
ExtraSmall = 1, | ||
/// <summary>The small image size (32 x 32).</summary> | ||
Small = 2, | ||
/// <summary>The medium image size (64 x 64).</summary> | ||
Medium = 3, | ||
/// <summary>The large image size (128 x 128).</summary> | ||
Large = 4, | ||
/// <summary>The extra large image size (256 x 256).</summary> | ||
ExtraLarge = 5 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
Source/Krypton Components/Krypton.Toolkit/Values/UACShieldValues.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#region BSD License | ||
/* | ||
* | ||
* New BSD 3-Clause License (https://github.com/Krypton-Suite/Standard-Toolkit/blob/master/LICENSE) | ||
* Modifications by Peter Wagner(aka Wagnerp) & Simon Coghlan(aka Smurf-IV), et al. 2017 - 2023. All rights reserved. | ||
* | ||
*/ | ||
#endregion | ||
|
||
namespace Krypton.Toolkit | ||
{ | ||
public class UACShieldValues : ButtonValues | ||
{ | ||
#region Instance Fields | ||
|
||
private bool _useAsUACShieldButton; | ||
|
||
private bool _useOSStyleImage; | ||
|
||
private UACShieldIconSize _iconSize; | ||
|
||
private Size _customImageSize; | ||
|
||
#endregion | ||
|
||
public override bool IsDefault => | ||
(UseAsUACShieldButton == false) && | ||
(UseOSStyleImage == false) && | ||
(ShieldIconSize == UACShieldIconSize.ExtraSmall) && | ||
(CustomImageSize == null); | ||
|
||
#region Identity | ||
|
||
public UACShieldValues(NeedPaintHandler needPaint) : base(needPaint) | ||
{ | ||
} | ||
|
||
#endregion | ||
|
||
#region Public | ||
|
||
public bool UseAsUACShieldButton { get => _useAsUACShieldButton; set => _useAsUACShieldButton = value; } | ||
|
||
public bool UseOSStyleImage { get => _useOSStyleImage; set => _useOSStyleImage = value; } | ||
|
||
public UACShieldIconSize ShieldIconSize { get => _iconSize; set => _iconSize = value; } | ||
|
||
public Size CustomImageSize { get => _customImageSize; set => _customImageSize = value; } | ||
|
||
#endregion | ||
} | ||
} |
Oops, something went wrong.