aboutsummaryrefslogtreecommitdiffstats
path: root/homescreen/homescreen.pro
diff options
context:
space:
mode:
authormfritzsch <marcus_fritzsch@mentor.com>2017-05-05 16:49:03 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-05-15 18:25:15 +0200
commitbce6367036483490ff5a41fc182cfa97282313fb (patch)
tree5eae3f4ac68481ba4107144ea9e5bdac5390b76c /homescreen/homescreen.pro
parent226982d32f334189b4f465a720a297548a42c077 (diff)
Home: Use icon from AFM, display a black area with text if icon unloadablesandbox/mfritzsch/afw-icons
* Try to find icons in the AFM_ICON_PATH. * If none was found, use the builtin. * If Home.qml cannot load the icon, display a shaded circle that approximates the size of the icons, and contains the icon name as text. * Enables proper scrolling of Home icons (and clipping to its dimensions). Change-Id: Ic921b357870648e675cda41985da2e985f4a0e6c
Diffstat (limited to 'homescreen/homescreen.pro')
-rw-r--r--homescreen/homescreen.pro3
1 files changed, 3 insertions, 0 deletions
diff --git a/homescreen/homescreen.pro b/homescreen/homescreen.pro
index 1ca59b6..357bd64 100644
--- a/homescreen/homescreen.pro
+++ b/homescreen/homescreen.pro
@@ -19,6 +19,9 @@ CONFIG += c++11
include(../interfaces/interfaces.pri)
+AFM_ICON_DIR = '$$system(pkg-config --variable=icondir afm-main || echo /var/local/lib/afm/icons/)'
+QMAKE_CXXFLAGS += -DAFM_ICON_DIR='\\\"$$AFM_ICON_DIR\\\"'
+
SOURCES += \
src/main.cpp \
src/homescreencontrolinterface.cpp \