Rename icons and .desktop files
This commit is contained in:
parent
05e4fb1cc1
commit
7c96b87a11
8 changed files with 8 additions and 8 deletions
|
|
@ -222,10 +222,10 @@ install(TARGETS smartvos DESTINATION bin)
|
|||
install(TARGETS smartvos_core DESTINATION lib)
|
||||
|
||||
# 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(FILES smartvos.desktop DESTINATION share/applications)
|
||||
install(FILES xyz.uvos.smartvos.desktop DESTINATION share/applications)
|
||||
|
||||
# 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})")
|
||||
|
|
|
|||
BIN
UVOSicon.bmp
BIN
UVOSicon.bmp
Binary file not shown.
|
Before Width: | Height: | Size: 112 KiB |
|
|
@ -1,5 +1,5 @@
|
|||
<RCC>
|
||||
<qresource prefix="/images">
|
||||
<file>UVOSicon.bmp</file>
|
||||
<file>xyz.uvos.icon.bmp</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
|
|||
|
|
@ -152,7 +152,7 @@ void MqttSensorSource::onMessageReceived(const QMqttMessage& message)
|
|||
{
|
||||
sensor.name = baseName + " Power";
|
||||
sensor.type = Sensor::TYPE_POWER;
|
||||
sensor.field = obj["Power"].toDouble(0);
|
||||
sensor.field = obj["power"].toDouble(0);
|
||||
stateChanged(sensor);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
</property>
|
||||
<property name="windowIcon">
|
||||
<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>
|
||||
<widget class="QWidget" name="centralWidget">
|
||||
<property name="sizePolicy">
|
||||
|
|
|
|||
BIN
xyz.uvos.icon.bmp
Normal file
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
BIN
xyz.uvos.icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.9 KiB |
|
|
@ -1,10 +1,10 @@
|
|||
[Desktop Entry]
|
||||
Name=SmartVOS
|
||||
Comment=Smart Home Interface
|
||||
Exec=smartvos
|
||||
Icon=smartvos
|
||||
Exec=smartvos -H 10.0.0.1
|
||||
Icon=xyz.uvos.icon
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Utility;HomeAutomation;
|
||||
Keywords=smart;home;automation;iot;
|
||||
StartupNotify=true
|
||||
StartupNotify=true
|
||||
Loading…
Add table
Add a link
Reference in a new issue