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

DisplaySettings: Add new Desktop tab with virtual desktop settings

This allows the user to configure the virtual desktop setup as desired.
This commit is contained in:
Tom 2021-06-30 11:28:16 -06:00 committed by Andreas Kling
parent 6472ee0eff
commit 5acee4b4d0
5 changed files with 175 additions and 0 deletions

View file

@ -0,0 +1,32 @@
/*
* Copyright (c) 2020, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibCore/Timer.h>
#include <LibGUI/SpinBox.h>
namespace DisplaySettings {
class DesktopSettingsWidget : public GUI::Widget {
C_OBJECT(DesktopSettingsWidget);
public:
virtual ~DesktopSettingsWidget() override;
void apply_settings();
private:
DesktopSettingsWidget();
void create_frame();
void load_current_settings();
RefPtr<GUI::SpinBox> m_virtual_desktop_rows_spinbox;
RefPtr<GUI::SpinBox> m_virtual_desktop_columns_spinbox;
};
}