mirror of
				https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
				synced 2025-10-30 19:50:06 +00:00 
			
		
		
		
	one more improvement
This commit is contained in:
		| @@ -180,7 +180,7 @@ fun main() { | |||||||
|                     val hex = Color.Hex("#${r.toString(16)}${g.toString(16)}${b.toString(16)}") |                     val hex = Color.Hex("#${r.toString(16)}${g.toString(16)}${b.toString(16)}") | ||||||
|                     webApp.setHeaderColor(hex) |                     webApp.setHeaderColor(hex) | ||||||
|                     (this as? HTMLButtonElement) ?.style ?.backgroundColor = hex.value |                     (this as? HTMLButtonElement) ?.style ?.backgroundColor = hex.value | ||||||
|                     textContent = hex.value |                     textContent = "Header color: ${hex.value.uppercase()} (click to change)" | ||||||
|                 } |                 } | ||||||
|                 addEventListener("click", { |                 addEventListener("click", { | ||||||
|                     updateHeaderColor() |                     updateHeaderColor() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user