mirror of
https://github.com/ankitects/anki.git
synced 2025-11-13 08:07:11 -05: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,6 +83,7 @@ class AddCards(QDialog):
|
||||||
|
|
||||||
def setupStatus(self):
|
def setupStatus(self):
|
||||||
"Make the status background the same colour as the frame."
|
"Make the status background the same colour as the frame."
|
||||||
|
if not sys.platform.startswith("darwin"):
|
||||||
p = self.dialog.status.palette()
|
p = self.dialog.status.palette()
|
||||||
c = unicode(p.color(QPalette.Window).name())
|
c = unicode(p.color(QPalette.Window).name())
|
||||||
self.dialog.status.setStyleSheet(
|
self.dialog.status.setStyleSheet(
|
||||||
|
|
|
||||||
|
|
@ -118,6 +118,9 @@
|
||||||
</disabled>
|
</disabled>
|
||||||
</palette>
|
</palette>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="acceptDrops" >
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
<property name="autoFillBackground" >
|
<property name="autoFillBackground" >
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
|
|
@ -130,6 +133,9 @@
|
||||||
<property name="horizontalScrollBarPolicy" >
|
<property name="horizontalScrollBarPolicy" >
|
||||||
<enum>Qt::ScrollBarAlwaysOff</enum>
|
<enum>Qt::ScrollBarAlwaysOff</enum>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="readOnly" >
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
<property name="html" >
|
<property name="html" >
|
||||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
<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">
|
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue