mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 20:42:43 +00:00 
			
		
		
		
	 1682f0b760
			
		
	
	
		1682f0b760
		
	
	
	
	
		
			
			SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
		
			
				
	
	
		
			43 lines
		
	
	
	
		
			970 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
	
		
			970 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <LibGUI/Frame.h>
 | |
| #include <LibGfx/Palette.h>
 | |
| 
 | |
| namespace ThemeEditor {
 | |
| 
 | |
| class MiniWidgetGallery;
 | |
| 
 | |
| class PreviewWidget final : public GUI::Frame {
 | |
|     C_OBJECT(PreviewWidget);
 | |
| 
 | |
| public:
 | |
|     virtual ~PreviewWidget() override;
 | |
| 
 | |
|     const Gfx::Palette& preview_palette() const { return m_preview_palette; }
 | |
|     void set_preview_palette(const Gfx::Palette&);
 | |
| 
 | |
| private:
 | |
|     explicit PreviewWidget(const Gfx::Palette&);
 | |
| 
 | |
|     virtual void paint_event(GUI::PaintEvent&) override;
 | |
|     virtual void resize_event(GUI::ResizeEvent&) override;
 | |
| 
 | |
|     Gfx::Palette m_preview_palette;
 | |
| 
 | |
|     RefPtr<Gfx::Bitmap> m_active_window_icon;
 | |
|     RefPtr<Gfx::Bitmap> m_inactive_window_icon;
 | |
| 
 | |
|     RefPtr<MiniWidgetGallery> m_gallery;
 | |
| 
 | |
|     RefPtr<Gfx::Bitmap> m_close_bitmap;
 | |
|     RefPtr<Gfx::Bitmap> m_maximize_bitmap;
 | |
|     RefPtr<Gfx::Bitmap> m_minimize_bitmap;
 | |
| };
 | |
| 
 | |
| }
 |