mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 18:25:07 +00:00
GTabWidget: Make a custom look for tab buttons.
This commit is contained in:
parent
62e7b26406
commit
4e1b36ddf2
5 changed files with 66 additions and 5 deletions
|
@ -24,9 +24,14 @@ int main(int argc, char** argv)
|
|||
tabwidget->add_widget("Processes", widget);
|
||||
auto* placeholder_label = new GLabel("Placeholder text");
|
||||
placeholder_label->set_fill_with_background_color(true);
|
||||
placeholder_label->set_background_color(Color::from_rgb(0xffc0c0));
|
||||
placeholder_label->set_background_color(Color::LightGray);
|
||||
tabwidget->add_widget("Placeholder", placeholder_label);
|
||||
|
||||
auto* placeholder2_label = new GLabel("Placeholder2 text");
|
||||
placeholder2_label->set_fill_with_background_color(true);
|
||||
placeholder2_label->set_background_color(Color::LightGray);
|
||||
tabwidget->add_widget("Another", placeholder2_label);
|
||||
|
||||
widget->set_layout(make<GBoxLayout>(Orientation::Vertical));
|
||||
|
||||
auto* toolbar = new GToolBar(widget);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue