random ui changes

This commit is contained in:
azyges
2025-09-01 07:52:50 +09:00
parent 05daa59e40
commit 68c0bf1334
3 changed files with 30 additions and 30 deletions

View File

@@ -72,8 +72,8 @@ public class Pair
Name = openProfileSeString, Name = openProfileSeString,
OnClicked = (a) => _mediator.Publish(new ProfileOpenStandaloneMessage(this)), OnClicked = (a) => _mediator.Publish(new ProfileOpenStandaloneMessage(this)),
UseDefaultPrefix = false, UseDefaultPrefix = false,
PrefixChar = 'M', PrefixChar = 'L',
PrefixColor = 526 PrefixColor = 708
}); });
args.AddMenuItem(new MenuItem() args.AddMenuItem(new MenuItem()
@@ -81,8 +81,8 @@ public class Pair
Name = reapplyDataSeString, Name = reapplyDataSeString,
OnClicked = (a) => ApplyLastReceivedData(forced: true), OnClicked = (a) => ApplyLastReceivedData(forced: true),
UseDefaultPrefix = false, UseDefaultPrefix = false,
PrefixChar = 'M', PrefixChar = 'L',
PrefixColor = 526 PrefixColor = 708
}); });
args.AddMenuItem(new MenuItem() args.AddMenuItem(new MenuItem()
@@ -90,8 +90,8 @@ public class Pair
Name = changePermissions, Name = changePermissions,
OnClicked = (a) => _mediator.Publish(new OpenPermissionWindow(this)), OnClicked = (a) => _mediator.Publish(new OpenPermissionWindow(this)),
UseDefaultPrefix = false, UseDefaultPrefix = false,
PrefixChar = 'M', PrefixChar = 'L',
PrefixColor = 526 PrefixColor = 708
}); });
args.AddMenuItem(new MenuItem() args.AddMenuItem(new MenuItem()
@@ -99,8 +99,8 @@ public class Pair
Name = cyclePauseState, Name = cyclePauseState,
OnClicked = (a) => _mediator.Publish(new CyclePauseMessage(UserData)), OnClicked = (a) => _mediator.Publish(new CyclePauseMessage(UserData)),
UseDefaultPrefix = false, UseDefaultPrefix = false,
PrefixChar = 'M', PrefixChar = 'L',
PrefixColor = 526 PrefixColor = 708
}); });
} }

View File

