<div dir="ltr"><div><div><div><div><div><div><div>Dirk and Jocke (especially),<br></div>I can see you've done a lot over the past few weeks to make the mobile UI much more attracted.  Have you considered using a custom Subsurface style (falling back to Material) to make it more efficient to theme the QML controls?  It would be easier to customize the controls in one place, and have the change made consistently throughout, following the guidance in:<br></div><a href="https://doc.qt.io/qt-5/qtquickcontrols2-customize.html#creating-a-custom-style">https://doc.qt.io/qt-5/qtquickcontrols2-customize.html#creating-a-custom-style</a><br><br></div>In the attached patch I have done that for the button controls (only used on DownloadFromDiveComputer.qml) moving the styling into SubsurfaceStyle/Button.qml, but it would not be hard to do it for the other controls.  Using the Button as an example, we could then add code to make the button depress and change colour when down, and only have to add the code in one place.<br><br></div>The big problem now, is that the only way I've been able to use the custom style is to select it from the command line (testing on desktop):<br>./subsurface-mobile -style /home/rick/src/subsurface/mobile-widgets/qml/SubsurfaceStyle<br></div>Clearly that is useless for the mobile app.  I believe we should also be able to use QQuickStyle::SetStyle to set it from within the app (see <a href="https://doc.qt.io/qt-5/qquickstyle.html">https://doc.qt.io/qt-5/qquickstyle.html</a>), but the following doesn't work for me, either with or with setting the fallback style.  Maybe the problem is that I'm using Qt5.7, but I'm not sure.<br><br>diff --git a/subsurface-mobile-helper.cpp b/subsurface-mobile-helper.cpp<br>index 68dd228b..cd1df6c6 100644<br>--- a/subsurface-mobile-helper.cpp<br>+++ b/subsurface-mobile-helper.cpp<br>@@ -14,6 +14,7 @@<br> <br> #include <QQuickWindow><br> #include <QScreen><br>+#include <QQuickStyle><br> #include <QQmlApplicationEngine><br> #include <QQmlContext><br> #include <QSortFilterProxyModel><br>@@ -43,6 +44,10 @@ void run_ui()<br>        qmlRegisterType<DownloadThread>("org.subsurfacedivelog.mobile", 1, 0, "DCDownloadThread");<br>        qmlRegisterType<DiveImportedModel>("org.subsurfacedivelog.mobile", 1, 0, "DCImportModel");<br> <br>+       // set style for custom constrols<br>+       QQuickStyle::setStyle(":/SubsurfaceStyle");<br>+       QQuickStyle::setFallbackStyle("Material");<br>+<br>        QQmlApplicationEngine engine;<br>        KirigamiPlugin::getInstance().registerTypes();<br> #if __APPLE__<br><br></div>Cheers,<br><br></div>Rick<br></div>