Skip to content

Commit 529788d

Browse files
committed
Change font pushes.
1 parent 90665c6 commit 529788d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Penumbra/UI/CollectionTab/CollectionPanel.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ private void DrawCollectionName(ModCollection collection)
427427
ImGui.Dummy(Vector2.One);
428428
using var color = ImRaii.PushColor(ImGuiCol.Border, Colors.MetaInfoText);
429429
using var style = ImRaii.PushStyle(ImGuiStyleVar.FrameBorderSize, 2 * UiHelpers.Scale);
430-
using var f = _nameFont.Available ? _nameFont.Push() : null;
430+
using var f = _nameFont.Push();
431431
var name = Name(collection);
432432
var size = ImGui.CalcTextSize(name).X;
433433
var pos = ImGui.GetContentRegionAvail().X - size + ImGui.GetStyle().FramePadding.X * 2;
@@ -446,7 +446,7 @@ private void DrawStatistics(ModCollection collection)
446446
if (_inUseCache.Count == 0 && collection.DirectParentOf.Count == 0)
447447
{
448448
ImGui.Dummy(Vector2.One);
449-
using var f = _nameFont.Available ? _nameFont.Push() : null;
449+
using var f = _nameFont.Push();
450450
ImGuiUtil.DrawTextButton("Collection is not used.", new Vector2(ImGui.GetContentRegionAvail().X, buttonHeight),
451451
Colors.PressEnterWarningBg);
452452
ImGui.Dummy(Vector2.One);
@@ -513,7 +513,7 @@ private void DrawInheritanceStatistics(ModCollection collection, Vector2 buttonW
513513
ImGuiUtil.DrawTextButton("Inherited by", ImGui.GetContentRegionAvail() with { Y = 0 }, 0);
514514
}
515515

516-
using var f = _nameFont.Available ? _nameFont.Push() : null;
516+
using var f = _nameFont.Push();
517517
using var style = ImRaii.PushStyle(ImGuiStyleVar.FrameBorderSize, ImGuiHelpers.GlobalScale);
518518
using var color = ImRaii.PushColor(ImGuiCol.Border, Colors.MetaInfoText);
519519
ImGuiUtil.DrawTextButton(Name(collection.DirectParentOf[0]), Vector2.Zero, 0);

Penumbra/UI/ModsTab/ModPanelHeader.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public void UpdateModData(Mod mod)
4747
var name = $" {mod.Name} ";
4848
if (name != _modName)
4949
{
50-
using var f = _nameFont.Available ? _nameFont.Push() : null;
50+
using var f = _nameFont.Push();
5151
_modName = name;
5252
_modNameWidth = ImGui.CalcTextSize(name).X + 2 * (ImGui.GetStyle().FramePadding.X + 2 * UiHelpers.Scale);
5353
}
@@ -122,7 +122,7 @@ private float DrawModName()
122122

123123
using var color = ImRaii.PushColor(ImGuiCol.Border, Colors.MetaInfoText);
124124
using var style = ImRaii.PushStyle(ImGuiStyleVar.FrameBorderSize, 2 * UiHelpers.Scale);
125-
using var f = _nameFont.Available ? _nameFont.Push() : null;
125+
using var f = _nameFont.Push();
126126
ImGuiUtil.DrawTextButton(_modName, Vector2.Zero, 0);
127127
return offset;
128128
}

0 commit comments

Comments
 (0)