fix(ui): respect Plasma style and add app branding
- Preserve the platform-selected QtQuick style on Plasma - Add the QtPotato desktop entry and bundled app icon - Remove the empty-state open-file action
This commit is contained in:
1 parent
614a31db1b
commit
359162828d
5 files changed
+76
-5
No files matched your search
@@ -95,6 +95,14 @@ ecm_target_qml_sources(qtpotato SOURCES
|
||||
qml/VolumeSlider.qml
|
||||
)
|
||||
|
||||
# Bundled copy of the app icon, used when the installed one is not in the icon theme
|
||||
# (e.g. running from the build directory).
|
||||
qt_add_resources(qtpotato "icons"
|
||||
PREFIX "/"
|
||||
BASE icons
|
||||
FILES icons/dev.trivk.qtpotato.svg
|
||||
)
|
||||
|
||||
target_include_directories(qtpotato PRIVATE models mpris mpv playlist translate)
|
||||
target_compile_definitions(qtpotato PRIVATE QTPOTATO_VERSION_STRING="${PROJECT_VERSION}")
|
||||
|
||||
@@ -121,3 +129,5 @@ target_link_libraries(qtpotato PRIVATE
|
||||
)
|
||||
|
||||
install(TARGETS qtpotato ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
|
||||
install(FILES dev.trivk.qtpotato.desktop DESTINATION ${KDE_INSTALL_APPDIR})
|
||||
install(FILES icons/dev.trivk.qtpotato.svg DESTINATION ${KDE_INSTALL_FULL_ICONDIR}/hicolor/scalable/apps)
|
||||
Reference in new issue
Block a user