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:
parent
e78cf6c590
commit
1307f7292c
2 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,8 @@
|
||||||
"class": "GUI::TabWidget",
|
"class": "GUI::TabWidget",
|
||||||
"name": "tab_widget",
|
"name": "tab_widget",
|
||||||
"container_padding": 0,
|
"container_padding": 0,
|
||||||
"uniform_tabs": true
|
"uniform_tabs": true,
|
||||||
|
"text_alignment": "CenterLeft"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -138,7 +138,6 @@ int main(int argc, char** argv)
|
||||||
widget.load_from_json(browser_window_ui_json);
|
widget.load_from_json(browser_window_ui_json);
|
||||||
|
|
||||||
auto& tab_widget = static_cast<GUI::TabWidget&>(*widget.find_descendant_by_name("tab_widget"));
|
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");
|
auto default_favicon = Gfx::Bitmap::load_from_file("/res/icons/16x16/filetype-html.png");
|
||||||
ASSERT(default_favicon);
|
ASSERT(default_favicon);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue