1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 04:27:44 +00:00

Browser: Set tab text alignment from JSON GUI

This commit is contained in:
Andreas Kling 2020-09-14 18:33:28 +02:00
parent e78cf6c590
commit 1307f7292c
2 changed files with 2 additions and 2 deletions

View file

@ -12,7 +12,8 @@
"class": "GUI::TabWidget",
"name": "tab_widget",
"container_padding": 0,
"uniform_tabs": true
"uniform_tabs": true,
"text_alignment": "CenterLeft"
}
]
}

View file

@ -138,7 +138,6 @@ int main(int argc, char** argv)
widget.load_from_json(browser_window_ui_json);
auto& tab_widget = static_cast<GUI::TabWidget&>(*widget.find_descendant_by_name("tab_widget"));
tab_widget.set_text_alignment(Gfx::TextAlignment::CenterLeft);
auto default_favicon = Gfx::Bitmap::load_from_file("/res/icons/16x16/filetype-html.png");
ASSERT(default_favicon);