mirror of
https://github.com/ankitects/anki.git
synced 2025-12-17 08:40:57 -05:00
add icon to review button, decrease graph intensity, fix creation time
This commit is contained in:
parent
8c95cfb0c9
commit
b2bb7c4288
5 changed files with 40 additions and 13 deletions
|
|
@ -67,6 +67,7 @@ class AnkiQt(QMainWindow):
|
|||
# check for updates
|
||||
self.setupAutoUpdate()
|
||||
self.setupErrorHandler()
|
||||
self.setupMisc()
|
||||
self.loadPlugins()
|
||||
self.rebuildPluginsMenu()
|
||||
# run after-init hook
|
||||
|
|
@ -1020,10 +1021,11 @@ day = :d""", d=yesterday)
|
|||
# start reviewing button
|
||||
self.mainWin.buttonStack.setCurrentIndex(3)
|
||||
self.mainWin.buttonStack.show()
|
||||
t = " " * 5
|
||||
if initial:
|
||||
self.mainWin.startReviewingButton.setText(_("Start &Reviewing"))
|
||||
self.mainWin.startReviewingButton.setText(t+_("Start &Reviewing"))
|
||||
else:
|
||||
self.mainWin.startReviewingButton.setText(_("Continue &Reviewing"))
|
||||
self.mainWin.startReviewingButton.setText(t+_("Continue &Reviewing"))
|
||||
self.mainWin.startReviewingButton.setFocus()
|
||||
self.connect(self.mainWin.startReviewingButton,
|
||||
SIGNAL("clicked()"),
|
||||
|
|
@ -1939,3 +1941,11 @@ Consider backing up your media directory first."""))
|
|||
self.documentDir = os.path.expanduser("~/Documents")
|
||||
else:
|
||||
self.documentDir = os.path.expanduser("~/.anki")
|
||||
|
||||
# Misc
|
||||
##########################################################################
|
||||
|
||||
def setupMisc(self):
|
||||
if time.time() - self.config['created'] < 60 and self.deck:
|
||||
self.config['created'] = self.deck.created
|
||||
print (time.time() - self.deck.created) / 60.0 / 60.0 / 24.0
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@
|
|||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>428</width>
|
||||
<height>563</height>
|
||||
<height>546</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
|
|
@ -481,8 +481,8 @@
|
|||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>542</width>
|
||||
<height>49</height>
|
||||
<width>428</width>
|
||||
<height>66</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout" >
|
||||
|
|
@ -501,6 +501,12 @@
|
|||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="showAnswerButton" >
|
||||
<property name="minimumSize" >
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>41</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip" >
|
||||
<string>Show the answer (shortcut key: space or enter)</string>
|
||||
</property>
|
||||
|
|
@ -516,8 +522,8 @@
|
|||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>542</width>
|
||||
<height>49</height>
|
||||
<width>428</width>
|
||||
<height>66</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_3" >
|
||||
|
|
@ -666,8 +672,8 @@
|
|||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>542</width>
|
||||
<height>49</height>
|
||||
<width>428</width>
|
||||
<height>66</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_4" >
|
||||
|
|
@ -701,8 +707,8 @@
|
|||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>542</width>
|
||||
<height>49</height>
|
||||
<width>428</width>
|
||||
<height>66</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_6" >
|
||||
|
|
@ -724,6 +730,16 @@
|
|||
<property name="text" >
|
||||
<string>Review</string>
|
||||
</property>
|
||||
<property name="icon" >
|
||||
<iconset resource="../icons.qrc" >
|
||||
<normaloff>:/icons/player-time.png</normaloff>:/icons/player-time.png</iconset>
|
||||
</property>
|
||||
<property name="iconSize" >
|
||||
<size>
|
||||
<width>32</width>
|
||||
<height>32</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
|
|
@ -734,7 +750,7 @@
|
|||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>428</width>
|
||||
<height>49</height>
|
||||
<height>66</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_7" >
|
||||
|
|
@ -774,7 +790,7 @@
|
|||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>428</width>
|
||||
<height>49</height>
|
||||
<height>66</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<RCC>
|
||||
<qresource prefix="/" >
|
||||
<file>icons/player-time.png</file>
|
||||
<file>icons/find.png</file>
|
||||
<file>icons/editclear.png</file>
|
||||
<file>icons/view-statistics.png</file>
|
||||
|
|
|
|||
BIN
icons/player-time.png
Normal file
BIN
icons/player-time.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.4 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.3 KiB |
Loading…
Reference in a new issue