mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-11-03 23:00:58 +00:00 
			
		
		
		
	LibGUI: Add MessageBox question icon
This commit is contained in:
		
							parent
							
								
									7fba21aefc
								
							
						
					
					
						commit
						25227ee284
					
				
				
				Notes:
				
					sideshowbarker
				
				2024-07-19 06:19:54 +09:00 
				
			
			Author: https://github.com/asliturk
Commit: 25227ee284
Pull-request: https://github.com/SerenityOS/serenity/pull/2305
			
					 2 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -71,6 +71,8 @@ RefPtr<Gfx::Bitmap> MessageBox::icon() const
 | 
				
			||||||
        return Gfx::Bitmap::load_from_file("/res/icons/32x32/msgbox-warning.png");
 | 
					        return Gfx::Bitmap::load_from_file("/res/icons/32x32/msgbox-warning.png");
 | 
				
			||||||
    case Type::Error:
 | 
					    case Type::Error:
 | 
				
			||||||
        return Gfx::Bitmap::load_from_file("/res/icons/32x32/msgbox-error.png");
 | 
					        return Gfx::Bitmap::load_from_file("/res/icons/32x32/msgbox-error.png");
 | 
				
			||||||
 | 
					    case Type::Question:
 | 
				
			||||||
 | 
					        return Gfx::Bitmap::load_from_file("/res/icons/32x32/msgbox-question.png");
 | 
				
			||||||
    default:
 | 
					    default:
 | 
				
			||||||
        return nullptr;
 | 
					        return nullptr;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -38,6 +38,7 @@ public:
 | 
				
			||||||
        Information,
 | 
					        Information,
 | 
				
			||||||
        Warning,
 | 
					        Warning,
 | 
				
			||||||
        Error,
 | 
					        Error,
 | 
				
			||||||
 | 
					        Question
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    enum class InputType {
 | 
					    enum class InputType {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue