mirror of
				https://github.com/nsnail/spectre.console.git
				synced 2025-11-04 10:35:27 +08:00 
			
		
		
		
	Improve text composite
- A `Text` object should not be able to justify itself. All justification needs to be done by a parent. - Apply colors and styles to part of a `Text` object - Markup parser should return a `Text` object
This commit is contained in:
		
				
					committed by
					
						
						Patrik Svensson
					
				
			
			
				
	
			
			
			
						parent
						
							8e4f33bba4
						
					
				
				
					commit
					f19202b427
				
			@@ -92,12 +92,7 @@ namespace Spectre.Console.Internal
 | 
			
		||||
        internal static Color ExactOrClosest(ColorSystem system, Color color)
 | 
			
		||||
        {
 | 
			
		||||
            var exact = Exact(system, color);
 | 
			
		||||
            if (exact != null)
 | 
			
		||||
            {
 | 
			
		||||
                return exact.Value;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            return Closest(system, color);
 | 
			
		||||
            return exact ?? Closest(system, color);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        private static Color? Exact(ColorSystem system, Color color)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user