Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Add icon for Invert Selection action

Timothée Gietcbfee2cb8f9e
diff --git a/krita/krita.action b/krita/krita.action
index 98717de9e1..47153d2602 100644
--- a/krita/krita.action
+++ b/krita/krita.action
@@ -249,7 +249,7 @@
<statusTip/>
</Action>
<Action name="invert_selection">
- <icon/>
+ <icon>select-invert</icon>
<text>&amp;Invert Selection</text>
<whatsThis/>
<toolTip>Invert current selection</toolTip>
diff --git a/krita/pics/svg/dark_select-invert.svg b/krita/pics/svg/dark_select-invert.svg
new file mode 100644
index 0000000000..99ce900ca9
--- /dev/null
+++ b/krita/pics/svg/dark_select-invert.svg
@@ -0,0 +1 @@
+<svg version="1.1" id="svg3815" height="16" width="16" xmlns="http://www.w3.org/2000/svg" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/"><metadata id="metadata3820"><rdf:RDF><cc:Work><dc:format>image/svg+xml</dc:format><dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/><dc:date>2025</dc:date><dc:creator><cc:Agent><dc:title>Timothée Giet</dc:title></cc:Agent></dc:creator><cc:license rdf:resource="http://creativecommons.org/licenses/by-sa/4.0/"/></cc:Work><cc:License rdf:about="http://creativecommons.org/licenses/by-sa/4.0/"><cc:permits rdf:resource="http://creativecommons.org/ns#Reproduction"/><cc:permits rdf:resource="http://creativecommons.org/ns#Distribution"/><cc:requires rdf:resource="http://creativecommons.org/ns#Notice"/><cc:requires rdf:resource="http://creativecommons.org/ns#Attribution"/><cc:permits rdf:resource="http://creativecommons.org/ns#DerivativeWorks"/><cc:requires rdf:resource="http://creativecommons.org/ns#ShareAlike"/></cc:License></rdf:RDF></metadata><path id="path322" style="fill:#373737;fill-opacity:1;stroke:none;stroke-width:.999999;-inkscape-stroke:none;stop-color:#000" d="M0 0v2h1V1h1V0H0zm4 0v1h2V0H4zm4 0v1h2V0H8zm4 0v1h2V0h-2zm4 0-4.465 4.465A5 5 0 0 1 13 8a5 5 0 0 1-5 5 5 5 0 0 1-3.527-1.473L0 16h16V0zM8 3a5 5 0 0 0-5 5 5 5 0 0 0 1.477 3.523l7.056-7.056A5 5 0 0 0 8 3zM0 4v2h1V4H0zm0 4v2h1V8H0zm0 4v2h1v-2H0z"/></svg>
\ No newline at end of file
diff --git a/krita/pics/svg/light_select-invert.svg b/krita/pics/svg/light_select-invert.svg
new file mode 100644
index 0000000000..53e286856f
--- /dev/null
+++ b/krita/pics/svg/light_select-invert.svg
@@ -0,0 +1 @@
+<svg version="1.1" id="svg3815" height="16" width="16" xmlns="http://www.w3.org/2000/svg" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/"><metadata id="metadata3820"><rdf:RDF><cc:Work><dc:format>image/svg+xml</dc:format><dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/><dc:date>2025</dc:date><dc:creator><cc:Agent><dc:title>Timothée Giet</dc:title></cc:Agent></dc:creator><cc:license rdf:resource="http://creativecommons.org/licenses/by-sa/4.0/"/></cc:Work><cc:License rdf:about="http://creativecommons.org/licenses/by-sa/4.0/"><cc:permits rdf:resource="http://creativecommons.org/ns#Reproduction"/><cc:permits rdf:resource="http://creativecommons.org/ns#Distribution"/><cc:requires rdf:resource="http://creativecommons.org/ns#Notice"/><cc:requires rdf:resource="http://creativecommons.org/ns#Attribution"/><cc:permits rdf:resource="http://creativecommons.org/ns#DerivativeWorks"/><cc:requires rdf:resource="http://creativecommons.org/ns#ShareAlike"/></cc:License></rdf:RDF></metadata><path id="path322" style="fill:#d2d2d2;fill-opacity:1;stroke:none;stroke-width:.999999;-inkscape-stroke:none;stop-color:#000" d="M0 0v2h1V1h1V0H0zm4 0v1h2V0H4zm4 0v1h2V0H8zm4 0v1h2V0h-2zm4 0-4.465 4.465A5 5 0 0 1 13 8a5 5 0 0 1-5 5 5 5 0 0 1-3.527-1.473L0 16h16V0zM8 3a5 5 0 0 0-5 5 5 5 0 0 0 1.477 3.523l7.056-7.056A5 5 0 0 0 8 3zM0 4v2h1V4H0zm0 4v2h1V8H0zm0 4v2h1v-2H0z"/></svg>
\ No newline at end of file
diff --git a/krita/pics/svg/svg-icons.qrc b/krita/pics/svg/svg-icons.qrc
index 53c1d94f31..7ea7e25573 100644
--- a/krita/pics/svg/svg-icons.qrc
+++ b/krita/pics/svg/svg-icons.qrc
@@ -106,6 +106,7 @@
<file>dark_selection-mode_mask.svg</file>
<file>dark_select-all.svg</file>
<file>dark_select-clear.svg</file>
+ <file>dark_select-invert.svg</file>
<file>dark_sample-screen.svg</file>
<file>dark_select-pixel.svg</file>
<file>dark_select-shape.svg</file>
@@ -230,6 +231,7 @@
<file>light_select-all.svg</file>
<file>light_sample-screen.svg</file>
<file>light_select-clear.svg</file>
+ <file>light_select-invert.svg</file>
<file>light_select-pixel.svg</file>
<file>light_select-shape.svg</file>
<file>light_selection_add.svg</file>