mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 13:42:44 +00:00 
			
		
		
		
	 6e19ab2bbc
			
		
	
	
		6e19ab2bbc
		
	
	
	
	
		
			
			We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
		
			
				
	
	
		
			40 lines
		
	
	
	
		
			908 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
	
		
			908 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2022, MacDue <macdue@dueutil.tech>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <AK/DeprecatedString.h>
 | |
| #include <AK/Vector.h>
 | |
| #include <LibGUI/ComboBox.h>
 | |
| #include <LibGUI/SettingsWindow.h>
 | |
| #include <LibGfx/SystemTheme.h>
 | |
| 
 | |
| #include "ThemePreviewWidget.h"
 | |
| 
 | |
| namespace DisplaySettings {
 | |
| 
 | |
| class ThemesSettingsWidget final : public GUI::SettingsWindow::Tab {
 | |
|     C_OBJECT(ThemesSettingsWidget);
 | |
| 
 | |
| public:
 | |
|     virtual void apply_settings() override;
 | |
| 
 | |
| private:
 | |
|     Vector<Gfx::SystemThemeMetaData> m_themes;
 | |
|     Vector<DeprecatedString> m_theme_names;
 | |
| 
 | |
|     RefPtr<GUI::ComboBox> m_themes_combo;
 | |
|     RefPtr<ThemePreviewWidget> m_theme_preview;
 | |
|     Gfx::SystemThemeMetaData const* m_selected_theme { nullptr };
 | |
| 
 | |
|     RefPtr<GUI::Button> m_cursor_themes_button;
 | |
| 
 | |
|     bool& m_background_settings_changed;
 | |
| 
 | |
|     ThemesSettingsWidget(bool& background_settings_changed);
 | |
| };
 | |
| 
 | |
| }
 |