diff --git a/aqt/editor.py b/aqt/editor.py
index 405716a7b..a97c31511 100644
--- a/aqt/editor.py
+++ b/aqt/editor.py
@@ -81,15 +81,15 @@ class Editor:
righttopbtns.append(self._addButton('text_clear', 'clear', _("Remove formatting (Ctrl+R)")))
# The color selection buttons do not use an icon so the HTML must be specified manually
tip = _("Set foreground colour (F7)")
- righttopbtns.append(f'''''')
+ class=topbut>'''.format(tip))
tip = _("Change colour (F8)")
- righttopbtns.append(f'''''')
+ class="topbut rainbow">'''.format(tip))
righttopbtns.append(self._addButton('text_cloze', 'cloze', _("Cloze deletion (Ctrl+Shift+C)")))
righttopbtns.append(self._addButton('paperclip', 'attach', _("Attach pictures/audio/video (F3)")))
righttopbtns.append(self._addButton('media-record', 'record', _("Record audio (F5)")))