mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 05:52:46 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			45 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			45 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2019-2020, Jesse Buhagiar <jooster669@gmail.com>
 | |
|  * Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include "MonitorWidget.h"
 | |
| #include <LibCore/Timer.h>
 | |
| #include <LibGUI/ColorInput.h>
 | |
| #include <LibGUI/ComboBox.h>
 | |
| #include <LibGUI/Menu.h>
 | |
| #include <LibGUI/RadioButton.h>
 | |
| #include <LibGUI/SettingsWindow.h>
 | |
| 
 | |
| namespace DisplaySettings {
 | |
| 
 | |
| class BackgroundSettingsWidget : public GUI::SettingsWindow::Tab {
 | |
|     C_OBJECT(BackgroundSettingsWidget);
 | |
| 
 | |
| public:
 | |
|     virtual ~BackgroundSettingsWidget() override;
 | |
| 
 | |
|     virtual void apply_settings() override;
 | |
| 
 | |
| private:
 | |
|     BackgroundSettingsWidget();
 | |
| 
 | |
|     void create_frame();
 | |
|     void load_current_settings();
 | |
| 
 | |
|     Vector<String> m_modes;
 | |
| 
 | |
|     RefPtr<DisplaySettings::MonitorWidget> m_monitor_widget;
 | |
|     RefPtr<GUI::IconView> m_wallpaper_view;
 | |
|     RefPtr<GUI::ComboBox> m_mode_combo;
 | |
|     RefPtr<GUI::ColorInput> m_color_input;
 | |
|     RefPtr<GUI::Menu> m_context_menu;
 | |
|     RefPtr<GUI::Action> m_show_in_file_manager_action;
 | |
|     RefPtr<GUI::Action> m_copy_action;
 | |
| };
 | |
| 
 | |
| }
 | 
