summaryrefslogtreecommitdiff
path: root/Applications
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-05-05 14:39:37 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-05-05 14:39:37 +0200
commit4e1b36ddf254edf23bd4cd142a568862c3deef18 (patch)
treeee28a2fabf8f9078720990b0bea1a817a374833c /Applications
parent62e7b26406f9b51f0a7c2f9be730a24122aae1a7 (diff)
downloadserenity-4e1b36ddf254edf23bd4cd142a568862c3deef18.zip
GTabWidget: Make a custom look for tab buttons.
Diffstat (limited to 'Applications')
-rw-r--r--Applications/ProcessManager/main.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/Applications/ProcessManager/main.cpp b/Applications/ProcessManager/main.cpp
index 62f31ff3ae..f7159cf4d3 100644
--- a/Applications/ProcessManager/main.cpp
+++ b/Applications/ProcessManager/main.cpp
@@ -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);