def rgba_from_hex(hex_): """Translate color from html hex to Gdk.RGBA""" color = Gdk.RGBA() color.parse(hex_) return color