mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 18:15:07 +00:00
LibGUI: Add "uniform tabs" mode to TabWidget (all tabs have same width)
...and enable this in the main Browser UI. :^)
This commit is contained in:
parent
682f0ac93b
commit
d6bbf12b7c
3 changed files with 17 additions and 5 deletions
|
@ -87,6 +87,7 @@ int main(int argc, char** argv)
|
|||
auto& tab_widget = widget.add<GUI::TabWidget>();
|
||||
tab_widget.set_text_alignment(Gfx::TextAlignment::CenterLeft);
|
||||
tab_widget.set_container_padding(0);
|
||||
tab_widget.set_uniform_tabs(true);
|
||||
|
||||
tab_widget.on_change = [&](auto& active_widget) {
|
||||
auto& tab = static_cast<Browser::Tab&>(active_widget);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue