Skip to content

Commit

Permalink
* #1399 for V85
Browse files Browse the repository at this point in the history
  • Loading branch information
PWagner1 committed Nov 16, 2024
1 parent 86ce779 commit a912af6
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 17 deletions.
Binary file added Assets/PNG/NuGet Package Icons/Krypton LTS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion Documents/Help/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

=======

Expand Down
Binary file modified Krypton.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -180,22 +180,25 @@ public Color GetRibbonBackColor5(PaletteState state)
/// <returns>Color value.</returns>
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

Expand Down

0 comments on commit a912af6

Please sign in to comment.