Commit b8a64bd7 authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

import breeze icon

use the breeze icon for KWrite per default

like we do for Kate
parent 139432e2
Pipeline #157403 passed with stage
in 4 minutes and 50 seconds
......@@ -2,19 +2,25 @@
add_executable(kwrite main.cpp data/kwrite.qrc)
target_link_libraries(kwrite PRIVATE kate-lib)
set(ICONS_PNG
${CMAKE_CURRENT_SOURCE_DIR}/icons/16-apps-kwrite.png
${CMAKE_CURRENT_SOURCE_DIR}/icons/22-apps-kwrite.png
${CMAKE_CURRENT_SOURCE_DIR}/icons/32-apps-kwrite.png
${CMAKE_CURRENT_SOURCE_DIR}/icons/48-apps-kwrite.png
${CMAKE_CURRENT_SOURCE_DIR}/icons/64-apps-kwrite.png
${CMAKE_CURRENT_SOURCE_DIR}/icons/128-apps-kwrite.png
# application icon, in all sizes needed to have e.g. nice Windows icons, too
set(ICONS_FOLDER ${CMAKE_CURRENT_SOURCE_DIR}/icons)
set(ICON_FILES
${ICONS_FOLDER}/sc-apps-kwrite.svg
${ICONS_FOLDER}/16-apps-kwrite.png
${ICONS_FOLDER}/22-apps-kwrite.png
${ICONS_FOLDER}/32-apps-kwrite.png
${ICONS_FOLDER}/44-apps-kwrite.png
${ICONS_FOLDER}/48-apps-kwrite.png
${ICONS_FOLDER}/64-apps-kwrite.png
${ICONS_FOLDER}/128-apps-kwrite.png
${ICONS_FOLDER}/150-apps-kwrite.png
${ICONS_FOLDER}/256-apps-kwrite.png
${ICONS_FOLDER}/310-apps-kwrite.png
${ICONS_FOLDER}/512-apps-kwrite.png
)
set(ICONS_SVG ${CMAKE_CURRENT_SOURCE_DIR}/icons/sc-apps-kwrite.svgz)
# Add icon files to the application's source files to have CMake bundle them in the executable.
ecm_add_app_icon(ICONS_SOURCES ICONS ${ICONS_PNG})
ecm_add_app_icon(ICONS_SOURCES ICONS ${ICON_FILES})
target_sources(kwrite PRIVATE ${ICONS_SOURCES})
# See https://cmake.org/cmake/help/v3.15/prop_tgt/MACOSX_BUNDLE_INFO_PLIST.html
......@@ -37,6 +43,12 @@ endif()
install(TARGETS kwrite ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
ecm_install_icons(
ICONS ${ICON_FILES}
DESTINATION ${KDE_INSTALL_ICONDIR}
THEME hicolor
)
install(
FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/org.kde.kwrite.desktop
DESTINATION ${KDE_INSTALL_APPDIR}
......@@ -46,9 +58,3 @@ install(
FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/org.kde.kwrite.appdata.xml
DESTINATION ${KDE_INSTALL_METAINFODIR}
)
ecm_install_icons(
ICONS ${ICONS_PNG} ${ICONS_SVG}
DESTINATION ${KDE_INSTALL_ICONDIR}
THEME hicolor
)
......@@ -2,5 +2,8 @@
<RCC version="1.0">
<qresource prefix="/kxmlgui5/kwrite">
<file alias="kateui.rc">../../lib/data/kateui.rc</file>
</qresource>
</qresource>
<qresource prefix="/kwrite">
<file alias="kwrite.svg">../icons/sc-apps-kwrite.svg</file>
</qresource>
</RCC>
apps/kwrite/icons/128-apps-kwrite.png

18.5 KB | W: | H:

apps/kwrite/icons/128-apps-kwrite.png

2.27 KB | W: | H:

apps/kwrite/icons/128-apps-kwrite.png
apps/kwrite/icons/128-apps-kwrite.png
apps/kwrite/icons/128-apps-kwrite.png
apps/kwrite/icons/128-apps-kwrite.png
  • 2-up
  • Swipe
  • Onion skin
apps/kwrite/icons/16-apps-kwrite.png

1.28 KB | W: | H:

apps/kwrite/icons/16-apps-kwrite.png

448 Bytes | W: | H:

apps/kwrite/icons/16-apps-kwrite.png
apps/kwrite/icons/16-apps-kwrite.png
apps/kwrite/icons/16-apps-kwrite.png
apps/kwrite/icons/16-apps-kwrite.png
  • 2-up
  • Swipe
  • Onion skin
apps/kwrite/icons/22-apps-kwrite.png

2.28 KB | W: | H:

apps/kwrite/icons/22-apps-kwrite.png

654 Bytes | W: | H:

apps/kwrite/icons/22-apps-kwrite.png
apps/kwrite/icons/22-apps-kwrite.png
apps/kwrite/icons/22-apps-kwrite.png
apps/kwrite/icons/22-apps-kwrite.png
  • 2-up
  • Swipe
  • Onion skin
apps/kwrite/icons/32-apps-kwrite.png

3.33 KB | W: | H:

apps/kwrite/icons/32-apps-kwrite.png

757 Bytes | W: | H:

apps/kwrite/icons/32-apps-kwrite.png
apps/kwrite/icons/32-apps-kwrite.png
apps/kwrite/icons/32-apps-kwrite.png
apps/kwrite/icons/32-apps-kwrite.png
  • 2-up
  • Swipe
  • Onion skin
apps/kwrite/icons/48-apps-kwrite.png

6.33 KB | W: | H:

apps/kwrite/icons/48-apps-kwrite.png

799 Bytes | W: | H:

apps/kwrite/icons/48-apps-kwrite.png
apps/kwrite/icons/48-apps-kwrite.png
apps/kwrite/icons/48-apps-kwrite.png
apps/kwrite/icons/48-apps-kwrite.png
  • 2-up
  • Swipe
  • Onion skin
apps/kwrite/icons/64-apps-kwrite.png

8.41 KB | W: | H:

apps/kwrite/icons/64-apps-kwrite.png

1.41 KB | W: | H:

apps/kwrite/icons/64-apps-kwrite.png
apps/kwrite/icons/64-apps-kwrite.png
apps/kwrite/icons/64-apps-kwrite.png
apps/kwrite/icons/64-apps-kwrite.png
  • 2-up
  • Swipe
  • Onion skin
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="48" height="48" version="1.1">
<defs>
<linearGradient id="linearGradient4485">
<stop style="stop-color:#000000;stop-opacity:1;" offset="0"/>
<stop style="stop-color:#000000;stop-opacity:0.384" offset="1"/>
</linearGradient>
<linearGradient id="linearGradient4477">
<stop style="stop-color:#f7f7f7;stop-opacity:1;" offset="0"/>
<stop style="stop-color:#f7f7f7;stop-opacity:0.392" offset="1"/>
</linearGradient>
<linearGradient id="b" y1="11" x1="17" y2="41" gradientUnits="userSpaceOnUse" x2="44" gradientTransform="translate(0 1004.36)">
<stop/>
<stop offset="1" stop-opacity="0"/>
</linearGradient>
<linearGradient id="c" y1="40" y2="6" gradientUnits="userSpaceOnUse" x2="0" gradientTransform="matrix(0.94118,0,0,0.91176,1.412,2.08)">
<stop stop-color="#b1b1b1"/>
<stop offset="1" stop-color="#dddddd"/>
</linearGradient>
<linearGradient xlink:href="#b" id="d" y1="21" x1="23" y2="39" gradientUnits="userSpaceOnUse" x2="40"/>
<linearGradient id="e" y1="1040.95" y2="1012.95" gradientUnits="userSpaceOnUse" x2="0" gradientTransform="translate(0,-1004.36)">
<stop stop-color="#f2f2f2"/>
<stop offset="1" stop-color="#ffffff"/>
</linearGradient>
<linearGradient gradientTransform="matrix(-1,0,0,-1,79.99999,38)" x2="49" gradientUnits="userSpaceOnUse" y2="20.735" x1="49.088" y1="26.497" id="d-3">
<stop/>
<stop stop-opacity="0" stop-color="#655c6f" offset="1"/>
</linearGradient>
<linearGradient xlink:href="#linearGradient4477" id="linearGradient4483" x1="34.237" y1="10.71" x2="30.045" y2="5.495" gradientUnits="userSpaceOnUse"/>
<linearGradient xlink:href="#linearGradient4485" id="linearGradient4491" x1="13" y1="44.006" x2="13" y2="3.172" gradientUnits="userSpaceOnUse"/>
</defs>
<rect width="32" x="8" y="4" height="40" style="fill:url(#c);fill-rule:evenodd" ry="1" rx="1"/>
<path d="m 38,37 -28,5 1.786,1.963 28.21,0.037 0,-36 -2,-2 z" style="opacity:0.2;fill:url(#d);fill-rule:evenodd"/>
<path d="m 10,6 0,36 28,0 0,-36 z" style="fill:url(#e);fill-rule:evenodd"/>
<rect width="28" x="10" y="41" height="1.016" style="fill:#1b1b1b;fill-rule:evenodd;fill-opacity:1;opacity:0.437"/>
<rect style="fill:#bcbcbc;fill-rule:evenodd" height="1" y="14" x="15" width="8"/>
<rect style="fill:#bcbcbc;fill-rule:evenodd" height="1" y="14" x="24" width="5"/>
<rect style="fill:#bcbcbc;fill-rule:evenodd" height="1" y="16" x="15" width="6"/>
<rect style="fill:#bcbcbc;fill-rule:evenodd" height="1" y="16" x="22" width="3"/>
<rect style="fill:#bcbcbc;fill-rule:evenodd" height="1" y="18" x="15" width="4.03"/>
<rect style="fill:#bcbcbc;fill-rule:evenodd" height="1" y="18" x="20" width="7"/>
<rect style="fill:#bcbcbc;fill-opacity:1;fill-rule:evenodd" height="1" y="10" x="15" width="5"/>
<rect style="fill:#bcbcbc;fill-opacity:1;fill-rule:evenodd" height="1" y="10" x="26" width="6"/>
<rect style="fill:#bcbcbc;fill-opacity:1;fill-rule:evenodd" height="1" y="12" x="15" width="7"/>
<rect style="fill:#bcbcbc;fill-opacity:1;fill-rule:evenodd" height="1" y="12" x="23" width="3"/>
<rect style="fill:#bcbcbc;fill-rule:evenodd" width="7" x="15" y="-27" height="1" transform="scale(1,-1)"/>
<rect style="fill:#bcbcbc;fill-rule:evenodd" width="3" x="23" y="-27" height="1" transform="scale(1,-1)"/>
<rect style="fill:#bcbcbc;fill-rule:evenodd" width="4.03" x="15" y="-25" height="1" transform="scale(1,-1)"/>
<rect style="fill:#bcbcbc;fill-rule:evenodd" width="8" x="20" y="-25" height="1" transform="scale(1,-1)"/>
<rect width="10" x="15" y="-23" height="1" style="fill:#bcbcbc;fill-opacity:1;fill-rule:evenodd" transform="scale(1,-1)"/>
<rect width="5" x="26" y="-23" height="1" style="fill:#bcbcbc;fill-opacity:1;fill-rule:evenodd" transform="scale(1,-1)"/>
<rect style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:0.082;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:url(#linearGradient4491);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" width="1" height="35" x="12" y="6"/>
<rect width="10" x="15" y="30" height="1" style="fill:#bcbcbc;fill-opacity:1;fill-rule:evenodd"/>
<rect width="7" x="15" y="32" height="1" style="fill:#bcbcbc;fill-opacity:1;fill-rule:evenodd"/>
<rect width="4" x="23" y="32" height="1" style="fill:#bcbcbc;fill-opacity:1;fill-rule:evenodd"/>
<rect width="4" x="15" y="34" height="1" style="fill:#bcbcbc;fill-opacity:1;fill-rule:evenodd"/>
<rect width="7" x="15" y="36" height="1" style="fill:#bcbcbc;fill-opacity:1;fill-rule:evenodd"/>
<rect width="4" x="26" y="16" height="1" style="fill:#bcbcbc;fill-rule:evenodd"/>
<rect width="4" x="21" y="10" height="1" style="fill:#bcbcbc;fill-opacity:1;fill-rule:evenodd"/>
<rect width="7" x="27" y="12" height="1" style="fill:#bcbcbc;fill-opacity:1;fill-rule:evenodd"/>
<path style="fill:url(#linearGradient4483);fill-opacity:1;fill-rule:evenodd" d="m 37.99999,13 -7,-7 0,7 z"/>
<rect style="fill:#bcbcbc;fill-opacity:1;fill-rule:evenodd" height="1" y="14" x="30" width="4"/>
<path style="opacity:0.2;fill:url(#d-3);fill-rule:evenodd" d="m 30.99999,13 7,7 0,-7 z"/>
<path d="m 30.99999,6 7,7 0,-7 z" style="fill:#fdfdfd;fill-opacity:1;fill-rule:evenodd"/>
<rect y="6" x="10" height="35" width="2" style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:0.373;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"/>
<rect width="3" x="31" y="16" height="1" style="fill:#bcbcbc;fill-opacity:1;fill-rule:evenodd"/>
<rect transform="scale(1,-1)" height="1" y="-25" x="29" width="4.03" style="fill:#bcbcbc;fill-rule:evenodd"/>
<rect style="fill:#bcbcbc;fill-opacity:1;fill-rule:evenodd" height="1" y="30" x="26" width="4"/>
<rect style="fill:#bcbcbc;fill-opacity:1;fill-rule:evenodd" height="1" y="34" x="20" width="8"/>
<rect style="fill:#bcbcbc;fill-opacity:1;fill-rule:evenodd" height="1" y="36" x="23" width="7"/>
<rect transform="scale(1,-1)" height="1" y="-27" x="23" width="3" style="fill:#bcbcbc;fill-rule:evenodd"/>
<rect style="fill:#bcbcbc;fill-rule:evenodd" width="2" x="32" y="-23" height="1" transform="scale(1,-1)"/>
<rect transform="scale(1,-1)" height="1" y="-31" x="31" width="3" style="fill:#bcbcbc;fill-rule:evenodd"/>
<rect style="fill:#bcbcbc;fill-opacity:1;fill-rule:evenodd" height="1" y="32" x="28" width="6"/>
</svg>
for i in 16 22 32 44 48 64 128 150 256 310 512; do
ksvgtopng5 $i $i sc-apps-kwrite.svg $i-apps-kwrite.png
done
......@@ -120,6 +120,11 @@ extern "C" Q_DECL_EXPORT int main(int argc, char **argv)
*/
KateApp::fillAuthorsAndCredits(aboutData);
/**
* set proper KWrite icon for our about dialog
*/
aboutData.setProgramLogo(QIcon(QStringLiteral(":/kwrite/kwrite.svg")));
/**
* bugzilla
*/
......@@ -134,7 +139,7 @@ extern "C" Q_DECL_EXPORT int main(int argc, char **argv)
* set the program icon
*/
#ifndef Q_OS_MACOS // skip this on macOS to have proper mime-type icon visible
QApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("accessories-text-editor"), app.windowIcon()));
QApplication::setWindowIcon(QIcon(QStringLiteral(":/kwrite/kwrite.svg")));
#endif
/**
......
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