mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:37:34 +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:
parent
a621932c11
commit
e8e7c59c34
3 changed files with 30 additions and 58 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue