Update var typings in places, Update UI Colors.

This commit is contained in:
2025-08-29 16:49:41 +01:00
parent 243b0b8300
commit 9b0134aa7d
4 changed files with 6 additions and 6 deletions

View File

@@ -231,7 +231,7 @@ public sealed class IpcCallerPenumbra : DisposableMediatorSubscriberBase, IIpcCa
return await _dalamudUtil.RunOnFrameworkThread(() => return await _dalamudUtil.RunOnFrameworkThread(() =>
{ {
var collName = identity + "_" + uid; var collName = identity + "_" + uid;
var ec = _penumbraCreateNamedTemporaryCollection.Invoke(identity, collName, out var collId); PenumbraApiEc ec = _penumbraCreateNamedTemporaryCollection.Invoke(identity, collName, out var collId);
if (ec == PenumbraApiEc.InvalidCredentials) if (ec == PenumbraApiEc.InvalidCredentials)
{ {
for (int i = 0; i < 5; ++i) for (int i = 0; i < 5; ++i)

View File

@@ -133,7 +133,7 @@ public class Pair : DisposableMediatorSubscriberBase
{ {
Name = name, Name = name,
OnClicked = action, OnClicked = action,
PrefixColor = 529, PrefixColor = 555,
PrefixChar = 'C' PrefixChar = 'C'
}); });
} }

View File

@@ -496,14 +496,14 @@ public class ServerConfigurationManager
private void EnsureMainExists() private void EnsureMainExists()
{ {
bool lopExists = false; bool clubExists = false;
for (int i = 0; i < _configService.Current.ServerStorage.Count; ++i) for (int i = 0; i < _configService.Current.ServerStorage.Count; ++i)
{ {
var x = _configService.Current.ServerStorage[i]; var x = _configService.Current.ServerStorage[i];
if (x.ServerUri.Equals(ApiController.ClubPenguinServiceUri, StringComparison.OrdinalIgnoreCase)) if (x.ServerUri.Equals(ApiController.ClubPenguinServiceUri, StringComparison.OrdinalIgnoreCase))
lopExists = true; clubExists = true;
} }
if (!lopExists) if (!clubExists)
{ {
_logger.LogDebug("Re-adding missing server {uri}", ApiController.ClubPenguinServiceUri); _logger.LogDebug("Re-adding missing server {uri}", ApiController.ClubPenguinServiceUri);
_configService.Current.ServerStorage.Insert(0, new ServerStorage() { ServerUri = ApiController.ClubPenguinServiceUri, ServerName = ApiController.ClubPenguinServer }); _configService.Current.ServerStorage.Insert(0, new ServerStorage() { ServerUri = ApiController.ClubPenguinServiceUri, ServerName = ApiController.ClubPenguinServer });

View File

@@ -105,7 +105,7 @@ public class CompactUi : WindowMediatorSubscriberBase
protected override void DrawInternal() protected override void DrawInternal()
{ {
if (_serverManager.CurrentApiUrl.Equals(ApiController.ClubPenguinServiceUri, StringComparison.Ordinal)) if (_serverManager.CurrentApiUrl.Equals(ApiController.ClubPenguinServiceUri, StringComparison.Ordinal))
UiSharedService.AccentColor = new Vector4(1.0f, 0.8666f, 0.06666f, 1.0f); UiSharedService.AccentColor = new Vector4(0.70196078431f, 0.54901960784f, 1.0f, 1.0f);
else else
UiSharedService.AccentColor = ImGuiColors.ParsedGreen; UiSharedService.AccentColor = ImGuiColors.ParsedGreen;
ImGui.SetCursorPosY(ImGui.GetCursorPosY() - ImGui.GetStyle().WindowPadding.Y - 1f * ImGuiHelpers.GlobalScale + ImGui.GetStyle().ItemSpacing.Y); ImGui.SetCursorPosY(ImGui.GetCursorPosY() - ImGui.GetStyle().WindowPadding.Y - 1f * ImGuiHelpers.GlobalScale + ImGui.GetStyle().ItemSpacing.Y);