mirror of
https://github.com/RGBCube/serenity
synced 2025-07-23 20:17:42 +00:00
TextEditor: Allow picking non-proportional font
This commit is contained in:
parent
b8c25bc7ff
commit
6948f9ca55
1 changed files with 1 additions and 1 deletions
|
@ -458,7 +458,7 @@ TextEditorWidget::TextEditorWidget()
|
||||||
|
|
||||||
view_menu.add_action(GUI::Action::create("Editor font...", Gfx::Bitmap::load_from_file("/res/icons/16x16/app-font-editor.png"),
|
view_menu.add_action(GUI::Action::create("Editor font...", Gfx::Bitmap::load_from_file("/res/icons/16x16/app-font-editor.png"),
|
||||||
[&](auto&) {
|
[&](auto&) {
|
||||||
auto picker = GUI::FontPicker::construct(window(), &m_editor->font(), true);
|
auto picker = GUI::FontPicker::construct(window(), &m_editor->font(), false);
|
||||||
if (picker->exec() == GUI::Dialog::ExecOK) {
|
if (picker->exec() == GUI::Dialog::ExecOK) {
|
||||||
dbgln("setting font {}", picker->font()->qualified_name());
|
dbgln("setting font {}", picker->font()->qualified_name());
|
||||||
m_editor->set_font(picker->font());
|
m_editor->set_font(picker->font());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue