mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 12:32:43 +00:00 
			
		
		
		
	LibGfx: Add Gfx::TextAttributes (and use it in GUI::TextDocumentSpan)
This commit is contained in:
		
							parent
							
								
									0d44ee6f2b
								
							
						
					
					
						commit
						05f5d0dda3
					
				
					 11 changed files with 127 additions and 83 deletions
				
			
		|  | @ -71,8 +71,8 @@ void IniSyntaxHighlighter::rehighlight(Gfx::Palette palette) | |||
|         span.range.set_start({ token.m_start.line, token.m_start.column }); | ||||
|         span.range.set_end({ token.m_end.line, token.m_end.column }); | ||||
|         auto style = style_for_token_type(palette, token.m_type); | ||||
|         span.color = style.color; | ||||
|         span.bold = style.bold; | ||||
|         span.attributes.color = style.color; | ||||
|         span.attributes.bold = style.bold; | ||||
|         span.is_skippable = token.m_type == IniToken::Type::Whitespace; | ||||
|         span.data = reinterpret_cast<void*>(token.m_type); | ||||
|         spans.append(span); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling