1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:27:45 +00:00

FontEditor: Let WindowServer manage modified markings

Simplifies building modified/new font titles and lets FontEditor
make use of the comfy ellipsis close button.
This commit is contained in:
thankyouverycool 2021-08-26 17:25:02 -04:00 committed by Andreas Kling
parent a621932c11
commit e8e7c59c34
3 changed files with 30 additions and 58 deletions

View file

@ -52,7 +52,6 @@ int main(int argc, char** argv)
RefPtr<Gfx::BitmapFont> edited_font;
if (path == nullptr) {
path = "Untitled.font";
edited_font = static_ptr_cast<Gfx::BitmapFont>(Gfx::FontDatabase::default_font().clone());
} else {
auto bitmap_font = Gfx::BitmapFont::load_from_file(path);
@ -76,7 +75,6 @@ int main(int argc, char** argv)
window->resize(440, 470);
auto& font_editor = window->set_main_widget<FontEditorWidget>(path, move(edited_font));
font_editor.update_title();
font_editor.initialize_menubar(*window);