(defwidget color []
	(eventbox :style "background-color: ${color_code};"
		:onclick "wl-copy '${color_code}'"
		:onmiddleclick "eww update color_code=#000000 && eww update chosen_text_color=#FFFFFF"
		:class "color_pill" 
		(box :style "color: ${chosen_text_color};"
			color_code)))

(defvar color_code "#000000")
(defvar chosen_text_color "#FFFFFF")
