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++

new icon for mismatched layer color space

Timothée Giet4cede932c21b
diff --git a/krita/pics/svg/dark_different-colorspace.svg b/krita/pics/svg/dark_different-colorspace.svg
new file mode 100644
index 0000000000..2aee595515
--- /dev/null
+++ b/krita/pics/svg/dark_different-colorspace.svg
@@ -0,0 +1 @@
+<svg width="16" height="16" viewBox="0 0 16 16" version="1.1" id="svg8" xmlns:xlink="http://www.w3.org/1999/xlink" 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/"><defs id="defs7"><linearGradient id="linearGradient15980"><stop style="stop-color:#0ff;stop-opacity:1" offset="0" id="stop15976"/><stop style="stop-color:#0ff;stop-opacity:0" offset="1" id="stop15978"/></linearGradient><linearGradient id="linearGradient15920"><stop style="stop-color:#ff0;stop-opacity:1" offset="0" id="stop15916"/><stop style="stop-color:#ff0;stop-opacity:0" offset="1" id="stop15918"/></linearGradient><linearGradient id="linearGradient2471"><stop style="stop-color:#f0f;stop-opacity:1" offset="0" id="stop2467"/><stop style="stop-color:#f0f;stop-opacity:0" offset="1" id="stop2469"/></linearGradient><linearGradient xlink:href="#linearGradient2471" id="linearGradient2473" x1="8" y1="1" x2="8" y2="12" gradientUnits="userSpaceOnUse" gradientTransform="translate(.571 .571) scale(.92857)"/><linearGradient xlink:href="#linearGradient15920" id="linearGradient15913" gradientUnits="userSpaceOnUse" gradientTransform="translate(-7.429 -18.742) scale(.92857)" x1="8" y1="1" x2="8" y2="12"/><linearGradient xlink:href="#linearGradient15980" id="linearGradient15973" gradientUnits="userSpaceOnUse" gradientTransform="translate(-18.742 -7.429) scale(.92857)" x1="8" y1="1" x2="8" y2="12"/></defs><metadata id="metadata5"><rdf:RDF><cc:Work><dc:format>image/svg+xml</dc:format><dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/><dc:date>2024</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><rect style="fill:#373737;fill-opacity:1;stroke-width:4;stroke-linecap:round" id="rect504" width="8" height="2" x="4" y="5"/><rect style="fill:#373737;fill-opacity:1;stroke-width:4;stroke-linecap:round" id="rect504-3" width="8" height="2" x="4" y="9"/><path style="fill:#373737;fill-opacity:1;stroke-width:4;stroke-linecap:round" d="M9 3h2L7 13H5z" id="path1452"/><circle style="fill:none;fill-opacity:1;stroke:#d2d2d2;stroke-width:.999997;stroke-linecap:round;stroke-dasharray:none;stroke-opacity:1" id="path1506" cx="7.9999986" cy="7.9999986" r="6.5"/><circle style="fill:none;fill-opacity:1;stroke:url(#linearGradient15913);stroke-width:.999997;stroke-linecap:round;stroke-dasharray:none;stroke-opacity:1" id="path1506-6-6" cx="-3.6137635e-09" cy="-11.313706" r="6.5" transform="rotate(135)"/><circle style="fill:none;fill-opacity:1;stroke:url(#linearGradient15973);stroke-width:.999997;stroke-linecap:round;stroke-dasharray:none;stroke-opacity:1" id="path1506-6-1" cx="-11.313706" cy="3.6137653e-09" r="6.5" transform="rotate(-135)"/><circle style="fill:none;fill-opacity:1;stroke:url(#linearGradient2473);stroke-width:.999997;stroke-linecap:round;stroke-dasharray:none;stroke-opacity:1" id="path1506-6" cx="7.9999981" cy="7.9999986" r="6.5"/></svg>
\ No newline at end of file
diff --git a/krita/pics/svg/light_different-colorspace.svg b/krita/pics/svg/light_different-colorspace.svg
new file mode 100644
index 0000000000..ed272e4af8
--- /dev/null
+++ b/krita/pics/svg/light_different-colorspace.svg
@@ -0,0 +1 @@
+<svg width="16" height="16" viewBox="0 0 16 16" version="1.1" id="svg8" xmlns:xlink="http://www.w3.org/1999/xlink" 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/"><defs id="defs7"><linearGradient id="linearGradient7664"><stop style="stop-color:#ff0;stop-opacity:1" offset="0" id="stop7660"/><stop style="stop-color:#ff0;stop-opacity:0" offset="1" id="stop7662"/></linearGradient><linearGradient id="linearGradient7604"><stop style="stop-color:#0ff;stop-opacity:1" offset="0" id="stop7600"/><stop style="stop-color:#0ff;stop-opacity:0" offset="1" id="stop7602"/></linearGradient><linearGradient id="linearGradient2471"><stop style="stop-color:#f0f;stop-opacity:1" offset="0" id="stop2467"/><stop style="stop-color:#f0f;stop-opacity:0" offset="1" id="stop2469"/></linearGradient><linearGradient xlink:href="#linearGradient7664" id="linearGradient15913" gradientUnits="userSpaceOnUse" gradientTransform="translate(-7.429 -18.742) scale(.92857)" x1="8" y1="1" x2="8" y2="12"/><linearGradient xlink:href="#linearGradient7604" id="linearGradient15973" gradientUnits="userSpaceOnUse" gradientTransform="translate(-18.742 -7.429) scale(.92857)" x1="8" y1="1" x2="8" y2="12"/><linearGradient xlink:href="#linearGradient2471" id="linearGradient2473-8" x1="8" y1="1" x2="8" y2="12" gradientUnits="userSpaceOnUse" gradientTransform="translate(.571 .571) scale(.92857)"/></defs><metadata id="metadata5"><rdf:RDF><cc:Work><dc:format>image/svg+xml</dc:format><dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/><dc:date>2024</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><rect style="fill:#d2d2d2;fill-opacity:1;stroke-width:4;stroke-linecap:round" id="rect504" width="8" height="2" x="4" y="5"/><rect style="fill:#d2d2d2;fill-opacity:1;stroke-width:4;stroke-linecap:round" id="rect504-3" width="8" height="2" x="4" y="9"/><path style="fill:#d2d2d2;fill-opacity:1;stroke-width:4;stroke-linecap:round" d="M9 3h2L7 13H5z" id="path1452"/><circle style="fill:none;fill-opacity:1;stroke:#d2d2d2;stroke-width:.999997;stroke-linecap:round;stroke-dasharray:none;stroke-opacity:1" id="path1506" cx="7.9999986" cy="7.9999986" r="6.5"/><circle style="fill:none;fill-opacity:1;stroke:url(#linearGradient15913);stroke-width:.999997;stroke-linecap:round;stroke-dasharray:none;stroke-opacity:1" id="path1506-6-6" cx="-3.6137635e-09" cy="-11.313706" r="6.5" transform="rotate(135)"/><circle style="fill:none;fill-opacity:1;stroke:url(#linearGradient15973);stroke-width:.999997;stroke-linecap:round;stroke-dasharray:none;stroke-opacity:1" id="path1506-6-1" cx="-11.313706" cy="3.6137653e-09" r="6.5" transform="rotate(-135)"/><circle style="fill:none;fill-opacity:1;stroke:url(#linearGradient2473-8);stroke-width:.999997;stroke-linecap:round;stroke-dasharray:none;stroke-opacity:1" id="path1506-6" cx="7.9999981" cy="7.9999986" r="6.5"/></svg>
\ No newline at end of file
diff --git a/krita/pics/svg/svg-icons.qrc b/krita/pics/svg/svg-icons.qrc
index 59b63e4c7d..131a9ac004 100644
--- a/krita/pics/svg/svg-icons.qrc
+++ b/krita/pics/svg/svg-icons.qrc
@@ -45,6 +45,7 @@
<file>dark_deletekeyframe.svg</file>
<file>dark_dialog-cancel.svg</file>
<file>dark_dialog-cancel-16.svg</file>
+ <file>dark_different-colorspace.svg</file>
<file>dark_document-edit.svg</file>
<file>dark_document-export.svg</file>
<file>dark_document-import.svg</file>
@@ -167,6 +168,7 @@
<file>light_deletekeyframe.svg</file>
<file>light_dialog-cancel.svg</file>
<file>light_dialog-cancel-16.svg</file>
+ <file>light_different-colorspace.svg</file>
<file>light_document-edit.svg</file>
<file>light_document-export.svg</file>
<file>light_document-import.svg</file>
diff --git a/libs/image/kis_layer_properties_icons.cpp b/libs/image/kis_layer_properties_icons.cpp
index 8c1f44e620..753400e62f 100644
--- a/libs/image/kis_layer_properties_icons.cpp
+++ b/libs/image/kis_layer_properties_icons.cpp
@@ -85,7 +85,7 @@ void KisLayerPropertiesIcons::updateIcons()
m_d->icons.insert(colorizeShowColoring.id(), IconsPair(KisIconUtils::loadIcon("showColoring"), KisIconUtils::loadIcon("showColoringOff")));
m_d->icons.insert(openFileLayerFile.id(), IconsPair(KisIconUtils::loadIcon("document-open"), KisIconUtils::loadIcon("document-open")));
m_d->icons.insert(layerError.id(), IconsPair(KisIconUtils::loadIcon("warning"), KisIconUtils::loadIcon("warning")));
- m_d->icons.insert(layerColorSpaceMismatch.id(), IconsPair(KisIconUtils::loadIcon("color-adjustment-mode-channels"), KisIconUtils::loadIcon("color-adjustment-mode-channels")));
+ m_d->icons.insert(layerColorSpaceMismatch.id(), IconsPair(KisIconUtils::loadIcon("different-colorspace"), KisIconUtils::loadIcon("different-colorspace")));
m_d->icons.insert(antialiased.id(), IconsPair(KisIconUtils::loadIcon("select-shape"), KisIconUtils::loadIcon("select-pixel")));
}