mirror of
https://github.com/ankitects/anki.git
synced 2025-11-18 02:27:12 -05:00
Use canvas-inset variable for switch knob
This commit is contained in:
parent
decfa16df2
commit
a7c1cdfa2d
1 changed files with 1 additions and 1 deletions
|
|
@ -103,7 +103,7 @@ class Switch(QAbstractButton):
|
|||
if theme_manager.night_mode:
|
||||
color = QColor(theme_manager.DARK_MODE_BUTTON_BG_MIDPOINT)
|
||||
else:
|
||||
color = theme_manager.qcolor(colors.CANVAS_INSET)
|
||||
color = theme_manager.qcolor(colors.CANVAS_OUTSET)
|
||||
painter.setBrush(QBrush(color))
|
||||
painter.drawEllipse(self._current_knob_rectangle())
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue