aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNedim Hadzic <nedim.hadzic@pelagicore.com>2017-07-18 12:55:20 +0200
committerNedim Hadzic <nedim.hadzic@pelagicore.com>2017-07-23 18:58:52 +0000
commit8914617bcdc76044c2a030fb9de2314f6d4ffa7b (patch)
treebc747c9384437a86e1640a0069fb47aa87bafd50
parente110ccc4d0d0ad0027e370770013362a20b97a1c (diff)
Add resolution setup to docs
Task-number: QTAUTO-499 Change-Id: I46cd392ed696c792bfed31703592173725eb51df Reviewed-by: Juergen Bocklage-Ryannel <jbocklage-ryannel@luxoft.com>
-rw-r--r--doc/src/neptuneui-index.qdoc31
1 files changed, 31 insertions, 0 deletions
diff --git a/doc/src/neptuneui-index.qdoc b/doc/src/neptuneui-index.qdoc
index 2f97713..75eb4e8 100644
--- a/doc/src/neptuneui-index.qdoc
+++ b/doc/src/neptuneui-index.qdoc
@@ -178,6 +178,7 @@
ui:
fullscreen: yes
+ style: "${CONFIG_PWD}/styles/neptune"
mainQml: "Main.qml"
importPaths: [ "imports/shared", "imports/system" ]
windowIcon: "imports/shared/assets/icons/active/apps@96.png"
@@ -201,6 +202,36 @@
\note You must regenerate the yocto image for the desired target after
changing these \c yaml files.
+ Neptune UI supports different style configurations which can be used to adapt the style to the needs of the Hardware the UI should be running on.
+ The following resolutions are available:
+
+ * 1920x1080 - default
+ * 1280x800
+ * 1080x1920
+ * 768x1024
+
+ To set the UI for wanted (other than default one) resolution, set the 'QT_QUICK_CONTROLS_CONF' to the location of QtQuickControls 2 configuration file. Configuration files are within 'styles' folder (\l {https://doc.qt.io/qt-5/qtquickcontrols2-environment.html} {QtQuickControls 2 Environment}).
+
+ Example of 1080x1920 potrait resolution configuration file.
+
+ \badcode
+ [Controls]
+ Style=Material
+ [Material]
+ Theme=Dark
+
+ [Neptune]
+ Theme=Dark
+ FontSize=28
+ FontFactor=1.0
+ FontFamily="Source Sans Pro"
+ WindowWidth=1080
+ WindowHeight=1920
+ Dark/BrightColor=#FEFEFE
+ Light/BrightColor=#3E3E3E
+
+ \endcode
+
\section1 Related Information
\list