Rename gapSize to smallGap
This commit is contained in:
		
							parent
							
								
									357757e479
								
							
						
					
					
						commit
						7dd9ddd810
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		
							
								
								
									
										8
									
								
								Main.go
									
										
									
									
									
								
							
							
						
						
									
										8
									
								
								Main.go
									
										
									
									
									
								
							|  | @ -13,8 +13,8 @@ import ( | |||
| 
 | ||||
| const ( | ||||
| 	dayWidth    = 2 | ||||
| 	gapWidth    = 1 | ||||
| 	monthWidth  = 7*dayWidth + 6*gapWidth | ||||
| 	smallGap    = 1 | ||||
| 	monthWidth  = 7*dayWidth + 6*smallGap | ||||
| 	monthHeight = (31+6+(7-1))/7 + 2 | ||||
| ) | ||||
| 
 | ||||
|  | @ -88,7 +88,7 @@ func drawMonth(m time.Month, x, y int) { | |||
| 	centeredText(months[m], x, y, monthWidth, wall, defStyle) | ||||
| 
 | ||||
| 	for i := 1; i <= 7; i++ { | ||||
| 		centeredText(weekdays[i % 7], x + (i - 1) * (dayWidth + gapWidth), y + 1, dayWidth, wall, defStyle) | ||||
| 		centeredText(weekdays[i % 7], x + (i - 1) * (dayWidth + smallGap), y + 1, dayWidth, wall, defStyle) | ||||
| 	} | ||||
| 
 | ||||
| 	dayNum := date(selTime.Year(), m + 1, 0).Day() | ||||
|  | @ -100,7 +100,7 @@ func drawMonth(m time.Month, x, y int) { | |||
| 		} | ||||
| 		centeredText( | ||||
| 			strconv.Itoa(i), | ||||
| 			x + ((weekday - 1 + 7) % 7) * (dayWidth + gapWidth), | ||||
| 			x + ((weekday - 1 + 7) % 7) * (dayWidth + smallGap), | ||||
| 			y + 2, | ||||
| 			2, | ||||
| 			wall, | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Petar Kapriš
						Petar Kapriš