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:
parent
01ccbdb017
commit
8df1f6951e
6 changed files with 146 additions and 87 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue