Refine navigation UX and header action styling

This commit is contained in:
Meik
2026-03-05 12:29:49 +01:00
parent 2e53ede66b
commit d6b03c5858
4 changed files with 132 additions and 17 deletions

View File

@@ -200,9 +200,9 @@ namespace C4IT_CustomerPanel.libs
{
return cpConfig._linkList;
}
public Color GetButtonHoverColor()
public Color GetButtonHoverColor(Color? baseColor = null)
{
Color activeColor = GetActiveButtonColor().Color;
Color activeColor = baseColor ?? GetActiveButtonColor().Color;
bool isLightActive = GetRelativeLuminance(activeColor) >= 0.55;
return BlendColor(activeColor, isLightActive ? Colors.Black : Colors.White, isLightActive ? 0.10 : 0.12);
}