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

PDFViewer: Add page mode option

This commit is contained in:
Matthew Olsson 2022-03-28 21:19:45 -07:00 committed by Andreas Kling
parent c39718ca81
commit 091c2cfdca
6 changed files with 54 additions and 11 deletions

View file

@ -6,6 +6,7 @@
*/
#include "PDFViewerWidget.h"
#include <LibConfig/Client.h>
#include <LibCore/ArgsParser.h>
#include <LibCore/System.h>
#include <LibFileSystemAccessClient/Client.h>
@ -25,7 +26,9 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
auto app = TRY(GUI::Application::try_create(arguments));
auto app_icon = GUI::Icon::default_icon("app-pdf-viewer");
auto window = GUI::Window::construct();
Config::pledge_domain("PDFViewer");
auto window = TRY(GUI::Window::try_create());
window->set_title("PDF Viewer");
window->resize(640, 400);