Skip to content

Commit

Permalink
optimised all PNGs + switching to OpenSans font
Browse files Browse the repository at this point in the history
  • Loading branch information
ozmartian committed Dec 31, 2016
1 parent 62424f0 commit 6c60fe8
Show file tree
Hide file tree
Showing 12 changed files with 27,881 additions and 18,472 deletions.
Binary file added fonts/OpenSans.ttf
Binary file not shown.
Binary file modified images/clipindex.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/filmstrip.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/knob.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/muted.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/novideo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/runtime.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/unmuted.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/vidcutter.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46,341 changes: 27,875 additions & 18,466 deletions resources.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<qresource>
<file>fonts/DroidSansMono.ttf</file>
<file>fonts/HelveticaNeue.ttf</file>
<file>images/clipindex.png</file>
<file>fonts/OpenSans.ttf</file>
<file>images/filmstrip.png</file>
<file>images/handle.png</file>
<file>images/knob.png</file>
Expand Down
10 changes: 5 additions & 5 deletions vidcutter.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ def __init__(self, parent):
self.videoService = VideoService(self)

QFontDatabase.addApplicationFont(MainWindow.get_path('fonts/DroidSansMono.ttf'))
QFontDatabase.addApplicationFont(MainWindow.get_path('fonts/HelveticaNeue.ttf'))
QFontDatabase.addApplicationFont(MainWindow.get_path('fonts/OpenSans.ttf'))

fontSize = 12 if sys.platform == 'darwin' else 10
appFont = QFont('Helvetica Neue', fontSize, 300)
appFont = QFont('Open Sans', fontSize, 300)
qApp.setFont(appFont)

self.clipTimes = []
Expand All @@ -93,8 +93,8 @@ def __init__(self, parent):
self.toolbar.setStyleSheet('''QToolBar { spacing:10px; }
QToolBar QToolButton { border:1px solid transparent; min-width:95px; font-size:11pt; font-weight:400;
border-radius:5px; padding:1px 2px; color:#444; }
QToolBar QToolButton:hover { border:1px inset #6A4572; color:#6A4572; background-color:rgba(255, 255, 255, 0.65); }
QToolBar QToolButton:pressed { border:1px inset #FAFAFA; color:#6A4572; background-color:rgba(106, 69, 114, 0.4); }
QToolBar QToolButton:hover { border:1px inset #6A4572; color:#6A4572; background-color:rgba(255, 255, 255, 0.85); }
QToolBar QToolButton:pressed { border:1px inset #6A4572; color:#6A4572; background-color:rgba(255, 255, 255, 0.25); }
QToolBar QToolButton:disabled { color:#999; }''')
self.initToolbar()

Expand Down Expand Up @@ -387,7 +387,7 @@ def aboutInfo(self) -> None:
a:hover { text-decoration:underline; }
</style>
<div style="min-width:650px;">
<p style="font-size:26pt; font-weight:bold;">%s</p>
<p style="font-size:26pt; font-weight:bold; color:#6A4572;">%s</p>
<p>
<span style="font-size:13pt;"><b>Version: %s</b></span>
<span style="font-size:10pt;position:relative;left:5px;">( %s )</span>
Expand Down

0 comments on commit 6c60fe8

Please sign in to comment.