Skip to content

Commit

Permalink
Serendipity: Add new tips and use more GML
Browse files Browse the repository at this point in the history
  • Loading branch information
thankyouverycool authored and awesomekling committed Mar 18, 2021
1 parent 7beae80 commit 4ef0e4b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
3 changes: 3 additions & 0 deletions Base/home/anon/Documents/tips.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,7 @@ The Run dialog accepts all Shell command language. Truly the gentleman's termina
Windows can be dragged from any visible point by holding Super+Left-click. Super+Right-click begins resizing them.
Many Serenity applications already have convenient aliases. $ cat /etc/shellrc to view them.
Custom keymaps can be created and edited with $ KeyboardMapper
Supplying # profile with a PID of -1 as root enables systemwide profiling.
Holding Ctrl accelerates mouse wheel interaction with sliders and spin boxes.
Selected files can be renamed by pressing F2.

6 changes: 0 additions & 6 deletions Userland/Applications/Serendipity/SerendipityWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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));
Expand Down
3 changes: 3 additions & 0 deletions Userland/Applications/Serendipity/SerendipityWindow.gml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@
@GUI::Widget {
}

@GUI::HorizontalSeparator {
fixed_height: 2
}
}
}

Expand Down
4 changes: 2 additions & 2 deletions Userland/Applications/Serendipity/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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();
Expand Down

0 comments on commit 4ef0e4b

Please sign in to comment.