mirror of
https://github.com/ankitects/anki.git
synced 2025-11-08 13:47:13 -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()
|
self.renderPreview()
|
||||||
|
|
||||||
def chooseColour(self, button, type="field"):
|
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():
|
if new.isValid():
|
||||||
button.setPalette(QPalette(new))
|
button.setPalette(QPalette(new))
|
||||||
if type == "field":
|
if type == "field":
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue