add custom button size for osx

This commit is contained in:
Damien Elmes 2009-06-16 04:18:36 +09:00
parent 677fb7e7ae
commit 558caa8947

View file

@ -121,6 +121,9 @@ class AnkiQt(QMainWindow):
lambda: self.mainWin.noticeFrame.setShown(False))
if sys.platform.startswith("win32"):
self.mainWin.noticeButton.setFixedWidth(24)
elif sys.platform.startswith("darwin"):
self.mainWin.noticeButton.setFixedWidth(20)
self.mainWin.noticeButton.setFixedHeight(20)
def setNotice(self, str):
self.mainWin.noticeLabel.setText(str)