Skip to content

Commit

Permalink
Fixed saving font.
Browse files Browse the repository at this point in the history
  • Loading branch information
NTDLS committed Oct 9, 2024
1 parent 2b1d2a5 commit c4870cc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion NTDLS.Katzebase.Management/Controls/CodeEditorTabPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public string FilePath
public RichTextBox OutputTextbox { get; private set; } = new()
{
Dock = DockStyle.Fill,
Font = new Font("Cascadia Mono", 10, FontStyle.Regular),
Font = new Font("Cascadia Code SemiLight", 10, FontStyle.Regular),
WordWrap = false,
};

Expand Down
3 changes: 2 additions & 1 deletion NTDLS.Katzebase.Management/FormSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ private void ButtonSave_Click(object sender, EventArgs e)
QueryMaximumRows = textBoxMaximumRows.GetAndValidateNumeric(-1, int.MaxValue, "Maximum rows must be between [min] (no maximum) and [max]."),
EditorFontSize = (double)numericUpDownFontSize.Value,
EditorShowLineNumbers = checkBoxLineNumbers.Checked,
EditorWordWrap = checkBoxWordWrap.Checked
EditorWordWrap = checkBoxWordWrap.Checked,
EditorFontFamily = comboBoxFont.Text
};

LocalUserApplicationData.SaveToDisk($"{Api.KbConstants.FriendlyName}\\Management", settings);
Expand Down
2 changes: 1 addition & 1 deletion NTDLS.Katzebase.Management/FormStudio.cs
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@ private void SettingsToolStripMenuItem_Click(object sender, EventArgs e)
{
foreach (var tabFilePage in tabControlBody.TabPages.OfType<CodeEditorTabPage>())
{
//CodeTabPage.ApplyEditorSettings(tabFilePage.Editor);
FullyFeaturedCodeEditor.ApplyEditorSettings(tabFilePage.Editor);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion NTDLS.Katzebase.Management/ManagementSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ internal class ManagementSettings
public bool EditorShowLineNumbers { get; set; } = true;
public bool EditorWordWrap { get; set; } = false;
public double EditorFontSize { get; set; } = 12.5;
public string EditorFontFamily { get; set; } = "Cascadia Mono";
public string EditorFontFamily { get; set; } = "Cascadia Code SemiLight";
}
}

0 comments on commit c4870cc

Please sign in to comment.