Skip to content
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions Documents/Changelog/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@

## 2026-11-xx - Build 2611 (V110 Nightly) - November 2026

* Implemented [#1738](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1738), Move methods out of `GlobalStaticVariables` into 'new' `GlobalStaticFunctions`
* Implemented [#2125](https://github.com/Krypton-Suite/Standard-Toolkit/issues/2125), Adding `NotificationIcon Size` in `ToastNotification`. Added `NotificationIconWidth` and `NotificationIconHeight` to toast data models and wired basic toast views to render and layout icons using custom dimensions.
* Resolved [#3342](https://github.com/Krypton-Suite/Standard-Toolkit/issues/3342), `KryptonTextBox`, text flickers when resizing the control (multiline active)
* Resolved [#3348](https://github.com/Krypton-Suite/Standard-Toolkit/issues/3348), Cannot install `Krypton.Standard.Toolkit` NuGet package
* Resolved [#3341](https://github.com/Krypton-Suite/Standard-Toolkit/issues/3341), Discord notifications report the wrong version number
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public ViewDrawAutoHiddenTab([DisallowNull] KryptonPage page,
/// </summary>
/// <param name="state">The state for which the overlay image is needed.</param>
/// <returns>Color value.</returns>
public Color GetOverlayImageTransparentColor(PaletteState state) => GlobalStaticValues.EMPTY_COLOR;
public Color GetOverlayImageTransparentColor(PaletteState state) => GlobalStaticVariables.EMPTY_COLOR;

/// <summary>
/// Gets the position of the overlay image relative to the main image.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public override void Start(IPaletteDragDrop paletteDragDrop,
// Create and show a solid feedback window without it taking focus.
// Position off-screen initially to avoid a visible 1x1 artifact at top-left (0,0).
_solid = new DropSolidWindow(PaletteDragDrop, Renderer);
_solid.SetBounds(GlobalStaticValues.OFF_SCREEN_POSITION, GlobalStaticValues.OFF_SCREEN_POSITION, 1, 1, BoundsSpecified.All);
_solid.SetBounds(GlobalStaticConstants.OFF_SCREEN_POSITION, GlobalStaticConstants.OFF_SCREEN_POSITION, 1, 1, BoundsSpecified.All);
_solid.ShowWithoutActivate();
_solid.Refresh();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public override void Start(IPaletteDragDrop paletteDragDrop,
// Create and show a window without it taking focus.
// Position off-screen initially to avoid a visible 1x1 artifact at top-left (0,0).
_solid = new DropSolidWindow(PaletteDragDrop, Renderer);
_solid.SetBounds(GlobalStaticValues.OFF_SCREEN_POSITION, GlobalStaticValues.OFF_SCREEN_POSITION, 1, 1, BoundsSpecified.All);
_solid.SetBounds(GlobalStaticConstants.OFF_SCREEN_POSITION, GlobalStaticConstants.OFF_SCREEN_POSITION, 1, 1, BoundsSpecified.All);
_solid.ShowWithoutActivate();
_solid.Refresh();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ public DropSolidWindow(IPaletteDragDrop paletteDragDrop, IRenderer renderer)
MaximizeBox = false;
MinimizeBox = false;
ShowInTaskbar = false;
BackColor = GlobalStaticValues.TRANSPARENCY_KEY_COLOR;
TransparencyKey = GlobalStaticValues.TRANSPARENCY_KEY_COLOR;
BackColor = GlobalStaticVariables.TRANSPARENCY_KEY_COLOR;
TransparencyKey = GlobalStaticVariables.TRANSPARENCY_KEY_COLOR;
Opacity = _paletteDragDrop.GetDragDropSolidOpacity();
}

Expand Down Expand Up @@ -85,7 +85,7 @@ public Rectangle SolidRect
if (value.IsEmpty)
{
// Move off-screen to avoid a visible artifact at (0,0) when no target is matched
bounds = new Rectangle(GlobalStaticValues.OFF_SCREEN_POSITION, GlobalStaticValues.OFF_SCREEN_POSITION, 0, 0);
bounds = new Rectangle(GlobalStaticConstants.OFF_SCREEN_POSITION, GlobalStaticConstants.OFF_SCREEN_POSITION, 0, 0);
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public PageToToolTipMapping([DisallowNull] KryptonPage page,
/// </summary>
/// <param name="state">The state for which the overlay image is needed.</param>
/// <returns>Color value.</returns>
public Color GetOverlayImageTransparentColor(PaletteState state) => GlobalStaticValues.EMPTY_COLOR;
public Color GetOverlayImageTransparentColor(PaletteState state) => GlobalStaticVariables.EMPTY_COLOR;

/// <summary>
/// Gets the position of the overlay image relative to the main image.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ public override void Initialize([DisallowNull] IComponent component)
}

// Get access to the services
_designerHost = (IDesignerHost?)GetService(typeof(IDesignerHost)) ?? throw new NullReferenceException(GlobalStaticValues.VariableCannotBeNull(nameof(_designerHost)));
_changeService = (IComponentChangeService?)GetService(typeof(IComponentChangeService)) ?? throw new NullReferenceException(GlobalStaticValues.VariableCannotBeNull(nameof(_changeService)));
_selectionService = (ISelectionService?)GetService(typeof(ISelectionService)) ?? throw new NullReferenceException(GlobalStaticValues.VariableCannotBeNull(nameof(_selectionService)));
_designerHost = (IDesignerHost?)GetService(typeof(IDesignerHost)) ?? throw new NullReferenceException(GlobalStaticFunctions.VariableCannotBeNull(nameof(_designerHost)));
_changeService = (IComponentChangeService?)GetService(typeof(IComponentChangeService)) ?? throw new NullReferenceException(GlobalStaticFunctions.VariableCannotBeNull(nameof(_changeService)));
_selectionService = (ISelectionService?)GetService(typeof(ISelectionService)) ?? throw new NullReferenceException(GlobalStaticFunctions.VariableCannotBeNull(nameof(_selectionService)));

// We need to know when we are being removed
_changeService.ComponentRemoving += OnComponentRemoving;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ public override void Initialize([DisallowNull] IComponent component)
}

// Acquire service interfaces
_selectionService = (ISelectionService?)GetService(typeof(ISelectionService)) ?? throw new NullReferenceException(GlobalStaticValues.VariableCannotBeNull(nameof(_selectionService)));
_changeService = (IComponentChangeService?)GetService(typeof(IComponentChangeService)) ?? throw new NullReferenceException(GlobalStaticValues.VariableCannotBeNull(nameof(_changeService)));
_selectionService = (ISelectionService?)GetService(typeof(ISelectionService)) ?? throw new NullReferenceException(GlobalStaticFunctions.VariableCannotBeNull(nameof(_selectionService)));
_changeService = (IComponentChangeService?)GetService(typeof(IComponentChangeService)) ?? throw new NullReferenceException(GlobalStaticFunctions.VariableCannotBeNull(nameof(_changeService)));

// We need to know when we are being removed
_changeService.ComponentRemoving += OnComponentRemoving;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2121,8 +2121,8 @@ private void OnDropDownClick(object? sender, EventArgs e)
addRemoveButtons.Items.Add(addRemoveButtonItems);

// Setup the transparent color for the images
moreButtons.ImageTransparentColor = GlobalStaticValues.TRANSPARENCY_KEY_COLOR;
fewerButtons.ImageTransparentColor = GlobalStaticValues.TRANSPARENCY_KEY_COLOR;
moreButtons.ImageTransparentColor = GlobalStaticVariables.TRANSPARENCY_KEY_COLOR;
fewerButtons.ImageTransparentColor = GlobalStaticVariables.TRANSPARENCY_KEY_COLOR;

// Decide if the more/fewer buttons should be enabled/disabled
moreButtons.Enabled = AreMoreButtons();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public override void Construct([DisallowNull] KryptonNavigator navigator,
base.Construct(navigator, manager, redirector);

// Get the current root element
_oldRoot = ViewManager!.Root as ViewLayoutPageShow ?? throw new NullReferenceException(GlobalStaticValues.VariableCannotBeNull(nameof(ViewManager.Root)));
_oldRoot = ViewManager!.Root as ViewLayoutPageShow ?? throw new NullReferenceException(GlobalStaticFunctions.VariableCannotBeNull(nameof(ViewManager.Root)));

// Create and initialize all objects
ViewManager.Root = CreateStackCheckButtonView()!;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ public virtual KryptonPage? Page
/// </summary>
/// <param name="state">The state for which the overlay image is needed.</param>
/// <returns>Color value.</returns>
public virtual Color GetOverlayImageTransparentColor(PaletteState state) => GlobalStaticValues.EMPTY_COLOR;
public virtual Color GetOverlayImageTransparentColor(PaletteState state) => GlobalStaticVariables.EMPTY_COLOR;

/// <summary>
/// Gets the position of the overlay image relative to the main image.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ public override void Render([DisallowNull] RenderContext context)
/// </summary>
/// <param name="state">The state for which the overlay image is needed.</param>
/// <returns>Color value.</returns>
public Color GetOverlayImageTransparentColor(PaletteState state) => GlobalStaticValues.EMPTY_COLOR;
public Color GetOverlayImageTransparentColor(PaletteState state) => GlobalStaticVariables.EMPTY_COLOR;

/// <summary>
/// Gets the position of the overlay image relative to the main image.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,12 +255,12 @@ public void KeyDown(Control c, KeyEventArgs e)

if (ribbon is null)
{
throw new NullReferenceException(GlobalStaticValues.VariableCannotBeNull(nameof(ribbon)));
throw new NullReferenceException(GlobalStaticFunctions.VariableCannotBeNull(nameof(ribbon)));
}

if (ribbon.TabsArea is null)
{
throw new NullReferenceException(GlobalStaticValues.PropertyCannotBeNull(nameof(ribbon.TabsArea)));
throw new NullReferenceException(GlobalStaticFunctions.PropertyCannotBeNull(nameof(ribbon.TabsArea)));
}

switch (e.KeyData)
Expand Down Expand Up @@ -390,7 +390,7 @@ public void KeyTipSelect(KryptonRibbon? ribbon)

if (ribbon.TabsArea is null)
{
throw new NullReferenceException(GlobalStaticValues.PropertyCannotBeNull(nameof(ribbon.TabsArea)));
throw new NullReferenceException(GlobalStaticFunctions.PropertyCannotBeNull(nameof(ribbon.TabsArea)));
}

// We leave key tips usage whenever we use the application button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,12 @@ public void KeyDown(Control c, KeyEventArgs e)

if (ribbon is null)
{
throw new NullReferenceException(GlobalStaticValues.VariableCannotBeNull(nameof(ribbon)));
throw new NullReferenceException(GlobalStaticFunctions.VariableCannotBeNull(nameof(ribbon)));
}

if (ribbon.TabsArea is null)
{
throw new NullReferenceException(GlobalStaticValues.PropertyCannotBeNull(nameof(ribbon.TabsArea)));
throw new NullReferenceException(GlobalStaticFunctions.PropertyCannotBeNull(nameof(ribbon.TabsArea)));
}

switch (e.KeyData)
Expand Down Expand Up @@ -376,12 +376,12 @@ public void KeyTipSelect(KryptonRibbon? ribbon)
{
if (ribbon is null)
{
throw new NullReferenceException(GlobalStaticValues.ParameterCannotBeNull("ribbon"));
throw new NullReferenceException(GlobalStaticFunctions.ParameterCannotBeNull("ribbon"));
}

if (ribbon.TabsArea is null)
{
throw new NullReferenceException(GlobalStaticValues.PropertyCannotBeNull("ribbon.TabsArea"));
throw new NullReferenceException(GlobalStaticFunctions.PropertyCannotBeNull("ribbon.TabsArea"));
}

// We leave key tips usage whenever we use the application button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,21 @@ public override void KeyDown(Control c, KeyEventArgs e)

if (ribbon is null)
{
throw new NullReferenceException(GlobalStaticValues.VariableCannotBeNull(nameof(ribbon)));
throw new NullReferenceException(GlobalStaticFunctions.VariableCannotBeNull(nameof(ribbon)));
}

if (ribbon.TabsArea is null)
{
throw new NullReferenceException(GlobalStaticValues.PropertyCannotBeNull(nameof(ribbon.TabsArea)));
throw new NullReferenceException(GlobalStaticFunctions.PropertyCannotBeNull(nameof(ribbon.TabsArea)));
}

if (ribbon.TabsArea.ButtonSpecManager is null)
{
throw new NullReferenceException(GlobalStaticValues.PropertyCannotBeNull(nameof(ribbon.TabsArea.ButtonSpecManager)));
throw new NullReferenceException(GlobalStaticFunctions.PropertyCannotBeNull(nameof(ribbon.TabsArea.ButtonSpecManager)));
}

// Get the button spec associated with this controller
ViewDrawButton? viewButton = Target as ViewDrawButton ?? throw new NullReferenceException(GlobalStaticValues.VariableCannotBeNull(nameof(Target)));
ViewDrawButton? viewButton = Target as ViewDrawButton ?? throw new NullReferenceException(GlobalStaticFunctions.VariableCannotBeNull(nameof(Target)));

ButtonSpec? buttonSpec = ribbon.TabsArea.ButtonSpecManager.GetButtonSpecFromView(viewButton) ?? throw new NullReferenceException( "ribbon.TabsArea.ButtonSpecManager.GetButtonSpecFromView(viewButton) returned null.");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ private void KeyDownRibbon(KryptonRibbon? ribbon, KeyEventArgs e)

if (ribbon.TabsArea is null)
{
throw new NullReferenceException(GlobalStaticValues.PropertyCannotBeNull(nameof(ribbon.TabsArea)));
throw new NullReferenceException(GlobalStaticFunctions.PropertyCannotBeNull(nameof(ribbon.TabsArea)));
}

switch (e.KeyData)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ public ComboBoxController([DisallowNull] KryptonRibbon ribbon,
[DisallowNull] KryptonRibbonGroupComboBox comboBox,
[DisallowNull] ViewDrawRibbonGroupComboBox target)
{
_ribbon = ribbon ?? throw new Exception( GlobalStaticValues.VariableCannotBeNull(nameof(_ribbon)));
_comboBox = comboBox ?? throw new Exception(GlobalStaticValues.VariableCannotBeNull(nameof(_comboBox)));
_target = target ?? throw new Exception(GlobalStaticValues.VariableCannotBeNull(nameof(_target)));
_ribbon = ribbon ?? throw new Exception( GlobalStaticFunctions.VariableCannotBeNull(nameof(_ribbon)));
_comboBox = comboBox ?? throw new Exception(GlobalStaticFunctions.VariableCannotBeNull(nameof(_comboBox)));
_target = target ?? throw new Exception(GlobalStaticFunctions.VariableCannotBeNull(nameof(_target)));
}
#endregion

Expand Down Expand Up @@ -158,7 +158,7 @@ private void KeyDownRibbon(KryptonRibbon? ribbon, KeyEventArgs e)

if (ribbon.TabsArea is null)
{
throw new NullReferenceException(GlobalStaticValues.PropertyCannotBeNull(nameof(ribbon.TabsArea)));
throw new NullReferenceException(GlobalStaticFunctions.PropertyCannotBeNull(nameof(ribbon.TabsArea)));
}

switch (e.KeyData)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,12 @@ private void KeyDownRibbon(KryptonRibbon? ribbon, KeyEventArgs e)

if (ribbon is null)
{
throw new ArgumentNullException(GlobalStaticValues.ParameterCannotBeNull(nameof(ribbon)));
throw new ArgumentNullException(GlobalStaticFunctions.ParameterCannotBeNull(nameof(ribbon)));
}

if (ribbon.TabsArea is null)
{
throw new NullReferenceException(GlobalStaticValues.ParameterCannotBeNull(nameof(ribbon.TabsArea)));
throw new NullReferenceException(GlobalStaticFunctions.ParameterCannotBeNull(nameof(ribbon.TabsArea)));
}

switch (e.KeyData)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ private void KeyDownRibbon(KryptonRibbon? ribbon, KeyEventArgs e)

if (ribbon.TabsArea is null)
{
throw new NullReferenceException(GlobalStaticValues.PropertyCannotBeNull(nameof(ribbon.TabsArea)));
throw new NullReferenceException(GlobalStaticFunctions.PropertyCannotBeNull(nameof(ribbon.TabsArea)));
}

switch (e.KeyData)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ private void KeyDownRibbon(KeyEventArgs e)

if (Ribbon.TabsArea is null)
{
throw new NullReferenceException(GlobalStaticValues.PropertyCannotBeNull(nameof(Ribbon.TabsArea)));
throw new NullReferenceException(GlobalStaticFunctions.PropertyCannotBeNull(nameof(Ribbon.TabsArea)));
}

switch (e.KeyData)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ private void KeyDownRibbon(KryptonRibbon? ribbon, KeyEventArgs e)

if (ribbon.TabsArea is null)
{
throw new NullReferenceException(GlobalStaticValues.PropertyCannotBeNull(nameof(ribbon.TabsArea)));
throw new NullReferenceException(GlobalStaticFunctions.PropertyCannotBeNull(nameof(ribbon.TabsArea)));
}

switch (e.KeyData)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ private void KeyDownRibbon(KryptonRibbon? ribbon, KeyEventArgs e)

if (ribbon.TabsArea is null)
{
throw new NullReferenceException(GlobalStaticValues.PropertyCannotBeNull(nameof(ribbon.TabsArea)));
throw new NullReferenceException(GlobalStaticFunctions.PropertyCannotBeNull(nameof(ribbon.TabsArea)));
}

switch (e.KeyData)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ private void KeyDownRibbon(KryptonRibbon? ribbon, KeyEventArgs e)

if (ribbon.TabsArea is null)
{
throw new NullReferenceException(GlobalStaticValues.PropertyCannotBeNull(nameof(ribbon.TabsArea)));
throw new NullReferenceException(GlobalStaticFunctions.PropertyCannotBeNull(nameof(ribbon.TabsArea)));
}

switch (e.KeyData)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -443,12 +443,12 @@ private void KeyDownRibbon(KryptonRibbon? ribbon, KeyEventArgs e)

if (ribbon is null)
{
throw new NullReferenceException(GlobalStaticValues.ParameterCannotBeNull(nameof(ribbon)));
throw new NullReferenceException(GlobalStaticFunctions.ParameterCannotBeNull(nameof(ribbon)));
}

if (ribbon.TabsArea is null)
{
throw new NullReferenceException(GlobalStaticValues.PropertyCannotBeNull(nameof(ribbon.TabsArea)));
throw new NullReferenceException(GlobalStaticFunctions.PropertyCannotBeNull(nameof(ribbon.TabsArea)));
}

switch (e.KeyData)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -443,12 +443,12 @@ private void KeyDownRibbon(KryptonRibbon ribbon, KeyEventArgs e)

if (ribbon is null)
{
throw new NullReferenceException(GlobalStaticValues.ParameterCannotBeNull(nameof(ribbon)));
throw new NullReferenceException(GlobalStaticFunctions.ParameterCannotBeNull(nameof(ribbon)));
}

if (ribbon.TabsArea is null)
{
throw new NullReferenceException(GlobalStaticValues.PropertyCannotBeNull(nameof(ribbon.TabsArea)));
throw new NullReferenceException(GlobalStaticFunctions.PropertyCannotBeNull(nameof(ribbon.TabsArea)));
}

switch (e.KeyData)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,12 @@ private void KeyDownRibbon(KryptonRibbon? ribbon, KeyEventArgs e)

if (ribbon is null)
{
throw new NullReferenceException(GlobalStaticValues.ParameterCannotBeNull(nameof(ribbon)));
throw new NullReferenceException(GlobalStaticFunctions.ParameterCannotBeNull(nameof(ribbon)));
}

if (ribbon.TabsArea is null)
{
throw new NullReferenceException(GlobalStaticValues.PropertyCannotBeNull(nameof(ribbon.TabsArea)));
throw new NullReferenceException(GlobalStaticFunctions.PropertyCannotBeNull(nameof(ribbon.TabsArea)));
}

switch (e.KeyData)
Expand Down
Loading
Loading