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 16px frame icons for frame icons

Arkady Flurycb04fef0a999
diff --git a/krita/krita.action b/krita/krita.action
index 7b8957c1c5..f81ce2c3a0 100644
--- a/krita/krita.action
+++ b/krita/krita.action
@@ -2024,7 +2024,7 @@
<statusTip/>
</Action>
<Action name="add_blank_frame">
- <icon>addblankframe</icon>
+ <icon>addblankframe-16</icon>
<text>Create Blank Frame</text>
<whatsThis/>
<toolTip>Add blank frame</toolTip>
@@ -2036,7 +2036,7 @@
<statusTip/>
</Action>
<Action name="add_duplicate_frame">
- <icon>addduplicateframe</icon>
+ <icon>duplicate-frame-16</icon>
<text>Create Duplicate Frame</text>
<whatsThis/>
<toolTip>Add duplicate frame</toolTip>
@@ -2163,7 +2163,7 @@
<statusTip/>
</Action>
<Action name="remove_frames">
- <icon>deletekeyframe</icon>
+ <icon>remove-frame-16</icon>
<text>Remove Keyframe</text>
<whatsThis/>
<toolTip>Remove keyframes without moving anything around</toolTip>
diff --git a/krita/pics/svg/dark_duplicate-frame-16.svg b/krita/pics/svg/dark_duplicate-frame-16.svg
new file mode 100644
index 0000000000..a2d631a492
--- /dev/null
+++ b/krita/pics/svg/dark_duplicate-frame-16.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>
+ <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 fill-rule="evenodd" clip-rule="evenodd" d="M16 12V2H2V12H16ZM12 10V4H6V10H12ZM15 9H13V11H15V9ZM15 6H13V8H15V6ZM15 3H13V5H15V3ZM3 9H5V11H3V9ZM3 6H5V8H3V6ZM3 3H5V5H3V3Z" fill="#373737"/>
+<path d="M0.5 4V13.5H14" stroke="#373737"/>
+</svg>
diff --git a/krita/pics/svg/dark_remove-frame-16.svg b/krita/pics/svg/dark_remove-frame-16.svg
new file mode 100644
index 0000000000..b5c9a00d13
--- /dev/null
+++ b/krita/pics/svg/dark_remove-frame-16.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>
+ <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="M3 14L11 2H13L5 14H3Z" fill="#373737"/>
+<path d="M7.79785 5H5V9.19727L4 10.6973V10H2V12H3.13184L2.46484 13H1V3H9.13184L7.79785 5ZM15 13H6.86816L8.20215 11H11V6.80273L12 5.30273V6H14V4H12.8682L13.5352 3H15V13ZM12 12H14V10H12V12ZM2 9H4V7H2V9ZM12 9H14V7H12V9ZM2 6H4V4H2V6Z" fill="#373737"/>
+</svg>
\ No newline at end of file
diff --git a/krita/pics/svg/light_duplicate-frame-16.svg b/krita/pics/svg/light_duplicate-frame-16.svg
new file mode 100644
index 0000000000..96c4e97fc2
--- /dev/null
+++ b/krita/pics/svg/light_duplicate-frame-16.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>
+ <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 fill-rule="evenodd" clip-rule="evenodd" d="M16 12V2H2V12H16ZM12 10V4H6V10H12ZM15 9H13V11H15V9ZM15 6H13V8H15V6ZM15 3H13V5H15V3ZM3 9H5V11H3V9ZM3 6H5V8H3V6ZM3 3H5V5H3V3Z" fill="#D2D2D2"/>
+<path d="M0.5 4V13.5H14" stroke="#D2D2D2"/>
+</svg>
diff --git a/krita/pics/svg/light_remove-frame-16.svg b/krita/pics/svg/light_remove-frame-16.svg
new file mode 100644
index 0000000000..d1495dd188
--- /dev/null
+++ b/krita/pics/svg/light_remove-frame-16.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>
+ <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="M3 14L11 2H13L5 14H3Z" fill="#D2D2D2"/>
+<path d="M7.79785 5H5V9.19727L4 10.6973V10H2V12H3.13184L2.46484 13H1V3H9.13184L7.79785 5ZM15 13H6.86816L8.20215 11H11V6.80273L12 5.30273V6H14V4H12.8682L13.5352 3H15V13ZM12 12H14V10H12V12ZM2 9H4V7H2V9ZM12 9H14V7H12V9ZM2 6H4V4H2V6Z" fill="#D2D2D2"/>
+</svg>
diff --git a/krita/pics/svg/svg-icons.qrc b/krita/pics/svg/svg-icons.qrc
index b738eb5e4d..83a42b6d71 100644
--- a/krita/pics/svg/svg-icons.qrc
+++ b/krita/pics/svg/svg-icons.qrc
@@ -641,5 +641,9 @@
<file>light_saturation-increase.svg</file>
<file>light_scatter-decrease.svg</file>
<file>light_scatter-increase.svg</file>
+ <file>light_duplicate-frame-16.svg</file>
+ <file>light_remove-frame-16.svg</file>
+ <file>dark_duplicate-frame-16.svg</file>
+ <file>dark_remove-frame-16.svg</file>
</qresource>
</RCC>
diff --git a/plugins/dockers/animation/KisAnimTimelineDocker.cpp b/plugins/dockers/animation/KisAnimTimelineDocker.cpp
index 7cbbb6cd93..8364e1a967 100644
--- a/plugins/dockers/animation/KisAnimTimelineDocker.cpp
+++ b/plugins/dockers/animation/KisAnimTimelineDocker.cpp
@@ -665,16 +665,22 @@ void KisAnimTimelineDocker::setViewManager(KisViewManager *view)
KisAnimTimelineDockerTitlebar* titleBar = static_cast<KisAnimTimelineDockerTitlebar*>(titleBarWidget());
action = actionManager->actionByName("add_blank_frame");
- titleBar->btnAddKeyframe->setDefaultAction(action);
+ titleBar->btnAddKeyframe->setIcon(KisIconUtils::loadIcon("addblankframe"));
titleBar->btnAddKeyframe->setIconSize(QSize(22, 22));
+ titleBar->btnAddKeyframe->setToolTip(action->toolTip());
+ QObject::connect(titleBar->btnAddKeyframe, SIGNAL(released()), action, SLOT(trigger()));
action = actionManager->actionByName("add_duplicate_frame");
- titleBar->btnDuplicateKeyframe->setDefaultAction(action);
+ titleBar->btnDuplicateKeyframe->setIcon(KisIconUtils::loadIcon("addduplicateframe"));
titleBar->btnDuplicateKeyframe->setIconSize(QSize(22, 22));
+ titleBar->btnDuplicateKeyframe->setToolTip(action->toolTip());
+ QObject::connect(titleBar->btnDuplicateKeyframe, SIGNAL(released()), action, SLOT(trigger()));
action = actionManager->actionByName("remove_frames");
- titleBar->btnRemoveKeyframe->setDefaultAction(action);
+ titleBar->btnRemoveKeyframe->setIcon(KisIconUtils::loadIcon("deletekeyframe"));
titleBar->btnRemoveKeyframe->setIconSize(QSize(22, 22));
+ titleBar->btnRemoveKeyframe->setToolTip(action->toolTip());
+ QObject::connect(titleBar->btnRemoveKeyframe, SIGNAL(released()), action, SLOT(trigger()));
// Connect playback-related actions..
action = actionManager->createAction("toggle_playback");