summaryrefslogtreecommitdiff
path: root/Userland/Applications
diff options
context:
space:
mode:
authorthankyouverycool <66646555+thankyouverycool@users.noreply.github.com>2021-03-17 12:04:42 -0400
committerAndreas Kling <kling@serenityos.org>2021-03-18 07:50:48 +0100
commit4ef0e4b62e3deea6d70db312ae370049850075a4 (patch)
treeefca36ccde2ee2e81a284f3f079b2f418ef5275e /Userland/Applications
parent7beae8042a829e277bdbbca6674d56705446cc8d (diff)
downloadserenity-4ef0e4b62e3deea6d70db312ae370049850075a4.zip
Serendipity: Add new tips and use more GML
Diffstat (limited to 'Userland/Applications')
-rw-r--r--Userland/Applications/Serendipity/SerendipityWidget.cpp6
-rw-r--r--Userland/Applications/Serendipity/SerendipityWindow.gml3
-rw-r--r--Userland/Applications/Serendipity/main.cpp4
3 files changed, 5 insertions, 8 deletions
diff --git a/Userland/Applications/Serendipity/SerendipityWidget.cpp b/Userland/Applications/Serendipity/SerendipityWidget.cpp
index 6632d5230d..f101a53877 100644
--- a/Userland/Applications/Serendipity/SerendipityWidget.cpp
+++ b/Userland/Applications/Serendipity/SerendipityWidget.cpp
@@ -31,7 +31,6 @@
#include <LibGUI/Button.h>
#include <LibGUI/CheckBox.h>
#include <LibGUI/Label.h>
-#include <LibGUI/SeparatorWidget.h>
#include <LibGfx/FontDatabase.h>
#include <LibGfx/Palette.h>
#include <LibMarkdown/Document.h>
@@ -47,11 +46,6 @@ SerendipityWidget::SerendipityWidget()
auto& banner_label = *find_descendant_of_type_named<GUI::Label>("banner_label");
banner_label.set_icon(Gfx::Bitmap::load_from_file("/res/graphics/welcome-serendipity.png"));
- auto& navigation_column = *find_descendant_of_type_named<GUI::Widget>("navigation_column");
-
- auto& nav_separator = navigation_column.add<GUI::SeparatorWidget>(Gfx::Orientation::Horizontal);
- nav_separator.set_max_height(2);
-
auto& tip_frame = *find_descendant_of_type_named<GUI::Frame>("tip_frame");
auto palette = tip_frame.palette();
palette.set_color(Gfx::ColorRole::Base, Color::from_rgb(0xffffe1));
diff --git a/Userland/Applications/Serendipity/SerendipityWindow.gml b/Userland/Applications/Serendipity/SerendipityWindow.gml
index e0ed21deb7..b4e027242a 100644
--- a/Userland/Applications/Serendipity/SerendipityWindow.gml
+++ b/Userland/Applications/Serendipity/SerendipityWindow.gml
@@ -101,6 +101,9 @@
@GUI::Widget {
}
+ @GUI::HorizontalSeparator {
+ fixed_height: 2
+ }
}
}
diff --git a/Userland/Applications/Serendipity/main.cpp b/Userland/Applications/Serendipity/main.cpp
index f25bd052cb..db5c187575 100644
--- a/Userland/Applications/Serendipity/main.cpp
+++ b/Userland/Applications/Serendipity/main.cpp
@@ -44,8 +44,6 @@ int main(int argc, char** argv)
return 1;
}
- auto app_icon = GUI::Icon::default_icon("app-serendipity");
-
if (unveil("/res", "r") < 0) {
perror("unveil");
return 1;
@@ -71,6 +69,8 @@ int main(int argc, char** argv)
return 1;
}
+ auto app_icon = GUI::Icon::default_icon("app-serendipity");
+
auto window = GUI::Window::construct();
window->resize(480, 250);
window->center_on_screen();