diff options
Diffstat (limited to 'Userland/Applications/MouseSettings/HighlightWidget.h')
-rw-r--r-- | Userland/Applications/MouseSettings/HighlightWidget.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Userland/Applications/MouseSettings/HighlightWidget.h b/Userland/Applications/MouseSettings/HighlightWidget.h new file mode 100644 index 0000000000..8dfd75fc3c --- /dev/null +++ b/Userland/Applications/MouseSettings/HighlightWidget.h @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2022, MacDue <macdue@dueutil.tech> + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#pragma once + +#include "HighlightPreviewWidget.h" +#include <LibGUI/ColorInput.h> +#include <LibGUI/SettingsWindow.h> +#include <LibGUI/Slider.h> +#include <LibGUI/Window.h> + +class HighlightWidget final : public GUI::SettingsWindow::Tab { + C_OBJECT(HighlightWidget) +public: + virtual ~HighlightWidget() override = default; + + virtual void apply_settings() override; + virtual void reset_default_values() override; + +private: + Gfx::Color highlight_color(); + + int highlight_radius(); + + HighlightWidget(); + RefPtr<MouseSettings::HighlightPreviewWidget> m_highlight_preview; + RefPtr<GUI::ColorInput> m_highlight_color_input; + RefPtr<GUI::Slider> m_highlight_opacity_slider; + RefPtr<GUI::Slider> m_highlight_radius_slider; +}; |