From f4df025a416a55beaeb0ad3c2b4ad803522c04a1 Mon Sep 17 00:00:00 2001 From: Soar Qin Date: Sun, 5 Apr 2026 13:55:42 +0800 Subject: [PATCH] Add GlobalFontConsumer attribute for per-component font override support Declare which global fonts (TimesFont|TextFont) this component uses so the Layout Editor can show the correct font override rows. --- src/LiveSplit.PreviousSegment/UI/Components/PreviousSegment.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/LiveSplit.PreviousSegment/UI/Components/PreviousSegment.cs b/src/LiveSplit.PreviousSegment/UI/Components/PreviousSegment.cs index 295ce00..233a57a 100644 --- a/src/LiveSplit.PreviousSegment/UI/Components/PreviousSegment.cs +++ b/src/LiveSplit.PreviousSegment/UI/Components/PreviousSegment.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Drawing2D; @@ -12,6 +12,7 @@ namespace LiveSplit.UI.Components; +[GlobalFontConsumer(GlobalFont.TimesFont | GlobalFont.TextFont)] public class PreviousSegment : IComponent { private static string T(string source) => UiLocalizer.Translate(source, LanguageResolver.ResolveCurrentCultureLanguage());