diff --git a/Assets/PNG/NuGet Package Icons/Krypton LTS.png b/Assets/PNG/NuGet Package Icons/Krypton LTS.png new file mode 100644 index 000000000..5e7d90bc9 Binary files /dev/null and b/Assets/PNG/NuGet Package Icons/Krypton LTS.png differ diff --git a/Documents/Help/Changelog.md b/Documents/Help/Changelog.md index d0c4d5a6a..98a1e41d1 100644 --- a/Documents/Help/Changelog.md +++ b/Documents/Help/Changelog.md @@ -2,8 +2,9 @@ ======= -# 2025-02-01 - Build 2502 (Patch 5) - Fefruary 2025 +# 2025-02-01 - Build 2502 (Patch 5) - February 2025 * Resolved [#1842](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1842), `KryptonTextBox` height collapses when MultiLine is enabled. +* Resolved [#1399](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1399), Hard coded colour setting removed from the `KryptonRibbonTab`. ======= diff --git a/Krypton.png b/Krypton.png index 153a67cf5..5e7d90bc9 100644 Binary files a/Krypton.png and b/Krypton.png differ diff --git a/Source/Krypton Components/Krypton.Ribbon/Palette/PaletteRibbonContextDouble.cs b/Source/Krypton Components/Krypton.Ribbon/Palette/PaletteRibbonContextDouble.cs index e06c87558..f4edf88ed 100644 --- a/Source/Krypton Components/Krypton.Ribbon/Palette/PaletteRibbonContextDouble.cs +++ b/Source/Krypton Components/Krypton.Ribbon/Palette/PaletteRibbonContextDouble.cs @@ -180,22 +180,25 @@ public Color GetRibbonBackColor5(PaletteState state) /// Color value. public Color GetRibbonTextColor(PaletteState state) { - Color retColor = _inherit.GetRibbonTextColor(state); - - // If empty then try and recover the context specific color - if (retColor == Color.Empty) - { - retColor = CheckForContextColor(); - } - else if ((state == PaletteState.Normal) && LightBackground) - { - // With a light background we force the color to be dark in normal state so it stands out - return Color.FromArgb(Math.Min(retColor.R, (byte)60), - Math.Min(retColor.G, (byte)60), - Math.Min(retColor.B, (byte)60)); - } - - return retColor; + return _inherit.GetRibbonTextColor(state); + + // #1399 Disable this override on the theme color arrays and accepting the normal return color + // The approach below goes outside of the theme color array and causes problems. + + //// If empty then try and recover the context specific color + //if (retColor == Color.Empty) + //{ + // retColor = CheckForContextColor(); + //} + //else if ((state == PaletteState.Normal) && LightBackground) + //{ + // // With a light background we force the color to be dark in normal state so it stands out + // return Color.FromArgb(Math.Min(retColor.R, (byte)60), + // Math.Min(retColor.G, (byte)60), + // Math.Min(retColor.B, (byte)60)); + //} + + //return retColor; } #endregion