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 script action group

Arkady Flurye3a173fdd9e7
diff --git a/krita/CMakeLists.txt b/krita/CMakeLists.txt
index e47ec92751..8358aa1db5 100644
--- a/krita/CMakeLists.txt
+++ b/krita/CMakeLists.txt
@@ -126,17 +126,11 @@ endif()
# make a change that applies to all systems, remove any conditions. The version
# you specify should always be one higher than any version number you see here,
# no matter what you're doing. Do not re-use versions.
-if(ANDROID)
- # Android had interface scaling and supporter benefit menu options added.
- set(KRITA5_XMLGUI_VERSION 544)
-else()
- # Other systems aren't affected, they keep using the previous version.
- set(KRITA5_XMLGUI_VERSION 543)
-endif()
+set(KRITA5_XMLGUI_VERSION 545)
# After updating the version number properly, put the new hash that the CMake
# error lists as the "actual hash" here.
-set(krita5_xmlgui_hash_expected "b74fdc4f3bafac700be2db906a424542")
+set(krita5_xmlgui_hash_expected "3552fc6831582120dfe9eb0d9df537bc")
# You can stop reading now, the stuff that follows doesn't need to be modified.
# ==============================================================================
diff --git a/krita/krita5.xmlgui b/krita/krita5.xmlgui
index a1cd0dae8c..d76ccc77fe 100644
--- a/krita/krita5.xmlgui
+++ b/krita/krita5.xmlgui
@@ -379,7 +379,7 @@ xsi:schemaLocation="http://www.kde.org/standards/kxmlgui/1.0 http://www.kde.org
</Menu>
<Menu name="tools">
<text>&amp;Tools</text>
- <Menu name="scripts"><text>Scripts</text></Menu>
+ <Menu name="scripts" icon="scripts"><text>Scripts</text></Menu>
</Menu>
<Menu name="settings">
<text>Setti&amp;ngs</text>
diff --git a/krita/pics/svg/dark_scripts.svg b/krita/pics/svg/dark_scripts.svg
new file mode 100644
index 0000000000..25d67ef5b4
--- /dev/null
+++ b/krita/pics/svg/dark_scripts.svg
@@ -0,0 +1,36 @@
+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+<metadata id="metadata7">
+ <rdf:RDF>
+ <cc:Work>
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:date>2026</dc:date>
+ <dc:creator>
+ <cc:Agent>
+ <dc:title>superfurryfrog</dc:title>
+ </cc:Agent>
+ </dc:creator>
+ <dc:description>inspired from the script icon in Godot by Daniel J. Ramirez</dc:description>
+ <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 d="M11.5 5.5H14.5V3.5C14.5 2.39543 13.6046 1.5 12.5 1.5H6M11.5 5.5H7.5V3C7.5 2.17157 6.82843 1.5 6 1.5M11.5 5.5V12.5C11.5 13.6046 10.6046 14.5 9.5 14.5H5H3M6 1.5C5.17157 1.5 4.5 2.17157 4.5 3V10.5M3 14.5C3.82843 14.5 4.5 13.8284 4.5 13V10.5M3 14.5C2.17157 14.5 1.5 13.8284 1.5 13V10.5H4.5" stroke="#373737"/>
+</svg>
diff --git a/krita/pics/svg/light_scripts.svg b/krita/pics/svg/light_scripts.svg
new file mode 100644
index 0000000000..19eebcb770
--- /dev/null
+++ b/krita/pics/svg/light_scripts.svg
@@ -0,0 +1,36 @@
+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+<metadata id="metadata7">
+ <rdf:RDF>
+ <cc:Work>
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:date>2026</dc:date>
+ <dc:creator>
+ <cc:Agent>
+ <dc:title>superfurryfrog</dc:title>
+ </cc:Agent>
+ </dc:creator>
+ <dc:description>inspired from the script icon in Godot by Daniel J. Ramirez</dc:description>
+ <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 d="M11.5 5.5H14.5V3.5C14.5 2.39543 13.6046 1.5 12.5 1.5H6M11.5 5.5H7.5V3C7.5 2.17157 6.82843 1.5 6 1.5M11.5 5.5V12.5C11.5 13.6046 10.6046 14.5 9.5 14.5H5H3M6 1.5C5.17157 1.5 4.5 2.17157 4.5 3V10.5M3 14.5C3.82843 14.5 4.5 13.8284 4.5 13V10.5M3 14.5C2.17157 14.5 1.5 13.8284 1.5 13V10.5H4.5" stroke="#D2D2D2"/>
+</svg>
diff --git a/krita/pics/svg/svg-icons.qrc b/krita/pics/svg/svg-icons.qrc
index d9e43efc34..cbef8253ce 100644
--- a/krita/pics/svg/svg-icons.qrc
+++ b/krita/pics/svg/svg-icons.qrc
@@ -681,5 +681,7 @@
<file>dark_edit-copy-16.svg</file>
<file>light_document-open-recent.svg</file>
<file>dark_document-open-recent.svg</file>
+ <file>light_scripts.svg</file>
+ <file>dark_scripts.svg</file>
</qresource>
</RCC>