Syncshell and user ID colours

This commit is contained in:
2025-10-24 03:04:11 +01:00
parent d6320ed16a
commit b268571907
10 changed files with 260 additions and 220 deletions

View File

@@ -697,11 +697,21 @@ public class CompactUi : WindowMediatorSubscriberBase
private Vector4 GetUidColor()
{
var uidCol = _apiController.DisplayColour;
Vector4 uidColour;
if (uidCol.IsNullOrEmpty())
{
uidColour = UiSharedService.AccentColor;
} else
{
uidColour = SnowcloakSync.Utils.Colours.Hex2Vector4(uidCol);
}
return _apiController.ServerState switch
{
ServerState.Connecting => ImGuiColors.DalamudYellow,
ServerState.Reconnecting => ImGuiColors.DalamudRed,
ServerState.Connected => UiSharedService.AccentColor,
ServerState.Connected => uidColour,
ServerState.Disconnected => ImGuiColors.DalamudYellow,
ServerState.Disconnecting => ImGuiColors.DalamudYellow,
ServerState.Unauthorized => ImGuiColors.DalamudRed,