Skip to content

Commit 091e317

Browse files
authored
Merge branch 'alpha' into 2898-feature-request-kryptonhscrollbar-kryptonvscrollbar---part-of-2658
2 parents c55f340 + 857ae8c commit 091e317

File tree

101 files changed

+24121
-12306
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+24121
-12306
lines changed

Documents/Changelog/Changelog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
## 2026-11-xx - Build 2611 (V110 Nightly) - November 2026
66

77
* Implemented [#2898](https://github.com/Krypton-Suite/Standard-Toolkit/issues/2898), `KryptonHScrollBar` & `KryptonVScrollBar` - Part of #2658
8+
* Resolved/Implemented [#2844](https://github.com/Krypton-Suite/Standard-Toolkit/issues/2844), Touchscreen High DPI scaling
9+
* Implemented [#2808](https://github.com/Krypton-Suite/Standard-Toolkit/issues/2808), Move `KryptonToastNotification` feature to `Krypton.Utilities`
10+
* Implemented [#2572](https://github.com/Krypton-Suite/Standard-Toolkit/issues/2572), Autocomplete control/menu
11+
- To use, you will need to download the `Krypton.Standard.Toolkit` NuGet package, as this control is part of the `Krypton.Utilities` assembly.
12+
* Implemented [#2812](https://github.com/Krypton-Suite/Standard-Toolkit/issues/2812), Code Editor Control
13+
- To use, you will need to download the `Krypton.Standard.Toolkit` NuGet package, as this control is part of the `Krypton.Utilities` assembly.
14+
* Implemented [#1205](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1205), Overlay Images within Krypton Toolkit controls (Not Taskbar)
815
* Resolved [#2886](https://github.com/Krypton-Suite/Standard-Toolkit/issues/2886), Jump list support
916
* Implemented [#2882](https://github.com/Krypton-Suite/Standard-Toolkit/issues/2882), `KryptonPrintPreviewDialog` - Part of #2658
1017
* Resolved [#2103](https://github.com/Krypton-Suite/Standard-Toolkit/issues/2103), Ensure that `KryptonForm` properly supports RTL/LTR

Source/Krypton Components/Krypton.Docking/ViewDraw/ViewDrawAutoHiddenTab.cs

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,47 @@ public ViewDrawAutoHiddenTab([DisallowNull] KryptonPage page,
7878
/// <returns>String value.</returns>
7979
public string GetLongText() => string.Empty;
8080

81+
/// <summary>
82+
/// Gets the overlay image.
83+
/// </summary>
84+
/// <param name="state">The state for which the overlay image is needed.</param>
85+
/// <returns>Overlay image value, or null if no overlay image is set.</returns>
86+
public Image? GetOverlayImage(PaletteState state) => null;
87+
88+
/// <summary>
89+
/// Gets the overlay image color that should be transparent.
90+
/// </summary>
91+
/// <param name="state">The state for which the overlay image is needed.</param>
92+
/// <returns>Color value.</returns>
93+
public Color GetOverlayImageTransparentColor(PaletteState state) => GlobalStaticValues.EMPTY_COLOR;
94+
95+
/// <summary>
96+
/// Gets the position of the overlay image relative to the main image.
97+
/// </summary>
98+
/// <param name="state">The state for which the overlay position is needed.</param>
99+
/// <returns>Overlay image position.</returns>
100+
public OverlayImagePosition GetOverlayImagePosition(PaletteState state) => OverlayImagePosition.TopRight;
101+
102+
/// <summary>
103+
/// Gets the scaling mode for the overlay image.
104+
/// </summary>
105+
/// <param name="state">The state for which the overlay scale mode is needed.</param>
106+
/// <returns>Overlay image scale mode.</returns>
107+
public OverlayImageScaleMode GetOverlayImageScaleMode(PaletteState state) => OverlayImageScaleMode.None;
108+
109+
/// <summary>
110+
/// Gets the scale factor for the overlay image (used when scale mode is Percentage or ProportionalToMain).
111+
/// </summary>
112+
/// <param name="state">The state for which the overlay scale factor is needed.</param>
113+
/// <returns>Scale factor (0.0 to 2.0).</returns>
114+
public float GetOverlayImageScaleFactor(PaletteState state) => 0.5f;
115+
116+
/// <summary>
117+
/// Gets the fixed size for the overlay image (used when scale mode is FixedSize).
118+
/// </summary>
119+
/// <param name="state">The state for which the overlay fixed size is needed.</param>
120+
/// <returns>Fixed size.</returns>
121+
public Size GetOverlayImageFixedSize(PaletteState state) => new Size(16, 16);
122+
81123
#endregion
82124
}

Source/Krypton Components/Krypton.Navigator/General/PageToToolTipMapping.cs

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,47 @@ public PageToToolTipMapping([DisallowNull] KryptonPage page,
8383
/// <returns>String value.</returns>
8484
public string GetLongText() => _page.GetTextMapping(_mapExtraText);
8585

86+
/// <summary>
87+
/// Gets the overlay image.
88+
/// </summary>
89+
/// <param name="state">The state for which the overlay image is needed.</param>
90+
/// <returns>Overlay image value, or null if no overlay image is set.</returns>
91+
public Image? GetOverlayImage(PaletteState state) => null;
92+
93+
/// <summary>
94+
/// Gets the overlay image color that should be transparent.
95+
/// </summary>
96+
/// <param name="state">The state for which the overlay image is needed.</param>
97+
/// <returns>Color value.</returns>
98+
public Color GetOverlayImageTransparentColor(PaletteState state) => GlobalStaticValues.EMPTY_COLOR;
99+
100+
/// <summary>
101+
/// Gets the position of the overlay image relative to the main image.
102+
/// </summary>
103+
/// <param name="state">The state for which the overlay position is needed.</param>
104+
/// <returns>Overlay image position.</returns>
105+
public OverlayImagePosition GetOverlayImagePosition(PaletteState state) => OverlayImagePosition.TopRight;
106+
107+
/// <summary>
108+
/// Gets the scaling mode for the overlay image.
109+
/// </summary>
110+
/// <param name="state">The state for which the overlay scale mode is needed.</param>
111+
/// <returns>Overlay image scale mode.</returns>
112+
public OverlayImageScaleMode GetOverlayImageScaleMode(PaletteState state) => OverlayImageScaleMode.None;
113+
114+
/// <summary>
115+
/// Gets the scale factor for the overlay image (used when scale mode is Percentage or ProportionalToMain).
116+
/// </summary>
117+
/// <param name="state">The state for which the overlay scale factor is needed.</param>
118+
/// <returns>Scale factor (0.0 to 2.0).</returns>
119+
public float GetOverlayImageScaleFactor(PaletteState state) => 0.5f;
120+
121+
/// <summary>
122+
/// Gets the fixed size for the overlay image (used when scale mode is FixedSize).
123+
/// </summary>
124+
/// <param name="state">The state for which the overlay fixed size is needed.</param>
125+
/// <returns>Fixed size.</returns>
126+
public Size GetOverlayImageFixedSize(PaletteState state) => new Size(16, 16);
127+
86128
#endregion
87129
}

Source/Krypton Components/Krypton.Navigator/View Draw/ViewDrawNavCheckButtonBase.cs

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,49 @@ public virtual KryptonPage? Page
335335
/// </summary>
336336
/// <returns>String value.</returns>
337337
public abstract string GetLongText();
338+
339+
/// <summary>
340+
/// Gets the overlay image.
341+
/// </summary>
342+
/// <param name="state">The state for which the overlay image is needed.</param>
343+
/// <returns>Overlay image value, or null if no overlay image is set.</returns>
344+
public virtual Image? GetOverlayImage(PaletteState state) => null;
345+
346+
/// <summary>
347+
/// Gets the overlay image color that should be transparent.
348+
/// </summary>
349+
/// <param name="state">The state for which the overlay image is needed.</param>
350+
/// <returns>Color value.</returns>
351+
public virtual Color GetOverlayImageTransparentColor(PaletteState state) => GlobalStaticValues.EMPTY_COLOR;
352+
353+
/// <summary>
354+
/// Gets the position of the overlay image relative to the main image.
355+
/// </summary>
356+
/// <param name="state">The state for which the overlay position is needed.</param>
357+
/// <returns>Overlay image position.</returns>
358+
public virtual OverlayImagePosition GetOverlayImagePosition(PaletteState state) => OverlayImagePosition.TopRight;
359+
360+
/// <summary>
361+
/// Gets the scaling mode for the overlay image.
362+
/// </summary>
363+
/// <param name="state">The state for which the overlay scale mode is needed.</param>
364+
/// <returns>Overlay image scale mode.</returns>
365+
public virtual OverlayImageScaleMode GetOverlayImageScaleMode(PaletteState state) => OverlayImageScaleMode.None;
366+
367+
/// <summary>
368+
/// Gets the scale factor for the overlay image (used when scale mode is Percentage or ProportionalToMain).
369+
/// </summary>
370+
/// <param name="state">The state for which the overlay scale factor is needed.</param>
371+
/// <returns>Scale factor (0.0 to 2.0).</returns>
372+
public virtual float GetOverlayImageScaleFactor(PaletteState state) => 0.5f;
373+
374+
/// <summary>
375+
/// Gets the fixed size for the overlay image (used when scale mode is FixedSize).
376+
/// </summary>
377+
/// <param name="state">The state for which the overlay fixed size is needed.</param>
378+
/// <returns>Fixed size.</returns>
379+
public virtual Size GetOverlayImageFixedSize(PaletteState state) => new Size(16, 16);
380+
338381
#endregion
339382

340383
#region ButtonClickOnDown

Source/Krypton Components/Krypton.Navigator/View Draw/ViewDrawNavRibbonTab.cs

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,48 @@ public override void Render([DisallowNull] RenderContext context)
397397
/// <returns>String value.</returns>
398398
public string GetLongText() => Page!.GetTextMapping(Navigator.Bar.BarMapExtraText);
399399

400+
/// <summary>
401+
/// Gets the overlay image.
402+
/// </summary>
403+
/// <param name="state">The state for which the overlay image is needed.</param>
404+
/// <returns>Overlay image value, or null if no overlay image is set.</returns>
405+
public Image? GetOverlayImage(PaletteState state) => null;
406+
407+
/// <summary>
408+
/// Gets the overlay image color that should be transparent.
409+
/// </summary>
410+
/// <param name="state">The state for which the overlay image is needed.</param>
411+
/// <returns>Color value.</returns>
412+
public Color GetOverlayImageTransparentColor(PaletteState state) => GlobalStaticValues.EMPTY_COLOR;
413+
414+
/// <summary>
415+
/// Gets the position of the overlay image relative to the main image.
416+
/// </summary>
417+
/// <param name="state">The state for which the overlay position is needed.</param>
418+
/// <returns>Overlay image position.</returns>
419+
public OverlayImagePosition GetOverlayImagePosition(PaletteState state) => OverlayImagePosition.TopRight;
420+
421+
/// <summary>
422+
/// Gets the scaling mode for the overlay image.
423+
/// </summary>
424+
/// <param name="state">The state for which the overlay scale mode is needed.</param>
425+
/// <returns>Overlay image scale mode.</returns>
426+
public OverlayImageScaleMode GetOverlayImageScaleMode(PaletteState state) => OverlayImageScaleMode.None;
427+
428+
/// <summary>
429+
/// Gets the scale factor for the overlay image (used when scale mode is Percentage or ProportionalToMain).
430+
/// </summary>
431+
/// <param name="state">The state for which the overlay scale factor is needed.</param>
432+
/// <returns>Scale factor (0.0 to 2.0).</returns>
433+
public float GetOverlayImageScaleFactor(PaletteState state) => 0.5f;
434+
435+
/// <summary>
436+
/// Gets the fixed size for the overlay image (used when scale mode is FixedSize).
437+
/// </summary>
438+
/// <param name="state">The state for which the overlay fixed size is needed.</param>
439+
/// <returns>Fixed size.</returns>
440+
public Size GetOverlayImageFixedSize(PaletteState state) => new Size(16, 16);
441+
400442
#endregion
401443

402444
#region Protected

Source/Krypton Components/Krypton.Ribbon/Palette/AppButtonToolTipToContent.cs

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,47 @@ public AppButtonToolTipToContent([DisallowNull] KryptonRibbon ribbon)
6868
/// <returns>String value.</returns>
6969
public string GetLongText() => _ribbon.RibbonFileAppButton.AppButtonToolTipBody;
7070

71+
/// <summary>
72+
/// Gets the overlay image.
73+
/// </summary>
74+
/// <param name="state">The state for which the overlay image is needed.</param>
75+
/// <returns>Overlay image value, or null if no overlay image is set.</returns>
76+
public Image? GetOverlayImage(PaletteState state) => null;
77+
78+
/// <summary>
79+
/// Gets the overlay image color that should be transparent.
80+
/// </summary>
81+
/// <param name="state">The state for which the overlay image is needed.</param>
82+
/// <returns>Color value.</returns>
83+
public Color GetOverlayImageTransparentColor(PaletteState state) => GlobalStaticValues.EMPTY_COLOR;
84+
85+
/// <summary>
86+
/// Gets the position of the overlay image relative to the main image.
87+
/// </summary>
88+
/// <param name="state">The state for which the overlay position is needed.</param>
89+
/// <returns>Overlay image position.</returns>
90+
public OverlayImagePosition GetOverlayImagePosition(PaletteState state) => OverlayImagePosition.TopRight;
91+
92+
/// <summary>
93+
/// Gets the scaling mode for the overlay image.
94+
/// </summary>
95+
/// <param name="state">The state for which the overlay scale mode is needed.</param>
96+
/// <returns>Overlay image scale mode.</returns>
97+
public OverlayImageScaleMode GetOverlayImageScaleMode(PaletteState state) => OverlayImageScaleMode.None;
98+
99+
/// <summary>
100+
/// Gets the scale factor for the overlay image (used when scale mode is Percentage or ProportionalToMain).
101+
/// </summary>
102+
/// <param name="state">The state for which the overlay scale factor is needed.</param>
103+
/// <returns>Scale factor (0.0 to 2.0).</returns>
104+
public float GetOverlayImageScaleFactor(PaletteState state) => 0.5f;
105+
106+
/// <summary>
107+
/// Gets the fixed size for the overlay image (used when scale mode is FixedSize).
108+
/// </summary>
109+
/// <param name="state">The state for which the overlay fixed size is needed.</param>
110+
/// <returns>Fixed size.</returns>
111+
public Size GetOverlayImageFixedSize(PaletteState state) => new Size(16, 16);
112+
71113
#endregion
72114
}

Source/Krypton Components/Krypton.Ribbon/Palette/QATButtonToolTipToContent.cs

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,47 @@ public QATButtonToolTipToContent([DisallowNull] IQuickAccessToolbarButton qatBut
7373
/// <returns>String value.</returns>
7474
public string GetLongText() => _qatButton.GetToolTipBody();
7575

76+
/// <summary>
77+
/// Gets the overlay image.
78+
/// </summary>
79+
/// <param name="state">The state for which the overlay image is needed.</param>
80+
/// <returns>Overlay image value, or null if no overlay image is set.</returns>
81+
public Image? GetOverlayImage(PaletteState state) => null;
82+
83+
/// <summary>
84+
/// Gets the overlay image color that should be transparent.
85+
/// </summary>
86+
/// <param name="state">The state for which the overlay image is needed.</param>
87+
/// <returns>Color value.</returns>
88+
public Color GetOverlayImageTransparentColor(PaletteState state) => GlobalStaticValues.EMPTY_COLOR;
89+
90+
/// <summary>
91+
/// Gets the position of the overlay image relative to the main image.
92+
/// </summary>
93+
/// <param name="state">The state for which the overlay position is needed.</param>
94+
/// <returns>Overlay image position.</returns>
95+
public OverlayImagePosition GetOverlayImagePosition(PaletteState state) => OverlayImagePosition.TopRight;
96+
97+
/// <summary>
98+
/// Gets the scaling mode for the overlay image.
99+
/// </summary>
100+
/// <param name="state">The state for which the overlay scale mode is needed.</param>
101+
/// <returns>Overlay image scale mode.</returns>
102+
public OverlayImageScaleMode GetOverlayImageScaleMode(PaletteState state) => OverlayImageScaleMode.None;
103+
104+
/// <summary>
105+
/// Gets the scale factor for the overlay image (used when scale mode is Percentage or ProportionalToMain).
106+
/// </summary>
107+
/// <param name="state">The state for which the overlay scale factor is needed.</param>
108+
/// <returns>Scale factor (0.0 to 2.0).</returns>
109+
public float GetOverlayImageScaleFactor(PaletteState state) => 0.5f;
110+
111+
/// <summary>
112+
/// Gets the fixed size for the overlay image (used when scale mode is FixedSize).
113+
/// </summary>
114+
/// <param name="state">The state for which the overlay fixed size is needed.</param>
115+
/// <returns>Fixed size.</returns>
116+
public Size GetOverlayImageFixedSize(PaletteState state) => new Size(16, 16);
117+
76118
#endregion
77119
}

Source/Krypton Components/Krypton.Ribbon/View Draw/ViewDrawRibbonContextTitle.cs

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,5 +449,47 @@ private Color CheckForContextColor() =>
449449
/// <returns>Title string.</returns>
450450
public string GetLongText() => string.Empty;
451451

452+
/// <summary>
453+
/// Gets the overlay image.
454+
/// </summary>
455+
/// <param name="state">The state for which the overlay image is needed.</param>
456+
/// <returns>Overlay image value, or null if no overlay image is set.</returns>
457+
public Image? GetOverlayImage(PaletteState state) => null;
458+
459+
/// <summary>
460+
/// Gets the overlay image color that should be transparent.
461+
/// </summary>
462+
/// <param name="state">The state for which the overlay image is needed.</param>
463+
/// <returns>Color value.</returns>
464+
public Color GetOverlayImageTransparentColor(PaletteState state) => GlobalStaticValues.EMPTY_COLOR;
465+
466+
/// <summary>
467+
/// Gets the position of the overlay image relative to the main image.
468+
/// </summary>
469+
/// <param name="state">The state for which the overlay position is needed.</param>
470+
/// <returns>Overlay image position.</returns>
471+
public OverlayImagePosition GetOverlayImagePosition(PaletteState state) => OverlayImagePosition.TopRight;
472+
473+
/// <summary>
474+
/// Gets the scaling mode for the overlay image.
475+
/// </summary>
476+
/// <param name="state">The state for which the overlay scale mode is needed.</param>
477+
/// <returns>Overlay image scale mode.</returns>
478+
public OverlayImageScaleMode GetOverlayImageScaleMode(PaletteState state) => OverlayImageScaleMode.None;
479+
480+
/// <summary>
481+
/// Gets the scale factor for the overlay image (used when scale mode is Percentage or ProportionalToMain).
482+
/// </summary>
483+
/// <param name="state">The state for which the overlay scale factor is needed.</param>
484+
/// <returns>Scale factor (0.0 to 2.0).</returns>
485+
public float GetOverlayImageScaleFactor(PaletteState state) => 0.5f;
486+
487+
/// <summary>
488+
/// Gets the fixed size for the overlay image (used when scale mode is FixedSize).
489+
/// </summary>
490+
/// <param name="state">The state for which the overlay fixed size is needed.</param>
491+
/// <returns>Fixed size.</returns>
492+
public Size GetOverlayImageFixedSize(PaletteState state) => new Size(16, 16);
493+
452494
#endregion
453495
}

0 commit comments

Comments
 (0)