1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:57:44 +00:00

Serendipity: Add new tips and use more GML

This commit is contained in:
thankyouverycool 2021-03-17 12:04:42 -04:00 committed by Andreas Kling
parent 7beae8042a
commit 4ef0e4b62e
4 changed files with 8 additions and 8 deletions

View file

@ -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.

View file

@ -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));

View file

@ -101,6 +101,9 @@
@GUI::Widget {
}
@GUI::HorizontalSeparator {
fixed_height: 2
}
}
}

View file

@ -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();