mirror of
https://github.com/ankitects/anki.git
synced 2025-11-08 05:37:12 -05:00
don't use buggy osx colour dialog
This commit is contained in:
parent
146a881f9b
commit
22134a5fb8
1 changed files with 3 additions and 1 deletions
|
|
@ -259,7 +259,9 @@ order by n""", id=card.id)
|
|||
self.renderPreview()
|
||||
|
||||
def chooseColour(self, button, type="field"):
|
||||
new = QColorDialog.getColor(button.palette().window().color(), self)
|
||||
new = QColorDialog.getColor(button.palette().window().color(), self,
|
||||
_("Choose Color"),
|
||||
QColorDialog.DontUseNativeDialog)
|
||||
if new.isValid():
|
||||
button.setPalette(QPalette(new))
|
||||
if type == "field":
|
||||
|
|
|
|||
Loading…
Reference in a new issue