mirror of
				https://github.com/nicbarker/clay.git
				synced 2025-11-04 08:36:17 +00:00 
			
		
		
		
	[Documentation] Fix documentation mistake for border configuration
This commit is contained in:
		
							parent
							
								
									e6e0cd5a46
								
							
						
					
					
						commit
						d637e2a122
					
				
							
								
								
									
										16
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								README.md
									
									
									
									
									
								
							| 
						 | 
				
			
			@ -808,7 +808,7 @@ Clay_TextElementConfig {
 | 
			
		|||
 | 
			
		||||
`CLAY_TEXT_CONFIG(.textColor = {120, 120, 120, 255})`
 | 
			
		||||
 | 
			
		||||
Conventionally accepts `rgba` float values between 0 and 255, but interpretation is left up to the renderer and does not affect layout.
 | 
			
		||||
Uses [Clay_Color](#clay_color). Conventionally accepts `rgba` float values between 0 and 255, but interpretation is left up to the renderer and does not affect layout.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -1352,6 +1352,14 @@ typedef struct Clay_BorderElementConfig
 | 
			
		|||
 | 
			
		||||
**Fields**
 | 
			
		||||
 | 
			
		||||
**`.color`** - `Clay_Color`
 | 
			
		||||
 | 
			
		||||
`CLAY({ .border = { .color = { 255, 0, 0, 255 } } })`
 | 
			
		||||
 | 
			
		||||
Uses [Clay_Color](#clay_color). Specifies the shared color for all borders configured by this element. Conventionally accepts `rgba` float values between 0 and 255, but interpretation is left up to the renderer and does not affect layout.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
**`.width`** - `Clay_BorderWidth`
 | 
			
		||||
 | 
			
		||||
`CLAY({ .border = { .width = { .left = 2, .right = 10 } } })`
 | 
			
		||||
| 
						 | 
				
			
			@ -1370,12 +1378,6 @@ Configures the width and color of borders to be drawn between children. These bo
 | 
			
		|||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
**`.color`** - `Clay_Color`
 | 
			
		||||
 | 
			
		||||
`CLAY({ .border = { .color = { 255, 0, 0, 255 } } })`
 | 
			
		||||
 | 
			
		||||
Defines the radius in pixels for the arc of border corners (`0` is square, `rectangle.width / 2` is circular). It is up to the renderer to decide how to interpolate between differing border widths and colors across shared corners.
 | 
			
		||||
 | 
			
		||||
**Examples**
 | 
			
		||||
 | 
			
		||||
```C
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue