diff --git a/MareSynchronos/UI/EditProfileUi.cs b/MareSynchronos/UI/EditProfileUi.cs index 3b7359a..d01e3c6 100644 --- a/MareSynchronos/UI/EditProfileUi.cs +++ b/MareSynchronos/UI/EditProfileUi.cs @@ -1,5 +1,6 @@ using Dalamud.Interface; using Dalamud.Interface.Colors; +using Dalamud.Interface.GameFonts; using Dalamud.Interface.ImGuiFileDialog; using ImGuiNET; using ImGuiScene; @@ -99,7 +100,9 @@ public class EditProfileUi : WindowMediatorSubscriberBase ImGui.BeginDisabled(); ImGui.Checkbox("Is NSFW", ref nsfw); ImGui.EndDisabled(); + ImGui.PushFont(_uiBuilder.GetGameFontHandle(new GameFontStyle(GameFontFamilyAndSize.Axis12)).ImFont); UiSharedService.TextWrapped("Description:" + Environment.NewLine + profile.Description); + ImGui.PopFont(); } ImGui.EndChildFrame(); @@ -164,7 +167,9 @@ public class EditProfileUi : WindowMediatorSubscriberBase UiSharedService.DrawHelpText("If your profile description or image can be considered NSFW, toggle this to ON"); var widthTextBox = UiSharedService.GetWindowContentRegionWidth() - posX + spacing; ImGui.TextUnformatted($"Description {_descriptionText.Length}/750"); + ImGui.PushFont(_uiBuilder.GetGameFontHandle(new GameFontStyle(GameFontFamilyAndSize.Axis12)).ImFont); ImGui.InputTextMultiline("##description", ref _descriptionText, 750, new System.Numerics.Vector2(widthTextBox, 200)); + ImGui.PopFont(); if (UiSharedService.IconTextButton(FontAwesomeIcon.Save, "Save Description")) { _ = _apiController.UserSetProfile(new UserProfileDto(new UserData(_apiController.UID), false, null, null, _descriptionText)); diff --git a/MareSynchronos/UI/Handlers/UidDisplayHandler.cs b/MareSynchronos/UI/Handlers/UidDisplayHandler.cs index c3f76ee..25a7e2a 100644 --- a/MareSynchronos/UI/Handlers/UidDisplayHandler.cs +++ b/MareSynchronos/UI/Handlers/UidDisplayHandler.cs @@ -9,6 +9,7 @@ using ImGuiScene; using System.Numerics; using Microsoft.Extensions.Logging; using MareSynchronos.Services; +using Dalamud.Interface.GameFonts; namespace MareSynchronos.UI.Handlers; @@ -127,7 +128,9 @@ public class UidDisplayHandler } var posDone = ImGui.GetCursorPos(); + ImGui.PushFont(_uiBuilder.GetGameFontHandle(new GameFontStyle(GameFontFamilyAndSize.Axis12)).ImFont); UiSharedService.TextWrapped(mareProfile.Profile.Description); + ImGui.PopFont(); ImGui.Unindent(); var sepColor = ImGui.GetStyle().Colors[(int)ImGuiCol.Separator];