summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorsupercyp <supercyp971@gmail.com>2021-03-07 09:04:06 -0400
committerGitHub <noreply@github.com>2021-03-07 14:04:06 +0100
commita6f957a36b6b7a51225c0ea7f9e2e22678f3ed31 (patch)
tree61c9f3331a13a1294b459844a588fa2bc26fb304 /Userland
parent7f9f9164709870739540673f5bb21ac174ea0023 (diff)
downloadserenity-a6f957a36b6b7a51225c0ea7f9e2e22678f3ed31.zip
Serendipity: Make main window resizable (#5675)
If it is not resizable, the "What's new" page may be hard to read.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Applications/Serendipity/SerendipityWindow.gml26
-rw-r--r--Userland/Applications/Serendipity/main.cpp4
2 files changed, 16 insertions, 14 deletions
diff --git a/Userland/Applications/Serendipity/SerendipityWindow.gml b/Userland/Applications/Serendipity/SerendipityWindow.gml
index 9393d7b888..acdef21c77 100644
--- a/Userland/Applications/Serendipity/SerendipityWindow.gml
+++ b/Userland/Applications/Serendipity/SerendipityWindow.gml
@@ -20,14 +20,14 @@
}
@GUI::Widget {
- fixed_height: 160
+ min_height: 160
layout: @GUI::HorizontalBoxLayout {
}
@GUI::Frame {
name: "tip_frame"
- fixed_width: 340
- fixed_height: 160
+ min_width: 340
+ min_height: 160
layout: @GUI::HorizontalBoxLayout {
margins: [0, 0, 16, 0]
}
@@ -67,46 +67,48 @@
@Web::OutOfProcessWebView {
name: "web_view"
- fixed_width: 340
- fixed_height: 160
+ min_width: 340
+ min_height: 160
visible: false
}
@GUI::Widget {
+ fixed_width: 5
}
@GUI::Widget {
name: "navigation_column"
fixed_width: 120
- fixed_height: 160
+ min_height: 160
layout: @GUI::VerticalBoxLayout {
}
@GUI::Button {
name: "new_button"
text: "What's New"
- fixed_width: 115
- fixed_height: 24
+ min_width: 115
+ min_height: 24
}
@GUI::Button {
name: "help_button"
text: "Help Contents"
- fixed_width: 115
- fixed_height: 24
+ min_width: 115
+ min_height: 24
}
@GUI::Button {
name: "next_button"
text: "Next Tip"
- fixed_width: 115
- fixed_height: 24
+ min_width: 115
+ min_height: 24
}
}
}
@GUI::Widget {
+ fixed_height: 5
}
@GUI::Widget {
diff --git a/Userland/Applications/Serendipity/main.cpp b/Userland/Applications/Serendipity/main.cpp
index ec567f6618..b297501d7f 100644
--- a/Userland/Applications/Serendipity/main.cpp
+++ b/Userland/Applications/Serendipity/main.cpp
@@ -63,11 +63,11 @@ int main(int argc, char** argv)
}
auto window = GUI::Window::construct();
- window->resize(480, 250);
+ window->set_minimum_size(480, 250);
window->center_on_screen();
window->set_title("Welcome");
- window->set_resizable(false);
+ window->set_resizable(true);
window->set_window_type(GUI::WindowType::ToolWindow);
window->set_main_widget<SerendipityWidget>();