mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 11:32:43 +00:00 
			
		
		
		
	LibGfx+Userland: Merge FrameShape and FrameShadow into FrameStyle
Previously, Frames could set both these properties along with a thickness to confusing effect: Most shapes of the same shadowing only differentiated at a thickness >= 2, and some not at all. This led to a lot of creative but ultimately superfluous choices in the code. Instead let's streamline our options, automate thickness, and get the right look without so much guesswork. Plain shadowing has been consolidated into a single Plain style, and 0 thickness can be had by setting style to NoFrame.
This commit is contained in:
		
							parent
							
								
									4c9933bfb7
								
							
						
					
					
						commit
						f7e034d4b2
					
				
					 58 changed files with 148 additions and 208 deletions
				
			
		|  | @ -35,7 +35,7 @@ private: | |||
|     GraphWidget(GraphType graph_type, Optional<Gfx::Color> graph_color, Optional<Gfx::Color> graph_error_color) | ||||
|         : m_graph_type(graph_type) | ||||
|     { | ||||
|         set_frame_thickness(1); | ||||
|         set_frame_style(Gfx::FrameStyle::SunkenPanel); | ||||
|         m_graph_color = graph_color.value_or(palette().menu_selection()); | ||||
|         m_graph_error_color = graph_error_color.value_or(Color::Red); | ||||
|         start_timer(1000); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 thankyouverycool
						thankyouverycool