Skip to content

Commit

Permalink
Merge pull request #302 from NaturalHistoryMuseum/feature/131-icon
Browse files Browse the repository at this point in the history
[#131] main window icon
  • Loading branch information
quicklizard99 committed May 11, 2016
2 parents 5a83531 + a88b62b commit 92a1a95
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Version 0.1.29
- Fixed #296 - Inconsistent zoom toggling
- Fixed #295 - Full-resolution scan is mandatory
- Fixed #293 - Link to files fails with ugly error message on Windows
- Fixed #131 - Main window icon

Version 0.1.28
-------------
Expand Down
2 changes: 1 addition & 1 deletion Releasing.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ git pull

* If necesary, bump the version in `inselect/__init__.py`

* If the toolbar icons in inselect/data change then you need to refresh a Python
* If the icons in inselect/data change then you need to refresh a Python
file:

```
Expand Down
Binary file added data/inselect128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/inselect16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/inselect24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/inselect256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/inselect32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/inselect48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/inselect512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/inselect64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions icons.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
<RCC version="1.0">
<qresource prefix="/">
<file>data/barcode_icon.png</file>
<file>data/inselect16.png</file>
<file>data/inselect24.png</file>
<file>data/inselect32.png</file>
<file>data/inselect48.png</file>
<file>data/inselect64.png</file>
<file>data/inselect128.png</file>
<file>data/inselect256.png</file>
<file>data/segment_icon.png</file>
<file>data/subsegment_icon.png</file>
</qresource>
Expand Down
9 changes: 8 additions & 1 deletion inselect/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import sys

from PySide import QtGui
from PySide.QtCore import QSettings, QLocale, QCoreApplication
from PySide.QtCore import QSettings, QSize, QLocale, QCoreApplication

import inselect

Expand Down Expand Up @@ -50,6 +50,13 @@ def main(args):

debug_print(u'Locale is [{0}]'.format(QLocale().name()))

# Application icon
icon = QtGui.QIcon()
path = ':/data/inselect{0}.png'
for size in (16, 24, 32, 48, 64, 128, 256, 512):
icon.addFile(path.format(size), QSize(size, size))
app.setWindowIcon(icon)

window = MainWindow(app)
window.show_from_geometry_settings()

Expand Down
10 changes: 5 additions & 5 deletions inselect/gui/icons.py

Large diffs are not rendered by default.

0 comments on commit 92a1a95

Please sign in to comment.