Skip to content

Commit

Permalink
Improves colors of goal progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierkes committed Nov 14, 2017
1 parent 845aa8b commit 2109f88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion manuskript/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ def toString(text):


def drawProgress(painter, rect, progress, radius=0):
from manuskript.ui import style as S
painter.setPen(Qt.NoPen)
painter.setBrush(QColor("#dddddd"))
painter.setBrush(QColor(S.base)) # "#dddddd"
painter.drawRoundedRect(rect, radius, radius)

painter.setBrush(QBrush(colorFromProgress(progress)))
Expand Down
4 changes: 2 additions & 2 deletions manuskript/ui/editors/mainEditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,12 +317,12 @@ def updateStats(self):
drawProgress(p, rect, progress, 2)
del p
self.lblRedacProgress.setPixmap(self.px)
self.lblRedacWC.setText(self.tr("{} words / {}").format(
self.lblRedacWC.setText(self.tr("{} words / {} ").format(
locale.format("%d", wc, grouping=True),
locale.format("%d", goal, grouping=True)))
else:
self.lblRedacProgress.hide()
self.lblRedacWC.setText(self.tr("{} words").format(
self.lblRedacWC.setText(self.tr("{} words ").format(
locale.format("%d", wc, grouping=True)))

###############################################################################
Expand Down

0 comments on commit 2109f88

Please sign in to comment.