mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 20:42:43 +00:00 
			
		
		
		
	WindowServer+WorkspacePicker: Adjust active and inactive colors
Now uses the Selection ColorRole for the active desktop and a slightly darkened Window for inactive ones. Several themes use the same color for thread highlighting and inactive windows which was causing frames to draw without the correct perception of depth.
This commit is contained in:
		
							parent
							
								
									24424d265d
								
							
						
					
					
						commit
						1f1ac99ef9
					
				
					 2 changed files with 4 additions and 4 deletions
				
			
		|  | @ -47,8 +47,8 @@ public: | |||
| 
 | ||||
|         auto& desktop = GUI::Desktop::the(); | ||||
| 
 | ||||
|         auto active_color = palette().active_window_border1(); | ||||
|         auto inactive_color = palette().inactive_window_border1(); | ||||
|         auto active_color = palette().selection(); | ||||
|         auto inactive_color = palette().window().darkened(0.9f); | ||||
| 
 | ||||
|         for (unsigned row = 0; row < desktop.workspace_rows(); ++row) { | ||||
|             for (unsigned column = 0; column < desktop.workspace_columns(); ++column) { | ||||
|  |  | |||
|  | @ -323,8 +323,8 @@ void WindowStackSwitchOverlay::render_overlay_bitmap(Gfx::Painter& painter) | |||
| { | ||||
|     // We should come up with a more elegant way to get the content rectangle
 | ||||
|     auto content_rect = Gfx::IntRect({}, m_content_size).centered_within({ {}, rect().size() }); | ||||
|     auto active_color = WindowManager::the().palette().active_window_border1(); | ||||
|     auto inactive_color = WindowManager::the().palette().inactive_window_border1(); | ||||
|     auto active_color = WindowManager::the().palette().selection(); | ||||
|     auto inactive_color = WindowManager::the().palette().window().darkened(0.9f); | ||||
|     for (int y = 0; y < m_rows; y++) { | ||||
|         for (int x = 0; x < m_columns; x++) { | ||||
|             Gfx::IntRect rect { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 thankyouverycool
						thankyouverycool