Make mark-all-read hover subtler using navbar hover brush

This commit is contained in:
Meik
2026-03-05 13:45:49 +01:00
parent 4e86ebbe3e
commit 92731c33c2
5 changed files with 26 additions and 18 deletions

View File

@@ -540,6 +540,8 @@ namespace C4IT_CustomerPanel
Application.Current.Resources.MergedDictionaries.Insert(1, themes[1]);
}
UpdateNavigationHoverResource();
ComputerInfoCtrl.SetAppearence();
if (TryFindResource("navForeground") is SolidColorBrush navForeground)
@@ -557,6 +559,14 @@ namespace C4IT_CustomerPanel
}
}
private void UpdateNavigationHoverResource()
{
if (Application.Current?.Resources == null)
return;
Application.Current.Resources["navigationHoverColor"] = GetNavigationHoverBrush();
}
private void ApplyWindowDraggableState()
{
bool draggable = ConfigSettings?.GetConfig()?._isDraggable ?? true;