From 55036ca45f631be74669eeed170f46d4834eb045 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.RunPrediction/UI/Components/RunPrediction.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/LiveSplit.RunPrediction/UI/Components/RunPrediction.cs b/src/LiveSplit.RunPrediction/UI/Components/RunPrediction.cs index 46b456a..ecb0bff 100644 --- a/src/LiveSplit.RunPrediction/UI/Components/RunPrediction.cs +++ b/src/LiveSplit.RunPrediction/UI/Components/RunPrediction.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 RunPrediction : IComponent { private static string T(string source) => UiLocalizer.Translate(source, LanguageResolver.ResolveCurrentCultureLanguage());