diff --git a/src/gui/utils.py b/src/gui/utils.py index 48b8ebd38..fed3b71a8 100644 --- a/src/gui/utils.py +++ b/src/gui/utils.py @@ -491,5 +491,6 @@ def color_to_hex(color): def hex_to_color(hex): """Convert hex string to Gdk.Color.""" + from gi.repository import Gdk color = Gdk.color_parse(hex) return color