mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-04 01:05:58 +03:00
35 lines
763 B
C++
35 lines
763 B
C++
/*
|
|
* Copyright (c) 2020-2022, the SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibCore/Timer.h>
|
|
#include <LibGUI/SettingsWindow.h>
|
|
#include <LibGUI/SpinBox.h>
|
|
|
|
namespace DisplaySettings {
|
|
|
|
class DesktopSettingsWidget : public GUI::SettingsWindow::Tab {
|
|
C_OBJECT_ABSTRACT(DesktopSettingsWidget);
|
|
|
|
public:
|
|
static ErrorOr<NonnullRefPtr<DesktopSettingsWidget>> try_create();
|
|
virtual ~DesktopSettingsWidget() override = default;
|
|
|
|
virtual void apply_settings() override;
|
|
|
|
private:
|
|
DesktopSettingsWidget() = default;
|
|
|
|
ErrorOr<void> create_frame();
|
|
void load_current_settings();
|
|
|
|
RefPtr<GUI::SpinBox> m_workspace_rows_spinbox;
|
|
RefPtr<GUI::SpinBox> m_workspace_columns_spinbox;
|
|
};
|
|
|
|
}
|