From 10fd465edb234c303cdcb4d4bd1e7375097df043 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 11 Jan 2023 19:59:34 +1000 Subject: [PATCH 1/2] Increase delay for mutter It's a nasty hack, and would be nice if we could easily limit it to users who are using Mutter. --- qt/aqt/editor.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qt/aqt/editor.py b/qt/aqt/editor.py index acd40ed10..54758c40e 100644 --- a/qt/aqt/editor.py +++ b/qt/aqt/editor.py @@ -1401,8 +1401,10 @@ class EditorWebView(AnkiWebView): clip.setMimeData(mime) # Mutter bugs out if the clipboard data is mutated in the clipboard change - # hook, so we need to do it after a small delay - aqt.mw.progress.timer(10, after_delay, False, parent=self) + # hook, so we need to do it after a delay. Initially 10ms appeared to be + # enough, but we've had a recent report than 175ms+ was required on their + # system. + aqt.mw.progress.timer(300 if is_lin else 10, after_delay, False, parent=self) def contextMenuEvent(self, evt: QContextMenuEvent) -> None: m = QMenu(self) From df456e959da4d168747c92ca13f3e725f541d869 Mon Sep 17 00:00:00 2001 From: Matthias Metelka <62722460+kleinerpirat@users.noreply.github.com> Date: Thu, 12 Jan 2023 00:16:38 +0100 Subject: [PATCH 2/2] Make QCheckBox more visible (#2314) --- qt/aqt/stylesheets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qt/aqt/stylesheets.py b/qt/aqt/stylesheets.py index 1087524c0..48ee06fdb 100644 --- a/qt/aqt/stylesheets.py +++ b/qt/aqt/stylesheets.py @@ -401,9 +401,9 @@ QRadioButton {{ QCheckBox::indicator, QRadioButton::indicator, QMenu::indicator {{ - border: 1px solid {tm.var(colors.BORDER_SUBTLE)}; + border: 1px solid {tm.var(colors.BORDER)}; border-radius: {tm.var(props.BORDER_RADIUS)}; - background: {tm.var(colors.CANVAS_INSET)}; + background: {tm.var(colors.CANVAS_ELEVATED)}; width: 16px; height: 16px; }}