diff options
author | Florian Bruhin <me@the-compiler.org> | 2020-11-20 11:08:11 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2020-11-20 11:17:24 +0100 |
commit | bedc9f7fadf93f83d8dee95feeecb9922b6f063f (patch) | |
tree | 659d6c3a8d87e7aa0f4bd98809ce72b55be849bd /qutebrowser/mainwindow/tabbedbrowser.py | |
parent | 0e624e64695e8f566c7391f65f737311aeb6b2eb (diff) | |
download | qutebrowser-bedc9f7fadf93f83d8dee95feeecb9922b6f063f.tar.gz qutebrowser-bedc9f7fadf93f83d8dee95feeecb9922b6f063f.zip |
Move utils.interpolate_color to qtutils
This avoids a circular import between utils and qtutils, which, while
unproblematic, was easy to fix.
Also, qtutils is actually a better fit here, because we're dealing with
QColor objects anyways.
Diffstat (limited to 'qutebrowser/mainwindow/tabbedbrowser.py')
-rw-r--r-- | qutebrowser/mainwindow/tabbedbrowser.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qutebrowser/mainwindow/tabbedbrowser.py b/qutebrowser/mainwindow/tabbedbrowser.py index 9bb8d34ce..c67e5fa0e 100644 --- a/qutebrowser/mainwindow/tabbedbrowser.py +++ b/qutebrowser/mainwindow/tabbedbrowser.py @@ -863,7 +863,7 @@ class TabbedBrowser(QWidget): start = config.cache['colors.tabs.indicator.start'] stop = config.cache['colors.tabs.indicator.stop'] system = config.cache['colors.tabs.indicator.system'] - color = utils.interpolate_color(start, stop, perc, system) + color = qtutils.interpolate_color(start, stop, perc, system) self.widget.set_tab_indicator_color(idx, color) self.widget.update_tab_title(idx) if idx == self.widget.currentIndex(): @@ -880,7 +880,7 @@ class TabbedBrowser(QWidget): start = config.cache['colors.tabs.indicator.start'] stop = config.cache['colors.tabs.indicator.stop'] system = config.cache['colors.tabs.indicator.system'] - color = utils.interpolate_color(start, stop, 100, system) + color = qtutils.interpolate_color(start, stop, 100, system) else: color = config.cache['colors.tabs.indicator.error'] self.widget.set_tab_indicator_color(idx, color) |