Skip to content

Commit 2462185

Browse files
committed
Move assets to separate directory, add icons, fix SVG on Windows
1 parent 5f7639a commit 2462185

19 files changed

+614
-112
lines changed

Makefile

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
UI_OBJS = gui/mainwindow.py
2+
RCC_FILES = assets/assets.py
23

34
%.py: %.ui
4-
pyside-uic $< -o $@
5+
pyside-uic --from-imports $< -o $@
6+
7+
%.py: %.qrc
8+
pyside-rcc $< -o $@
9+
cp $@ gui/$(notdir $(basename $@))_rc.py # FIXME
510

611
all: chainsign.py
712

8-
chainsign.py: $(UI_OBJS)
13+
chainsign.py: $(UI_OBJS) $(RCC_FILES)
914

1015
run: chainsign.py
1116
python chainsign.py
1217

1318
clean:
14-
-rm $(UI_OBJS)
19+
-rm $(UI_OBJS) $(RCC_FILES) gui/assets_rc.py

assets/assets.py

+21
Large diffs are not rendered by default.

assets/assets.qrc

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<RCC>
2+
<qresource prefix="/icons">
3+
<file>verify.svg</file>
4+
<file>directory.svg</file>
5+
<file>file.svg</file>
6+
<file>timestamp.svg</file>
7+
</qresource>
8+
<qresource prefix="/">
9+
<file>banner.svg</file>
10+
<file>icon.png</file>
11+
</qresource>
12+
</RCC>

assets/assets.rcc

+21
Large diffs are not rendered by default.

assets/banner.svg

+106
Loading

assets/directory.svg

+63
Loading

assets/file.svg

+55
Loading

assets/icon.ico

16.6 KB
Binary file not shown.

assets/icon.png

11.9 KB
Loading

0 commit comments

Comments
 (0)