mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-20 07:11:12 -06:00 
			
		
		
		
	fix color in dark mode
This commit is contained in:
		
							parent
							
								
									60acc6b4e8
								
							
						
					
					
						commit
						86bfbb7fcc
					
				
					 2 changed files with 6 additions and 2 deletions
				
			
		|  | @ -251,7 +251,11 @@ AboutDialog::AboutDialog() | |||
|         version_font.SetPointSize(FromDIP(16)); | ||||
|         version->SetFont(version_font); | ||||
|         version->SetForegroundColour(wxColour("#FFFFFD")); | ||||
|         version->SetBackgroundColour(wxColour("#009688")); | ||||
|         if(wxGetApp().dark_mode()) | ||||
|             version->SetBackgroundColour(wxColour("#00675b")); | ||||
|         else | ||||
|             version->SetBackgroundColour(wxColour("#009688")); | ||||
| 
 | ||||
|         vesizer->Add(version, 0, wxALL | wxALIGN_CENTER_HORIZONTAL, FromDIP(5)); | ||||
|         vesizer->Add(0, 0, 1, wxEXPAND, FromDIP(5)); | ||||
|     } | ||||
|  |  | |||
|  | @ -5,7 +5,7 @@ static bool gDarkMode = false; | |||
| static bool operator<(wxColour const &l, wxColour const &r) { return l.GetRGBA() < r.GetRGBA(); } | ||||
| 
 | ||||
| static std::map<wxColour, wxColour> gDarkColors{ | ||||
|     {"#009688", "#21A452"}, | ||||
|     {"#009688", "#00675b"}, | ||||
|     {"#1F8EEA", "#2778D2"}, | ||||
|     {"#FF6F00", "#D15B00"}, | ||||
|     {"#D01B1B", "#BB2A3A"}, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 SoftFever
						SoftFever