Commit 65c02f8a authored by Christoph Cullmann's avatar Christoph Cullmann 🍨
Browse files

allow for recolorable git icon

parent d6f82a86
Pipeline #217560 canceled with stage
in 8 minutes
......@@ -4,6 +4,7 @@ find_package(
QUIET
COMPONENTS
GuiAddons
IconThemes
NewStuff
)
......@@ -24,6 +25,7 @@ target_link_libraries(
Qt::Concurrent
KF5::GuiAddons
KF5::I18n
KF5::IconThemes
KF5::NewStuff
KF5::TextEditor
)
......
......@@ -10,15 +10,17 @@
width="122.52"
xml:space="preserve"
id="svg2"
version="1.1"><metadata
id="metadata8"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
id="defs6" /><g
version="1.1"><defs id="defs3051">
<style type="text/css" id="current-color-scheme">
.ColorScheme-Text {
color:#232629;
}
</style>
</defs><g
transform="matrix(1.3333333,0,0,-1.3333333,0,122.52)"
id="g10"><g
transform="scale(0.1)"
id="g12"><path
id="path14"
style="fill:#f05033;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="M 901.543,500.352 500.352,901.527 c -23.094,23.11 -60.567,23.11 -83.692,0 L 333.359,818.211 439.031,712.535 c 24.563,8.293 52.727,2.727 72.297,-16.847 19.688,-19.696 25.203,-48.102 16.699,-72.75 L 629.883,521.094 c 24.648,8.496 53.066,3.004 72.754,-16.711 27.5,-27.492 27.5,-72.059 0,-99.574 -27.52,-27.516 -72.078,-27.516 -99.61,0 -20.683,20.703 -25.8,51.097 -15.312,76.582 l -95,94.992 V 326.414 c 6.699,-3.32 13.027,-7.742 18.613,-13.312 27.5,-27.497 27.5,-72.059 0,-99.598 -27.5,-27.488 -72.09,-27.488 -99.57,0 -27.5,27.539 -27.5,72.101 0,99.598 6.797,6.789 14.668,11.925 23.066,15.363 v 252.281 c -8.398,3.438 -16.25,8.531 -23.066,15.367 -20.828,20.821 -25.84,51.395 -15.156,76.977 L 292.422,777.285 17.3242,502.211 c -23.10545,-23.129 -23.10545,-60.602 0,-83.711 L 418.535,17.3242 c 23.098,-23.10545 60.559,-23.10545 83.692,0 L 901.543,416.641 c 23.113,23.113 23.113,60.605 0,83.711" /></g></g></svg>
\ No newline at end of file
style="fill:currentColor;fill-opacity:1;;stroke:none"
d="M 901.543,500.352 500.352,901.527 c -23.094,23.11 -60.567,23.11 -83.692,0 L 333.359,818.211 439.031,712.535 c 24.563,8.293 52.727,2.727 72.297,-16.847 19.688,-19.696 25.203,-48.102 16.699,-72.75 L 629.883,521.094 c 24.648,8.496 53.066,3.004 72.754,-16.711 27.5,-27.492 27.5,-72.059 0,-99.574 -27.52,-27.516 -72.078,-27.516 -99.61,0 -20.683,20.703 -25.8,51.097 -15.312,76.582 l -95,94.992 V 326.414 c 6.699,-3.32 13.027,-7.742 18.613,-13.312 27.5,-27.497 27.5,-72.059 0,-99.598 -27.5,-27.488 -72.09,-27.488 -99.57,0 -27.5,27.539 -27.5,72.101 0,99.598 6.797,6.789 14.668,11.925 23.066,15.363 v 252.281 c -8.398,3.438 -16.25,8.531 -23.066,15.367 -20.828,20.821 -25.84,51.395 -15.156,76.977 L 292.422,777.285 17.3242,502.211 c -23.10545,-23.129 -23.10545,-60.602 0,-83.711 L 418.535,17.3242 c 23.098,-23.10545 60.559,-23.10545 83.692,0 L 901.543,416.641 c 23.113,23.113 23.113,60.605 0,83.711" class="ColorScheme-Text"/></g></g></svg>
......@@ -24,6 +24,7 @@
#include <KAboutData>
#include <KActionCollection>
#include <KActionMenu>
#include <KIconLoader>
#include <KLocalizedString>
#include <KPluginFactory>
#include <KStringHandler>
......@@ -65,7 +66,7 @@ KateProjectPluginView::KateProjectPluginView(KateProjectPlugin *plugin, KTextEdi
m_gitToolView.reset(m_mainWindow->createToolView(m_plugin,
QStringLiteral("kateprojectgit"),
KTextEditor::MainWindow::Left,
QIcon(QStringLiteral(":/icons/icons/sc-apps-git.svg")),
KDE::icon(QStringLiteral(":/icons/icons/sc-apps-git.svg")),
i18n("Git")));
m_toolInfoView = m_mainWindow->createToolView(m_plugin,
QStringLiteral("kateprojectinfo"),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment