mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
make sure add items status is read-only, fix colour on osx
This commit is contained in:
parent
3e252d5507
commit
588a3feead
2 changed files with 11 additions and 4 deletions
|
@ -83,10 +83,11 @@ class AddCards(QDialog):
|
|||
|
||||
def setupStatus(self):
|
||||
"Make the status background the same colour as the frame."
|
||||
p = self.dialog.status.palette()
|
||||
c = unicode(p.color(QPalette.Window).name())
|
||||
self.dialog.status.setStyleSheet(
|
||||
"* { background: %s; color: #000000; }" % c)
|
||||
if not sys.platform.startswith("darwin"):
|
||||
p = self.dialog.status.palette()
|
||||
c = unicode(p.color(QPalette.Window).name())
|
||||
self.dialog.status.setStyleSheet(
|
||||
"* { background: %s; color: #000000; }" % c)
|
||||
|
||||
def modelChanged(self, model):
|
||||
oldFact = self.editor.fact
|
||||
|
|
|
@ -118,6 +118,9 @@
|
|||
</disabled>
|
||||
</palette>
|
||||
</property>
|
||||
<property name="acceptDrops" >
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="autoFillBackground" >
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
|
@ -130,6 +133,9 @@
|
|||
<property name="horizontalScrollBarPolicy" >
|
||||
<enum>Qt::ScrollBarAlwaysOff</enum>
|
||||
</property>
|
||||
<property name="readOnly" >
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="html" >
|
||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||
|
|
Loading…
Reference in a new issue