[games/chessament] /: Add more icon sizes

Manuel Alcaraz Zambrano <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 84f163287ebc72ed7dffcb68008e27ca0bdb77d3 by Manuel Alcaraz Zambrano.
Committed on 20/07/2026 at 16:02.
Pushed by manuelal into branch 'master'.

Add more icon sizes

M  +1    -2    CMakeLists.txt
M  +1    -1    README.md
M  +1    -1    REUSE.toml
R  +-    --    icons/128-apps-chessament.png [from: 128-logo.png - 100% similarity]
A  +-    --    icons/150-apps-chessament.png
A  +-    --    icons/256-apps-chessament.png
A  +-    --    icons/44-apps-chessament.png
A  +-    --    icons/512-apps-chessament.png
R  +0    -0    icons/sc-apps-org.kde.chessament.svg [from: org.kde.chessament.svg - 100% similarity]
A  +1    -0    logo.png
M  +1    -1    org.kde.chessament.desktop
M  +1    -1    org.kde.chessament.metainfo.xml
M  +8    -2    src/CMakeLists.txt

https://invent.kde.org/games/chessament/-/commit/84f163287ebc72ed7dffcb68008e27ca0bdb77d3

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 10fe17e..5254557 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -29,7 +29,7 @@ include(KDECMakeSettings NO_POLICY_SCOPE)
 include(KDECompilerSettings NO_POLICY_SCOPE)
 include(ECMAddTests)
 include(ECMAddAppIcon)
-
+include(ECMInstallIcons)
 include(ECMSetupVersion)
 include(ECMFindQmlModule)
 include(ECMQmlModule)
@@ -117,7 +117,6 @@ endif()
 
 install(FILES org.kde.chessament.desktop DESTINATION ${KDE_INSTALL_APPDIR})
 install(FILES org.kde.chessament.metainfo.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
-install(FILES org.kde.chessament.svg DESTINATION ${KDE_INSTALL_FULL_ICONDIR}/hicolor/scalable/apps)
 install(FILES org.kde.chessament.xml DESTINATION ${KDE_INSTALL_MIMEDIR})
 update_xdg_mimetypes(${KDE_INSTALL_MIMEDIR})
 ki18n_install(po)
diff --git a/README.md b/README.md
index 96cbb9f..de9da4d 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,7 @@
     SPDX-License-Identifier: CC0-1.0
 -->
 
-# <img src="org.kde.chessament.svg" width="40" alt="" /> Chessament
+# <img src="icons/sc-apps-chessament.svg" width="40" alt="" /> Chessament
 
 A chess tournament manager.
 
diff --git a/REUSE.toml b/REUSE.toml
index 215cabd..61dae36 100644
--- a/REUSE.toml
+++ b/REUSE.toml
@@ -4,7 +4,7 @@
 version = 1
 
 [[annotations]]
-path = ["128-logo.png", "org.kde.chessament.svg"]
+path = ["logo.png", "icons/*"]
 precedence = "aggregate"
 SPDX-FileCopyrightText = "2025 Manuel Alcaraz Zambrano <[email protected]>"
 SPDX-License-Identifier = "LGPL-3.0-only"
diff --git a/128-logo.png b/icons/128-apps-chessament.png
similarity index 100%
rename from 128-logo.png
rename to icons/128-apps-chessament.png
diff --git a/icons/150-apps-chessament.png b/icons/150-apps-chessament.png
new file mode 100644
index 0000000..cb2b4f8
Binary files /dev/null and b/icons/150-apps-chessament.png differ
diff --git a/icons/256-apps-chessament.png b/icons/256-apps-chessament.png
new file mode 100644
index 0000000..112a3b8
Binary files /dev/null and b/icons/256-apps-chessament.png differ
diff --git a/icons/44-apps-chessament.png b/icons/44-apps-chessament.png
new file mode 100644
index 0000000..fca2702
Binary files /dev/null and b/icons/44-apps-chessament.png differ
diff --git a/icons/512-apps-chessament.png b/icons/512-apps-chessament.png
new file mode 100644
index 0000000..553088b
Binary files /dev/null and b/icons/512-apps-chessament.png differ
diff --git a/org.kde.chessament.svg b/icons/sc-apps-org.kde.chessament.svg
similarity index 100%
rename from org.kde.chessament.svg
rename to icons/sc-apps-org.kde.chessament.svg
diff --git a/logo.png b/logo.png
new file mode 120000
index 0000000..4cbe4ea
--- /dev/null
+++ b/logo.png
@@ -0,0 +1 @@
+/data/kde/kde/src/chessament/icons/128-apps-chessament.png
\ No newline at end of file
diff --git a/org.kde.chessament.desktop b/org.kde.chessament.desktop
index 8dd47ce..b55d8e3 100644
--- a/org.kde.chessament.desktop
+++ b/org.kde.chessament.desktop
@@ -57,7 +57,7 @@ Comment[uk]=Керування шаховим турніром
 Comment[zh_CN]=国际象棋赛事管理系统
 Version=1.0
 Exec=chessament %f
-Icon=org.kde.chessament
+Icon=chessament
 MimeType=application/vnd.kde.chessament;
 Type=Application
 Terminal=false
diff --git a/org.kde.chessament.metainfo.xml b/org.kde.chessament.metainfo.xml
index d0e526e..bbd54bc 100644
--- a/org.kde.chessament.metainfo.xml
+++ b/org.kde.chessament.metainfo.xml
@@ -86,7 +86,7 @@
     <p xml:lang="uk">Chessament — програма для керування шаховими турнірами. У поточній версії передбачено турніри за індивідуальною швейцарською системою.</p>
     <p xml:lang="zh-CN">Chessament 是一个国际象棋赛事管理系统。目前支持举办个人瑞士制比赛。</p>
   </description>
-  <icon type="stock">org.kde.chessament</icon>
+  <icon type="stock">chessament</icon>
   <categories>
     <category>Office</category>
   </categories>
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 15d7b77..33e29cc 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -131,9 +131,15 @@ target_link_libraries(chessament PRIVATE
     chessament_settingsplugin
 )
 
-ecm_add_app_icon(CHESSAMENT_ICON ICONS ${CMAKE_SOURCE_DIR}/128-logo.png)
+set(ICON_FILES
+    ${CMAKE_SOURCE_DIR}/icons/sc-apps-org.kde.chessament.svg
+    ${CMAKE_SOURCE_DIR}/icons/128-apps-chessament.png
+    ${CMAKE_SOURCE_DIR}/icons/256-apps-chessament.png
+    ${CMAKE_SOURCE_DIR}/icons/512-apps-chessament.png
+)
 
-target_sources(chessament PRIVATE ${CHESSAMENT_ICON})
+ecm_install_icons(ICONS ${ICON_FILES} DESTINATION ${KDE_INSTALL_ICONDIR})
+ecm_add_app_icon(chessament ICONS ${ICON_FILES})
 
 install(TARGETS chessament ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.