Rename icons and .desktop files

This commit is contained in:
Carl Philipp Klemm 2026-04-19 19:22:49 +02:00
parent 05e4fb1cc1
commit 7c96b87a11
8 changed files with 8 additions and 8 deletions

View file

@ -222,10 +222,10 @@ install(TARGETS smartvos DESTINATION bin)
install(TARGETS smartvos_core DESTINATION lib) install(TARGETS smartvos_core DESTINATION lib)
# Install icon # Install icon
install(FILES UVOSicon.bmp DESTINATION share/icons/hicolor/48x48/apps RENAME smartvos.png) install(FILES xyz.uvos.icon.png DESTINATION share/icons/hicolor/128x128/apps)
# Install .desktop file # Install .desktop file
install(FILES smartvos.desktop DESTINATION share/applications) install(FILES xyz.uvos.smartvos.desktop DESTINATION share/applications)
# Update icon cache (optional, for icon themes) # Update icon cache (optional, for icon themes)
install(CODE "execute_process(COMMAND gtk-update-icon-cache -f -t ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX})") install(CODE "execute_process(COMMAND gtk-update-icon-cache -f -t ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX})")

Binary file not shown.

Before

Width:  |  Height:  |  Size: 112 KiB

View file

@ -1,5 +1,5 @@
<RCC> <RCC>
<qresource prefix="/images"> <qresource prefix="/images">
<file>UVOSicon.bmp</file> <file>xyz.uvos.icon.bmp</file>
</qresource> </qresource>
</RCC> </RCC>

View file

@ -152,7 +152,7 @@ void MqttSensorSource::onMessageReceived(const QMqttMessage& message)
{ {
sensor.name = baseName + " Power"; sensor.name = baseName + " Power";
sensor.type = Sensor::TYPE_POWER; sensor.type = Sensor::TYPE_POWER;
sensor.field = obj["Power"].toDouble(0); sensor.field = obj["power"].toDouble(0);
stateChanged(sensor); stateChanged(sensor);
} }

View file

@ -27,7 +27,7 @@
</property> </property>
<property name="windowIcon"> <property name="windowIcon">
<iconset resource="../../resources.qrc"> <iconset resource="../../resources.qrc">
<normaloff>:/images/UVOSicon.bmp</normaloff>:/images/UVOSicon.bmp</iconset> <normaloff>:/images/xyz.uvos.icon.bmp</normaloff>:/images/xyz.uvos.icon.bmp</iconset>
</property> </property>
<widget class="QWidget" name="centralWidget"> <widget class="QWidget" name="centralWidget">
<property name="sizePolicy"> <property name="sizePolicy">

BIN
xyz.uvos.icon.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

BIN
xyz.uvos.icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

View file

@ -1,8 +1,8 @@
[Desktop Entry] [Desktop Entry]
Name=SmartVOS Name=SmartVOS
Comment=Smart Home Interface Comment=Smart Home Interface
Exec=smartvos Exec=smartvos -H 10.0.0.1
Icon=smartvos Icon=xyz.uvos.icon
Terminal=false Terminal=false
Type=Application Type=Application
Categories=Utility;HomeAutomation; Categories=Utility;HomeAutomation;