mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 16:32:45 +00:00 
			
		
		
		
	WindowServer+LibGUI: Pass window icons as shared buffers rather than paths.
Now that we support more than 2 clients per shared buffer, we can use them for window icons. I didn't do that previously since it would have made the Taskbar process unable to access the icons. This opens up some nice possibilities for programmatically generated icons.
This commit is contained in:
		
							parent
							
								
									63619b9f7c
								
							
						
					
					
						commit
						841b2e5d13
					
				
					 21 changed files with 193 additions and 19 deletions
				
			
		|  | @ -1,4 +1,5 @@ | |||
| #include "FontEditor.h" | ||||
| #include <LibDraw/PNGLoader.h> | ||||
| #include <LibGUI/GApplication.h> | ||||
| #include <LibGUI/GWindow.h> | ||||
| #include <stdio.h> | ||||
|  | @ -30,6 +31,6 @@ int main(int argc, char** argv) | |||
|     auto* font_editor = new FontEditorWidget(path, move(edited_font)); | ||||
|     window->set_main_widget(font_editor); | ||||
|     window->show(); | ||||
|     window->set_icon_path("/res/icons/16x16/app-font-editor.png"); | ||||
|     window->set_icon(load_png("/res/icons/16x16/app-font-editor.png")); | ||||
|     return app.exec(); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling