mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 07:02:44 +00:00 
			
		
		
		
	 1ab510c4bb
			
		
	
	
		1ab510c4bb
		
	
	
	
	
		
			
			This adds icons for folder paths ending in ".git". This adds 16x16 and 32x32 versions of a folder with a Git logo for both the closed and open versions of the folder icon.
		
			
				
	
	
		
			31 lines
		
	
	
	
		
			729 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
	
		
			729 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <AK/Forward.h>
 | |
| #include <LibGUI/Forward.h>
 | |
| #include <sys/types.h>
 | |
| 
 | |
| namespace GUI {
 | |
| 
 | |
| class FileIconProvider {
 | |
| public:
 | |
|     static Icon icon_for_path(String const&, mode_t);
 | |
|     static Icon icon_for_path(String const&);
 | |
|     static Icon icon_for_executable(String const&);
 | |
| 
 | |
|     static Icon filetype_image_icon();
 | |
|     static Icon directory_icon();
 | |
|     static Icon directory_open_icon();
 | |
|     static Icon home_directory_icon();
 | |
|     static Icon home_directory_open_icon();
 | |
|     static Icon git_directory_icon();
 | |
|     static Icon git_directory_open_icon();
 | |
|     static Icon desktop_directory_icon();
 | |
| };
 | |
| 
 | |
| }
 |