1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 03:17:34 +00:00

DisplaySettings: Convert the GUI to GML :^)

This commit is contained in:
Andreas Kling 2020-12-30 02:44:03 +01:00
parent 01ccbdb017
commit 8df1f6951e
6 changed files with 146 additions and 87 deletions

View file

@ -26,15 +26,14 @@
#pragma once
#include "LibGfx/Bitmap.h"
#include <LibGUI/Widget.h>
namespace DisplaySettings {
class MonitorWidget final : public GUI::Widget {
C_OBJECT(MonitorWidget);
public:
MonitorWidget();
bool set_wallpaper(String path);
String wallpaper();
@ -48,6 +47,8 @@ public:
Gfx::Color background_color();
private:
MonitorWidget();
virtual void paint_event(GUI::PaintEvent& event) override;
Gfx::IntRect m_monitor_rect;
@ -59,3 +60,5 @@ private:
Gfx::IntSize m_desktop_resolution;
Gfx::Color m_desktop_color;
};
}