@@ -149,10 +149,10 @@ public class CompactUi : WindowMediatorSubscriberBase
var uidTextSize = ImGui.CalcTextSize(unsupported); var uidTextSize = ImGui.CalcTextSize(unsupported);
ImGui.SetCursorPosX((ImGui.GetWindowContentRegionMax().X + ImGui.GetWindowContentRegionMin().X) / 2 - uidTextSize.X / 2); ImGui.SetCursorPosX((ImGui.GetWindowContentRegionMax().X + ImGui.GetWindowContentRegionMin().X) / 2 - uidTextSize.X / 2);
ImGui.AlignTextToFramePadding(); 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}. " + 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) if (!_ipcManager.Initialized)
@@ -164,12 +164,12 @@ public class CompactUi : WindowMediatorSubscriberBase
var uidTextSize = ImGui.CalcTextSize(unsupported); var uidTextSize = ImGui.CalcTextSize(unsupported);
ImGui.SetCursorPosX((ImGui.GetWindowContentRegionMax().X + ImGui.GetWindowContentRegionMin().X) / 2 - uidTextSize.X / 2); ImGui.SetCursorPosX((ImGui.GetWindowContentRegionMax().X + ImGui.GetWindowContentRegionMin().X) / 2 - uidTextSize.X / 2);
ImGui.AlignTextToFramePadding(); ImGui.AlignTextToFramePadding();
ImGui.TextColored(ImGuiColors.DalamudRed, unsupported); ImGui.TextColored(UIColors.Get("DimRed"), unsupported);
} }
var penumAvailable = _ipcManager.Penumbra.APIAvailable; var penumAvailable = _ipcManager.Penumbra.APIAvailable;
var glamAvailable = _ipcManager.Glamourer.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); using var indent = ImRaii.PushIndent(10f);
if (!penumAvailable) if (!penumAvailable)
{ {
@@ -185,7 +185,7 @@ public class CompactUi : WindowMediatorSubscriberBase
} }
using (ImRaii.PushId("header")) DrawUIDHeader(); using (ImRaii.PushId("header")) DrawUIDHeader();
ImGui.Separator(); _uiSharedService.ColoredSeparator(UIColors.Get("LightlessPurple"), 2f);
using (ImRaii.PushId("serverstatus")) DrawServerStatus(); using (ImRaii.PushId("serverstatus")) DrawServerStatus();
ImGui.Separator(); ImGui.Separator();
@@ -284,7 +284,7 @@ public class CompactUi : WindowMediatorSubscriberBase
else else
{ {
ImGui.AlignTextToFramePadding(); ImGui.AlignTextToFramePadding();
ImGui.TextColored(ImGuiColors.DalamudRed, "Not connected to any server"); ImGui.TextColored(UIColors.Get("DimRed"), "Not connected to any server");
} }
if (printShard) if (printShard)
@@ -587,21 +587,21 @@ public class CompactUi : WindowMediatorSubscriberBase
{ {
return _apiController.ServerState switch return _apiController.ServerState switch
{ {
ServerState.Connecting => ImGuiColors.DalamudYellow, ServerState.Connecting => UIColors.Get("LightlessYellow"),
ServerState.Reconnecting => ImGuiColors.DalamudRed, ServerState.Reconnecting => UIColors.Get("DimRed"),
ServerState.Connected => UIColors.Get("LightlessPurple"), ServerState.Connected => UIColors.Get("LightlessPurple"),
ServerState.Disconnected => ImGuiColors.DalamudYellow, ServerState.Disconnected => UIColors.Get("LightlessYellow"),
ServerState.Disconnecting => ImGuiColors.DalamudYellow, ServerState.Disconnecting => UIColors.Get("LightlessYellow"),
ServerState.Unauthorized => ImGuiColors.DalamudRed, ServerState.Unauthorized => UIColors.Get("DimRed"),
ServerState.VersionMisMatch => ImGuiColors.DalamudRed, ServerState.VersionMisMatch => UIColors.Get("DimRed"),
ServerState.Offline => ImGuiColors.DalamudRed, ServerState.Offline => UIColors.Get("DimRed"),
ServerState.RateLimited => ImGuiColors.DalamudYellow, ServerState.RateLimited => UIColors.Get("LightlessYellow"),
ServerState.NoSecretKey => ImGuiColors.DalamudYellow, ServerState.NoSecretKey => UIColors.Get("LightlessYellow"),
ServerState.MultiChara => ImGuiColors.DalamudYellow, ServerState.MultiChara => UIColors.Get("LightlessYellow"),
ServerState.OAuthMisconfigured => ImGuiColors.DalamudRed, ServerState.OAuthMisconfigured => UIColors.Get("DimRed"),
ServerState.OAuthLoginTokenStale => ImGuiColors.DalamudRed, ServerState.OAuthLoginTokenStale => UIColors.Get("DimRed"),
ServerState.NoAutoLogon => ImGuiColors.DalamudYellow, ServerState.NoAutoLogon => UIColors.Get("LightlessYellow"),
_ => ImGuiColors.DalamudRed _ => UIColors.Get("DimRed")
}; };
} }

View File

@@ -102,7 +102,7 @@ public class PermissionWindowUI : WindowMediatorSubscriberBase
{ {
_ownPermissions.SetDisableAnimations(disableAnimations); _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."); + "Note: this is bidirectional, either user disabling animation sync will stop animation sync on both sides.");
using (ImRaii.PushIndent(indentSize, false)) using (ImRaii.PushIndent(indentSize, false))
{ {
@@ -116,7 +116,7 @@ public class PermissionWindowUI : WindowMediatorSubscriberBase
{ {
_ownPermissions.SetDisableVFX(disableVfx); _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."); + "Note: this is bidirectional, either user disabling VFX sync will stop VFX sync on both sides.");
using (ImRaii.PushIndent(indentSize, false)) using (ImRaii.PushIndent(indentSize, false))
{ {