1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:58:12 +00:00

DisplayProperties: Add options to set the background color and wallpaper mode.

Wallpaper mode and background color change options are now available. Monitor preview
widget show new settings before apply. We have some missing preview features :(
This commit is contained in:
Hüseyin ASLITÜRK 2020-03-29 19:01:55 +03:00 committed by Andreas Kling
parent f88b90f6fd
commit 7971af474d
6 changed files with 463 additions and 153 deletions

View file

@ -38,14 +38,14 @@
int main(int argc, char** argv)
{
if (pledge("stdio shared_buffer rpath accept unix cpath wpath fattr", nullptr) < 0) {
if (pledge("stdio thread shared_buffer rpath accept cpath wpath unix fattr", nullptr) < 0) {
perror("pledge");
return 1;
}
GUI::Application app(argc, argv);
if (pledge("stdio shared_buffer rpath accept cpath wpath", nullptr) < 0) {
if (pledge("stdio thread shared_buffer rpath accept cpath wpath", nullptr) < 0) {
perror("pledge");
return 1;
}
@ -55,7 +55,7 @@ int main(int argc, char** argv)
auto window = GUI::Window::construct();
window->set_title("Display Properties");
window->move_to(100, 100);
window->resize(400, 448);
window->resize(360, 390);
window->set_resizable(false);
window->set_main_widget(instance.root_widget());
window->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/app-display-properties.png"));