Replace placeholder icons in preferences window with SVGs (#493)

This commit is contained in:
Xaltonon 2018-05-13 11:59:33 -07:00 committed by xarkes
parent fad76ecddb
commit a04c633655
7 changed files with 28 additions and 6 deletions

View File

@ -25,17 +25,17 @@ PreferencesDialog::PreferencesDialog(QWidget *parent)
{
"General",
new GeneralOptionsWidget(this),
QIcon(":/img/icons/preferences.png")
QIcon(":/img/icons/cog.svg")
},
{
"Assembly",
new AsmOptionsWidget(this),
QIcon(":/img/icons/assembly.png"),
QIcon(":/img/icons/disas.svg"),
{
{
"Graph",
new GraphOptionsWidget(this),
QIcon(":/img/icons/graph.png")
QIcon(":/img/icons/graph.svg")
},
}
},

Binary file not shown.

Before

Width:  |  Height:  |  Size: 676 B

11
src/img/icons/disas.svg Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'>
<svg style="enable-background:new 0 0 32 32" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" height="32px" width="32px" version="1.1" y="0px" x="0px" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 32 32">
<g fill="#4d4d4f">
<polygon points="32 4 0 4 0 0 32 0"/>
<polygon points="20 12 0 12 0 8 20 8"/>
<polygon points="32 20 0 20 0 16 32 16"/>
<circle cx="2" r="2" cy="30"/>
<path d="m12 30c0 1.1-0.9 2-2 2s-2-0.9-2-2 0.9-2 2-2c1 0 2 1 2 2z"/>
<circle cx="18" r="2" cy="30"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 620 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 444 B

12
src/img/icons/graph.svg Normal file
View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 15.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="28px" height="32px" viewBox="0 0 28 32" enable-background="new 0 0 28 32" xml:space="preserve">
<g>
<path fill="#4d4d4f" d="M20,0v3.9c0,1.6-0.62,3.1-1.8,4.2l-11,11c-1.9,2-2.8,4-3,7h-4l6,6l6-6h-4c0.1-1.399,0.68-2.8,1.7-3.8l11-11
c2-1.9,3-4.5,3-7.1V0.3h-4L20,0z"/>
<path fill="#4d4d4f" d="M24,26c-0.109-2.5-1.1-4.8-2.9-6.6L18.9,17.2l-3,3l2.199,2.2c1,1,1.601,2.399,1.7,3.8h-4l6,6l6-6h-4L24,26z
"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 793 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 736 B

View File

@ -28,8 +28,10 @@
<file>img/icons/trash_light.svg</file>
<file>img/icons/disas_light.svg</file>
<file>img/icons/disas_white.svg</file>
<file>img/icons/disas.svg</file>
<file>img/icons/graph_light.svg</file>
<file>img/icons/graph_white.svg</file>
<file>img/icons/graph.svg</file>
<file>img/icons/hexdump_light.svg</file>
<file>img/icons/hexdump_white.svg</file>
<file>img/icons/cog_light.svg</file>
@ -56,9 +58,6 @@
<file>img/icons/spin_light.svg</file>
<file>img/icons/import_light.svg</file>
<file>img/icons/home.svg</file>
<file>img/icons/preferences.png</file>
<file>img/icons/graph.png</file>
<file>img/icons/assembly.png</file>
<file>fonts/Anonymous Pro.ttf</file>
<file>fonts/Inconsolata-Regular.ttf</file>
<file>img/cutter_plain.svg</file>