Utils: HighDPI-able, themable undo and redo icons

Change-Id: Id18c547636fe0577c3ef849e7208e430e53ffc7e
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Alessandro Portale
2016-10-11 15:24:26 +02:00
parent a4c96bd839
commit de3cf47273
7 changed files with 36 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 134 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 222 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 132 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 B

View File

@@ -70,6 +70,7 @@
<file>images/plus.png</file>
<file>images/plus@2x.png</file>
<file>images/redo.png</file>
<file>images/redo@2x.png</file>
<file>images/replace_a.png</file>
<file>images/replace_a@2x.png</file>
<file>images/replace_b.png</file>
@@ -80,6 +81,7 @@
<file>images/splitbutton_horizontal.png</file>
<file>images/splitbutton_horizontal@2x.png</file>
<file>images/undo.png</file>
<file>images/undo@2x.png</file>
<file>images/unknownfile.png</file>
<file>images/extension.png</file>
<file>images/extension@2x.png</file>

View File

@@ -72,10 +72,10 @@ const Icon SAVEFILE({
{QLatin1String(":/utils/images/filesave.png"), Theme::PanelTextColorMid}}, Icon::Tint);
const Icon SAVEFILE_TOOLBAR({
{QLatin1String(":/utils/images/filesave.png"), Theme::IconsBaseColor}});
const Icon UNDO(
QLatin1String(":/utils/images/undo.png"));
const Icon REDO(
QLatin1String(":/utils/images/redo.png"));
const Icon UNDO({
{QLatin1String(":/utils/images/undo.png"), Theme::PanelTextColorMid}}, Icon::Tint);
const Icon REDO({
{QLatin1String(":/utils/images/redo.png"), Theme::PanelTextColorMid}}, Icon::Tint);
const Icon COPY(
QLatin1String(":/utils/images/editcopy.png"));
const Icon PASTE(

View File

@@ -3396,6 +3396,36 @@
inkscape:connector-curvature="0"
sodipodi:nodetypes="czzzcc" />
</g>
<g
id="src/libs/utils/images/undo">
<rect
style="fill:#ffffff;fill-opacity:1"
x="1228"
y="568"
width="16"
height="16"
id="rect6782-96-0-0-7-8-1-0-4-0" />
<path
sodipodi:nodetypes="cccc"
inkscape:connector-curvature="0"
id="path4757-1"
d="m 1233,569.5 -3,3 3,3 z"
style="fill:#000000" />
<path
sodipodi:nodetypes="cccc"
inkscape:connector-curvature="0"
id="path5163"
d="m 1233,580.5 3,0 c 6,0 6,-8 0,-8 l -5,0"
style="fill:none;stroke:#000000" />
</g>
<use
x="0"
y="0"
xlink:href="#src/libs/utils/images/undo"
id="src/libs/utils/images/redo"
transform="matrix(-1,0,0,1,2488,0)"
width="100%"
height="100%" />
</g>
<g
inkscape:groupmode="layer"

Before

Width:  |  Height:  |  Size: 212 KiB

After

Width:  |  Height:  |  Size: 213 KiB