From 68c0bf1334d5d4516bc74c1849f80c98ee3ba4f8 Mon Sep 17 00:00:00 2001 From: azyges <229218900+azyges@users.noreply.github.com> Date: Mon, 1 Sep 2025 07:52:50 +0900 Subject: [PATCH] random ui changes --- LightlessSync/PlayerData/Pairs/Pair.cs | 16 +++++------ LightlessSync/UI/CompactUI.cs | 40 +++++++++++++------------- LightlessSync/UI/PermissionWindowUI.cs | 4 +-- 3 files changed, 30 insertions(+), 30 deletions(-) diff --git a/LightlessSync/PlayerData/Pairs/Pair.cs b/LightlessSync/PlayerData/Pairs/Pair.cs index fe6cd7b..d4e2950 100644 --- a/LightlessSync/PlayerData/Pairs/Pair.cs +++ b/LightlessSync/PlayerData/Pairs/Pair.cs @@ -72,8 +72,8 @@ public class Pair Name = openProfileSeString, OnClicked = (a) => _mediator.Publish(new ProfileOpenStandaloneMessage(this)), UseDefaultPrefix = false, - PrefixChar = 'M', - PrefixColor = 526 + PrefixChar = 'L', + PrefixColor = 708 }); args.AddMenuItem(new MenuItem() @@ -81,8 +81,8 @@ public class Pair Name = reapplyDataSeString, OnClicked = (a) => ApplyLastReceivedData(forced: true), UseDefaultPrefix = false, - PrefixChar = 'M', - PrefixColor = 526 + PrefixChar = 'L', + PrefixColor = 708 }); args.AddMenuItem(new MenuItem() @@ -90,8 +90,8 @@ public class Pair Name = changePermissions, OnClicked = (a) => _mediator.Publish(new OpenPermissionWindow(this)), UseDefaultPrefix = false, - PrefixChar = 'M', - PrefixColor = 526 + PrefixChar = 'L', + PrefixColor = 708 }); args.AddMenuItem(new MenuItem() @@ -99,8 +99,8 @@ public class Pair Name = cyclePauseState, OnClicked = (a) => _mediator.Publish(new CyclePauseMessage(UserData)), UseDefaultPrefix = false, - PrefixChar = 'M', - PrefixColor = 526 + PrefixChar = 'L', + PrefixColor = 708 }); } diff --git a/LightlessSync/UI/CompactUI.cs b/LightlessSync/UI/CompactUI.cs index 1b5a625..8a816ce 100644 --- a/LightlessSync/UI/CompactUI.cs +++ b/LightlessSync/UI/CompactUI.cs @@ -149,10 +149,10 @@ public class CompactUi : WindowMediatorSubscriberBase var uidTextSize = ImGui.CalcTextSize(unsupported); ImGui.SetCursorPosX((ImGui.GetWindowContentRegionMax().X + ImGui.GetWindowContentRegionMin().X) / 2 - uidTextSize.X / 2); ImGui.AlignTextToFramePadding(); - ImGui.TextColored(ImGuiColors.DalamudRed, unsupported); + ImGui.TextColored(UIColors.Get("DimRed"), unsupported); } UiSharedService.ColorTextWrapped($"Your Lightless Sync installation is out of date, the current version is {ver.Major}.{ver.Minor}.{ver.Build}. " + - $"It is highly recommended to keep Lightless Sync up to date. Open /xlplugins and update the plugin.", ImGuiColors.DalamudRed); + $"It is highly recommended to keep Lightless Sync up to date. Open /xlplugins and update the plugin.", UIColors.Get("DimRed")); } if (!_ipcManager.Initialized) @@ -164,12 +164,12 @@ public class CompactUi : WindowMediatorSubscriberBase var uidTextSize = ImGui.CalcTextSize(unsupported); ImGui.SetCursorPosX((ImGui.GetWindowContentRegionMax().X + ImGui.GetWindowContentRegionMin().X) / 2 - uidTextSize.X / 2); ImGui.AlignTextToFramePadding(); - ImGui.TextColored(ImGuiColors.DalamudRed, unsupported); + ImGui.TextColored(UIColors.Get("DimRed"), unsupported); } var penumAvailable = _ipcManager.Penumbra.APIAvailable; var glamAvailable = _ipcManager.Glamourer.APIAvailable; - UiSharedService.ColorTextWrapped($"One or more Plugins essential for Lightless operation are unavailable. Enable or update following plugins:", ImGuiColors.DalamudRed); + UiSharedService.ColorTextWrapped($"One or more Plugins essential for Lightless operation are unavailable. Enable or update following plugins:", UIColors.Get("DimRed")); using var indent = ImRaii.PushIndent(10f); if (!penumAvailable) { @@ -185,7 +185,7 @@ public class CompactUi : WindowMediatorSubscriberBase } using (ImRaii.PushId("header")) DrawUIDHeader(); - ImGui.Separator(); + _uiSharedService.ColoredSeparator(UIColors.Get("LightlessPurple"), 2f); using (ImRaii.PushId("serverstatus")) DrawServerStatus(); ImGui.Separator(); @@ -284,7 +284,7 @@ public class CompactUi : WindowMediatorSubscriberBase else { ImGui.AlignTextToFramePadding(); - ImGui.TextColored(ImGuiColors.DalamudRed, "Not connected to any server"); + ImGui.TextColored(UIColors.Get("DimRed"), "Not connected to any server"); } if (printShard) @@ -587,21 +587,21 @@ public class CompactUi : WindowMediatorSubscriberBase { return _apiController.ServerState switch { - ServerState.Connecting => ImGuiColors.DalamudYellow, - ServerState.Reconnecting => ImGuiColors.DalamudRed, + ServerState.Connecting => UIColors.Get("LightlessYellow"), + ServerState.Reconnecting => UIColors.Get("DimRed"), ServerState.Connected => UIColors.Get("LightlessPurple"), - ServerState.Disconnected => ImGuiColors.DalamudYellow, - ServerState.Disconnecting => ImGuiColors.DalamudYellow, - ServerState.Unauthorized => ImGuiColors.DalamudRed, - ServerState.VersionMisMatch => ImGuiColors.DalamudRed, - ServerState.Offline => ImGuiColors.DalamudRed, - ServerState.RateLimited => ImGuiColors.DalamudYellow, - ServerState.NoSecretKey => ImGuiColors.DalamudYellow, - ServerState.MultiChara => ImGuiColors.DalamudYellow, - ServerState.OAuthMisconfigured => ImGuiColors.DalamudRed, - ServerState.OAuthLoginTokenStale => ImGuiColors.DalamudRed, - ServerState.NoAutoLogon => ImGuiColors.DalamudYellow, - _ => ImGuiColors.DalamudRed + ServerState.Disconnected => UIColors.Get("LightlessYellow"), + ServerState.Disconnecting => UIColors.Get("LightlessYellow"), + ServerState.Unauthorized => UIColors.Get("DimRed"), + ServerState.VersionMisMatch => UIColors.Get("DimRed"), + ServerState.Offline => UIColors.Get("DimRed"), + ServerState.RateLimited => UIColors.Get("LightlessYellow"), + ServerState.NoSecretKey => UIColors.Get("LightlessYellow"), + ServerState.MultiChara => UIColors.Get("LightlessYellow"), + ServerState.OAuthMisconfigured => UIColors.Get("DimRed"), + ServerState.OAuthLoginTokenStale => UIColors.Get("DimRed"), + ServerState.NoAutoLogon => UIColors.Get("LightlessYellow"), + _ => UIColors.Get("DimRed") }; } diff --git a/LightlessSync/UI/PermissionWindowUI.cs b/LightlessSync/UI/PermissionWindowUI.cs index bafcaa0..45be154 100644 --- a/LightlessSync/UI/PermissionWindowUI.cs +++ b/LightlessSync/UI/PermissionWindowUI.cs @@ -102,7 +102,7 @@ public class PermissionWindowUI : WindowMediatorSubscriberBase { _ownPermissions.SetDisableAnimations(disableAnimations); } - _uiSharedService.DrawHelpText("Disabling sounds will remove all animations synced with this user on both sides." + UiSharedService.TooltipSeparator + _uiSharedService.DrawHelpText("Disabling animations will remove all animations synced with this user on both sides." + UiSharedService.TooltipSeparator + "Note: this is bidirectional, either user disabling animation sync will stop animation sync on both sides."); using (ImRaii.PushIndent(indentSize, false)) { @@ -116,7 +116,7 @@ public class PermissionWindowUI : WindowMediatorSubscriberBase { _ownPermissions.SetDisableVFX(disableVfx); } - _uiSharedService.DrawHelpText("Disabling sounds will remove all VFX synced with this user on both sides." + UiSharedService.TooltipSeparator + _uiSharedService.DrawHelpText("Disabling VFX will remove all VFX synced with this user on both sides." + UiSharedService.TooltipSeparator + "Note: this is bidirectional, either user disabling VFX sync will stop VFX sync on both sides."); using (ImRaii.PushIndent(indentSize, false)) {