Changed colors to be used in our colorway. moved buttons a bit around
This commit is contained in:
@@ -81,19 +81,19 @@ public class SyncshellFinderUI : WindowMediatorSubscriberBase
|
|||||||
protected override void DrawInternal()
|
protected override void DrawInternal()
|
||||||
{
|
{
|
||||||
ImGui.BeginGroup();
|
ImGui.BeginGroup();
|
||||||
_uiSharedService.MediumText("Nearby Syncshells", UIColors.Get("PairBlue"));
|
_uiSharedService.MediumText("Nearby Syncshells", UIColors.Get("LightlessPurple"));
|
||||||
ImGui.SameLine();
|
ImGui.SameLine();
|
||||||
|
|
||||||
string checkboxLabel = "Compact view";
|
string checkboxLabel = "Compact view";
|
||||||
float availWidth = ImGui.GetContentRegionAvail().X;
|
float availWidth = ImGui.GetContentRegionAvail().X;
|
||||||
float checkboxWidth = ImGui.CalcTextSize(checkboxLabel).X + ImGui.GetFrameHeight();
|
float checkboxWidth = ImGui.CalcTextSize(checkboxLabel).X + ImGui.GetFrameHeight();
|
||||||
|
|
||||||
float rightX = ImGui.GetCursorPosX() + availWidth - checkboxWidth - 2.0f;
|
float rightX = ImGui.GetCursorPosX() + availWidth - checkboxWidth - 4.0f;
|
||||||
ImGui.SetCursorPosX(rightX);
|
ImGui.SetCursorPosX(rightX);
|
||||||
ImGui.Checkbox(checkboxLabel, ref _compactView);
|
ImGui.Checkbox(checkboxLabel, ref _compactView);
|
||||||
ImGui.EndGroup();
|
ImGui.EndGroup();
|
||||||
|
|
||||||
UiSharedService.ColoredSeparator(UIColors.Get("PairBlue"));
|
UiSharedService.ColoredSeparator(UIColors.Get("LightlessPurpleDefault"));
|
||||||
ImGui.Dummy(new Vector2(0, 2 * ImGuiHelpers.GlobalScale));
|
ImGui.Dummy(new Vector2(0, 2 * ImGuiHelpers.GlobalScale));
|
||||||
if (_nearbySyncshells.Count == 0)
|
if (_nearbySyncshells.Count == 0)
|
||||||
{
|
{
|
||||||
@@ -108,7 +108,7 @@ public class SyncshellFinderUI : WindowMediatorSubscriberBase
|
|||||||
ImGuiHelpers.ScaledDummy(0.5f);
|
ImGuiHelpers.ScaledDummy(0.5f);
|
||||||
|
|
||||||
ImGui.PushStyleVar(ImGuiStyleVar.FrameRounding, 10.0f);
|
ImGui.PushStyleVar(ImGuiStyleVar.FrameRounding, 10.0f);
|
||||||
ImGui.PushStyleColor(ImGuiCol.Button, UIColors.Get("PairBlue"));
|
ImGui.PushStyleColor(ImGuiCol.Button, UIColors.Get("LightlessPurple"));
|
||||||
|
|
||||||
if (ImGui.Button("Open Lightfinder", new Vector2(200 * ImGuiHelpers.GlobalScale, 0)))
|
if (ImGui.Button("Open Lightfinder", new Vector2(200 * ImGuiHelpers.GlobalScale, 0)))
|
||||||
{
|
{
|
||||||
@@ -211,14 +211,14 @@ public class SyncshellFinderUI : WindowMediatorSubscriberBase
|
|||||||
float regionW = ImGui.GetContentRegionAvail().X;
|
float regionW = ImGui.GetContentRegionAvail().X;
|
||||||
float rightTxtW = ImGui.CalcTextSize(broadcasterName).X;
|
float rightTxtW = ImGui.CalcTextSize(broadcasterName).X;
|
||||||
|
|
||||||
_uiSharedService.MediumText(displayName, UIColors.Get("PairBlue"));
|
_uiSharedService.MediumText(displayName, UIColors.Get("LightlessPurple"));
|
||||||
|
|
||||||
float rightX = startX + regionW - rightTxtW - style.ItemSpacing.X;
|
float rightX = startX + regionW - rightTxtW - style.ItemSpacing.X;
|
||||||
ImGui.SameLine();
|
ImGui.SameLine();
|
||||||
ImGui.SetCursorPosX(rightX);
|
ImGui.SetCursorPosX(rightX);
|
||||||
ImGui.TextUnformatted(broadcasterName);
|
ImGui.TextUnformatted(broadcasterName);
|
||||||
|
|
||||||
UiSharedService.ColoredSeparator(UIColors.Get("PairBlue"));
|
UiSharedService.ColoredSeparator(UIColors.Get("LightlessPurpleDefault"));
|
||||||
|
|
||||||
ImGui.Dummy(new Vector2(0, 6 * ImGuiHelpers.GlobalScale));
|
ImGui.Dummy(new Vector2(0, 6 * ImGuiHelpers.GlobalScale));
|
||||||
|
|
||||||
@@ -268,16 +268,14 @@ public class SyncshellFinderUI : WindowMediatorSubscriberBase
|
|||||||
ImGui.PushID(shell.Group.GID);
|
ImGui.PushID(shell.Group.GID);
|
||||||
|
|
||||||
ImGui.BeginGroup();
|
ImGui.BeginGroup();
|
||||||
_ = ImGui.BeginChild("ShellCard##" + shell.Group.GID,
|
_ = ImGui.BeginChild("ShellCard##" + shell.Group.GID, new Vector2(cardWidth, cardHeight), border: true);
|
||||||
new Vector2(cardWidth, cardHeight),
|
|
||||||
true);
|
|
||||||
|
|
||||||
var displayName = !string.IsNullOrEmpty(shell.Group.Alias)
|
var displayName = !string.IsNullOrEmpty(shell.Group.Alias)
|
||||||
? shell.Group.Alias
|
? shell.Group.Alias
|
||||||
: shell.Group.GID;
|
: shell.Group.GID;
|
||||||
|
|
||||||
_uiSharedService.MediumText(displayName, UIColors.Get("PairBlue"));
|
_uiSharedService.MediumText(displayName, UIColors.Get("LightlessPurple"));
|
||||||
UiSharedService.ColoredSeparator(UIColors.Get("PairBlue"));
|
UiSharedService.ColoredSeparator(UIColors.Get("LightlessPurpleDefault"));
|
||||||
|
|
||||||
ImGui.TextColored(ImGuiColors.DalamudGrey, "Broadcaster");
|
ImGui.TextColored(ImGuiColors.DalamudGrey, "Broadcaster");
|
||||||
ImGui.TextUnformatted(broadcasterName);
|
ImGui.TextUnformatted(broadcasterName);
|
||||||
|
|||||||
Reference in New Issue
Block a user