mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
Merge branch 'main' into qt-widget-gallery
This commit is contained in:
commit
9373e1fbd0
2 changed files with 6 additions and 4 deletions
|
@ -1401,8 +1401,10 @@ class EditorWebView(AnkiWebView):
|
||||||
clip.setMimeData(mime)
|
clip.setMimeData(mime)
|
||||||
|
|
||||||
# Mutter bugs out if the clipboard data is mutated in the clipboard change
|
# Mutter bugs out if the clipboard data is mutated in the clipboard change
|
||||||
# hook, so we need to do it after a small delay
|
# hook, so we need to do it after a delay. Initially 10ms appeared to be
|
||||||
aqt.mw.progress.timer(10, after_delay, False, parent=self)
|
# 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:
|
def contextMenuEvent(self, evt: QContextMenuEvent) -> None:
|
||||||
m = QMenu(self)
|
m = QMenu(self)
|
||||||
|
|
|
@ -401,9 +401,9 @@ QRadioButton {{
|
||||||
QCheckBox::indicator,
|
QCheckBox::indicator,
|
||||||
QRadioButton::indicator,
|
QRadioButton::indicator,
|
||||||
QMenu::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)};
|
border-radius: {tm.var(props.BORDER_RADIUS)};
|
||||||
background: {tm.var(colors.CANVAS_INSET)};
|
background: {tm.var(colors.CANVAS_ELEVATED)};
|
||||||
width: 16px;
|
width: 16px;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Reference in a new issue