diff --git a/src/SharpIDE.Godot/Features/Problems/ProblemsPanel.cs b/src/SharpIDE.Godot/Features/Problems/ProblemsPanel.cs index 9cc8e25..43e2950 100644 --- a/src/SharpIDE.Godot/Features/Problems/ProblemsPanel.cs +++ b/src/SharpIDE.Godot/Features/Problems/ProblemsPanel.cs @@ -119,14 +119,14 @@ public partial class ProblemsPanel : Control } // Get font and prepare text - var font = _tree.GetThemeFont("font"); - var fontSize = _tree.GetThemeFontSize("font_size"); + var font = _tree.GetThemeFont(ThemeStringNames.Font); + var fontSize = _tree.GetThemeFontSize(ThemeStringNames.FontSize); var textColor = (isSelected, hovered) switch { - (true, true) => _tree.GetThemeColor("font_hovered_selected_color"), - (true, false) => _tree.GetThemeColor("font_selected_color"), - (false, true) => _tree.GetThemeColor("font_hovered_color"), - (false, false) => _tree.GetThemeColor("font_color") + (true, true) => _tree.GetThemeColor(ThemeStringNames.FontHoveredSelectedColor), + (true, false) => _tree.GetThemeColor(ThemeStringNames.FontSelectedColor), + (false, true) => _tree.GetThemeColor(ThemeStringNames.FontHoveredColor), + (false, false) => _tree.GetThemeColor(ThemeStringNames.FontColor) }; var textYPos = currentY + (rect.Size.Y + fontSize) / 2 - 2; diff --git a/src/SharpIDE.Godot/InputStringNames.cs b/src/SharpIDE.Godot/InputStringNames.cs index f7c7ea3..a73b8e2 100644 --- a/src/SharpIDE.Godot/InputStringNames.cs +++ b/src/SharpIDE.Godot/InputStringNames.cs @@ -15,5 +15,10 @@ public static class InputStringNames public static class ThemeStringNames { + public static readonly StringName Font = "font"; public static readonly StringName FontColor = "font_color"; + public static readonly StringName FontSize = "font_size"; + public static readonly StringName FontSelectedColor = "font_selected_color"; + public static readonly StringName FontHoveredColor = "font_hovered_color"; + public static readonly StringName FontHoveredSelectedColor = "font_hovered_selected_color"; } \ No newline at end of file