Skip to content

Commit b693a5f

Browse files
committed
Fix zooming editor font size
1 parent 42f9c7b commit b693a5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SharpIDE.Godot/Features/CodeEditor/CodeEditorPanel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ private void AdjustCodeEditorUiScale(bool increase)
5656
var editors = _tabContainer.GetChildren().OfType<SharpIdeCodeEditContainer>().ToList();
5757
if (editors.Count is 0) return;
5858

59-
var currentFontSize = editors.First().GetThemeFontSize(ThemeStringNames.FontSize);
59+
var currentFontSize = editors.First().CodeEdit.GetThemeFontSize(ThemeStringNames.FontSize);
6060
var newFontSize = increase
6161
? Mathf.Clamp(currentFontSize + 2, minFontSize, maxFontSize)
6262
: Mathf.Clamp(currentFontSize - 2, minFontSize, maxFontSize);

0 commit comments

Comments
 (0)