Some more entries in the main menu

This commit is contained in:
Michael Zanetti 2020-12-04 13:16:06 +01:00
parent 5b7028def1
commit be3834eb1d
5 changed files with 305 additions and 14 deletions

View File

@ -246,5 +246,8 @@
<file>ui/images/twitter.svg</file>
<file>ui/images/discourse.svg</file>
<file>ui/images/telegram.svg</file>
<file>ui/images/facebook.svg</file>
<file>ui/images/help.svg</file>
<file>ui/images/discord.svg</file>
</qresource>
</RCC>

View File

@ -141,6 +141,17 @@ Drawer {
root.close();
}
}
NymeaItemDelegate {
Layout.fillWidth: true
text: qsTr("Configure main view")
iconName: "../images/configure.svg"
progressive: false
visible: root.currentEngine && root.currentEngine.jsonRpcClient.currentHost
onClicked: {
root.configureMainView();
root.close();
}
}
NymeaItemDelegate {
Layout.fillWidth: true
text: qsTr("App settings")
@ -162,22 +173,18 @@ Drawer {
root.close();
}
}
NymeaItemDelegate {
Layout.fillWidth: true
text: qsTr("Configure main view")
iconName: "../images/configure.svg"
progressive: false
visible: root.currentEngine && root.currentEngine.jsonRpcClient.currentHost
onClicked: {
root.configureMainView();
root.close();
}
}
NymeaItemDelegate {
Layout.fillWidth: true
Layout.topMargin: app.margins
text: qsTr("Help")
iconName: "../images/help.svg"
progressive: false
onClicked: Qt.openUrlExternally("https://nymea.io/documentation/users/usage/first-steps")
}
NymeaItemDelegate {
Layout.fillWidth: true
text: qsTr("Forum")
iconName: "../images/discourse.svg"
progressive: false
@ -190,6 +197,13 @@ Drawer {
progressive: false
onClicked: Qt.openUrlExternally("https://t.me/nymeacommunity")
}
NymeaItemDelegate {
Layout.fillWidth: true
text: qsTr("Discord")
iconName: "../images/discord.svg"
progressive: false
onClicked: Qt.openUrlExternally("https://discord.gg/tX9YCpD")
}
NymeaItemDelegate {
Layout.fillWidth: true
text: qsTr("Twitter")
@ -197,10 +211,15 @@ Drawer {
progressive: false
onClicked: Qt.openUrlExternally("https://twitter.com/nymea_io")
}
NymeaItemDelegate {
Layout.fillWidth: true
text: qsTr("Facebook")
iconName: "../images/facebook.svg"
progressive: false
onClicked: Qt.openUrlExternally("https://m.facebook.com/groups/nymea")
}
}
}
}
}
}

View File

@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
id="Layer_1"
viewBox="0 0 37.616327 38.4"
version="1.1"
sodipodi:docname="discord.svg"
width="96"
height="96"
inkscape:version="1.0.1 (1.0.1+r74)">
<metadata
id="metadata867">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs865" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1380"
inkscape:window-height="873"
id="namedview863"
showgrid="true"
inkscape:zoom="5.1371977"
inkscape:cx="33.216315"
inkscape:cy="53.746976"
inkscape:window-x="60"
inkscape:window-y="27"
inkscape:window-maximized="1"
inkscape:current-layer="Layer_1">
<inkscape:grid
type="xygrid"
id="grid1430" />
</sodipodi:namedview>
<style
id="style856">.st0{fill:#FFFFFF;}</style>
<path
class="st0"
d="m 15.49845,16.624 c -1.042286,0 -1.865144,0.8 -1.865144,1.776 0,0.976 0.841144,1.776 1.865144,1.776 1.042285,0 1.865141,-0.8 1.865141,-1.776 0.01828,-0.976 -0.822856,-1.776 -1.865141,-1.776 z m 6.674285,0 c -1.042286,0 -1.865143,0.8 -1.865143,1.776 0,0.976 0.841143,1.776 1.865143,1.776 1.042286,0 1.865143,-0.8 1.865143,-1.776 0,-0.976 -0.822857,-1.776 -1.865143,-1.776 z"
id="path858"
style="fill:#808080;fill-opacity:1;stroke-width:0.171048" />
<path
class="st0"
d="M 31.059592,3.2 H 6.556735 C 4.4904493,3.2 2.8081635,4.672 2.8081635,6.496 v 21.632 c 0,1.824 1.6822858,3.296 3.7485715,3.296 h 20.736001 l -0.969144,-2.96 2.340572,1.904 2.212572,1.792 3.931428,3.04 V 6.496 c 0,-1.824 -1.682286,-3.296 -3.748572,-3.296 z m -7.058285,20.896 c 0,0 -0.658285,-0.688 -1.206857,-1.296 2.395429,-0.592 3.309714,-1.904 3.309714,-1.904 -0.749714,0.432 -1.462857,0.736 -2.102857,0.944 -0.914285,0.336 -1.792,0.56 -2.651428,0.688 -1.755429,0.288 -3.364573,0.208 -4.736001,-0.016 C 15.571592,22.336 14.675592,22.08 13.925879,21.824 13.505306,21.68 13.048164,21.504 12.591021,21.28 12.536161,21.248 12.481306,21.232 12.42645,21.2 12.38988,21.184 12.3716,21.168 12.3533,21.152 c -0.329143,-0.16 -0.512,-0.272 -0.512,-0.272 0,0 0.877716,1.28 3.200001,1.888 -0.548572,0.608 -1.225144,1.328 -1.225144,1.328 -4.0411439,-0.112 -5.5771439,-2.432 -5.5771439,-2.432 0,-5.152 2.6331429,-9.328 2.6331429,-9.328 2.633142,-1.728 5.138285,-1.68 5.138285,-1.68 l 0.182858,0.192 c -3.291429,0.832 -4.809143,2.096 -4.809143,2.096 0,0 0.402286,-0.192 1.078858,-0.464 1.956571,-0.752 3.510857,-0.96 4.150856,-1.008 0.109715,-0.016 0.201144,-0.032 0.310857,-0.032 1.115429,-0.128 2.377144,-0.16 3.693715,-0.032 1.737143,0.176 3.602286,0.624 5.504,1.536 0,0 -1.444571,-1.2 -4.553143,-2.032 l 0.256,-0.256 c 0,0 2.505143,-0.048 5.138286,1.68 0,0 2.633144,4.176 2.633144,9.328 0,0 -1.554287,2.32 -5.59543,2.432 z"
id="path860"
style="fill:#808080;fill-opacity:1;stroke-width:0.171048" />
</svg>

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg id="svg4874" width="96" height="96" version="1.1" viewBox="0 0 96 96" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<defs id="defs4876">
<clipPath id="clipPath40">
<path id="path42" d="m0 500h1024v-500h-1024v500z"/>
</clipPath>
</defs>
<metadata id="metadata4879">
<rdf:RDF>
<cc:Work rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
<dc:title/>
</cc:Work>
</rdf:RDF>
</metadata>
<g id="layer1" transform="translate(67.857 -78.505)">
<g id="g4845" transform="matrix(0 -1 -1 0 373.51 516.51)">
<g id="g4778" transform="matrix(-.9996 0 0 1 575.94 -611)">
<g id="g4780" transform="matrix(-1 0 0 1 576 611)">
<rect id="rect4782" transform="scale(-1,1)" x="-438" y="345.36" width="96.038" height="96" style="color:#000000;fill:none"/>
<g id="g36" transform="matrix(0 -.29974 .29986 0 313.82 623.87)" style="fill:#808080;opacity:.98;stroke-width:.975">
<g id="g38" clip-path="url(#clipPath40)" style="fill:#808080;stroke-width:.975">
<g id="g44" transform="translate(887.72 387.45)" style="fill:#808080;stroke-width:.975">
<path id="path46" d="m0 0h-237.43c-8.136 0-14.73-6.594-14.73-14.73v-237.43c0-8.135 6.594-14.731 14.73-14.731h127.83v103.36h-34.782v40.28h34.782v29.705c0 34.472 21.054 53.243 51.806 53.243 14.731 0 27.391-1.096 31.08-1.586v-36.026l-21.328-0.01c-16.724 0-19.963-7.947-19.963-19.609v-25.717h39.887l-5.193-40.28h-34.694v-103.36h68.012c8.135 0 14.73 6.596 14.73 14.731v237.43c0 8.136-6.595 14.73-14.73 14.73" style="fill:#808080"/>
</g>
</g>
</g>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -0,0 +1,168 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="96"
height="96"
id="svg4874"
version="1.1"
inkscape:version="0.91+devel r"
viewBox="0 0 96 96.000001"
sodipodi:docname="help.svg">
<defs
id="defs4876" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="8.7812488"
inkscape:cx="-3.6953781"
inkscape:cy="56.797146"
inkscape:document-units="px"
inkscape:current-layer="g4780"
showgrid="true"
showborder="true"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:snap-bbox="true"
inkscape:bbox-paths="true"
inkscape:bbox-nodes="true"
inkscape:snap-bbox-edge-midpoints="true"
inkscape:snap-bbox-midpoints="true"
inkscape:object-paths="true"
inkscape:snap-intersection-paths="true"
inkscape:object-nodes="true"
inkscape:snap-smooth-nodes="true"
inkscape:snap-midpoints="true"
inkscape:snap-object-midpoints="true"
inkscape:snap-center="true"
showguides="true"
inkscape:guide-bbox="true">
<inkscape:grid
type="xygrid"
id="grid5451"
empspacing="8" />
<sodipodi:guide
orientation="1,0"
position="8,-8.0000001"
id="guide4063" />
<sodipodi:guide
orientation="1,0"
position="4,-8.0000001"
id="guide4065" />
<sodipodi:guide
orientation="0,1"
position="-8,88.000001"
id="guide4067" />
<sodipodi:guide
orientation="0,1"
position="-8,92.000001"
id="guide4069" />
<sodipodi:guide
orientation="0,1"
position="104,4"
id="guide4071" />
<sodipodi:guide
orientation="0,1"
position="-5,8.0000001"
id="guide4073" />
<sodipodi:guide
orientation="1,0"
position="92,-8.0000001"
id="guide4075" />
<sodipodi:guide
orientation="1,0"
position="88,-8.0000001"
id="guide4077" />
<sodipodi:guide
orientation="0,1"
position="-8,84.000001"
id="guide4074" />
<sodipodi:guide
orientation="1,0"
position="12,-8.0000001"
id="guide4076" />
<sodipodi:guide
orientation="0,1"
position="-5,12"
id="guide4078" />
<sodipodi:guide
orientation="1,0"
position="84,-9.0000001"
id="guide4080" />
<sodipodi:guide
position="48,-8.0000001"
orientation="1,0"
id="guide4170" />
<sodipodi:guide
position="-8,48"
orientation="0,1"
id="guide4172" />
</sodipodi:namedview>
<metadata
id="metadata4879">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(67.857146,-78.50504)">
<g
transform="matrix(0,-1,-1,0,373.50506,516.50504)"
id="g4845"
style="display:inline">
<g
inkscape:export-ydpi="90"
inkscape:export-xdpi="90"
inkscape:export-filename="next01.png"
transform="matrix(-0.9996045,0,0,1,575.94296,-611.00001)"
id="g4778"
inkscape:label="Layer 1">
<g
transform="matrix(-1,0,0,1,575.99999,611)"
id="g4780"
style="display:inline">
<rect
style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:none;stroke:none;stroke-width:4;marker:none;enable-background:accumulate"
id="rect4782"
width="96.037987"
height="96"
x="-438.00244"
y="345.36221"
transform="scale(-1,1)" />
<path
style="font-style:normal;font-variant:normal;font-weight:500;font-stretch:normal;font-size:72.03643799px;line-height:125%;font-family:Ubuntu;-inkscape-font-specification:'Ubuntu Medium';text-align:center;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:middle;display:inline;fill:#808080;fill-opacity:1;stroke:none"
d="m 416.99414,394.29794 c -1.6e-4,2.39907 -0.27582,4.66826 -0.82339,6.8079 -0.5091,1.94254 -1.20352,3.66308 -2.00677,5.25276 l -4.49351,-1.62339 c 1.57229,-3.09619 2.43295,-6.27222 2.43295,-9.52321 0,-2.7333 -0.72241,-4.90158 -2.21365,-6.3943 -1.4208,-1.473 -3.31731,-2.21898 -5.56516,-2.21898 -1.40156,0 -2.71366,0.32821 -3.90803,0.97817 -1.16102,0.58154 -2.26624,1.34417 -3.3122,2.28516 -1.02443,0.92163 -2.04879,1.89287 -3.07222,2.9159 l -0.004,0.004 -0.004,0.008 c -0.94748,0.99694 -1.99616,1.94345 -3.1467,2.84352 l -0.006,0.004 -0.004,0.002 c -1.08248,0.88533 -2.26201,1.62164 -3.54184,2.21278 -1.24821,0.52627 -2.64505,0.79618 -4.20801,0.79618 -0.93743,0 -1.81678,-0.10837 -2.675,-0.25436 l 0,-4.89293 c 0.105,0.006 0.19891,0.029 0.30825,0.029 l 0.83995,0 c 1.74477,0 3.33076,-0.3459 4.73142,-1.04435 1.40936,-0.67832 2.69164,-1.51532 3.84389,-2.5085 l 0.006,-0.004 c 0.002,-0.002 0.004,-0.002 0.006,-0.004 1.18602,-0.98017 2.31813,-2.06333 3.39909,-3.24678 1.0521,-1.15183 2.15405,-2.20212 3.30393,-3.15165 1.13753,-0.93934 2.34793,-1.72798 3.6308,-2.36995 0,0 0.002,0 0.002,0 1.29448,-0.62267 2.76012,-0.93888 4.42109,-0.93888 1.31435,0 2.6865,0.218 4.11698,0.66177 l 0.0103,0.004 0.008,0.002 c 1.44297,0.38464 2.73658,1.0994 3.89975,2.16521 1.15211,1.05569 2.10084,2.48389 2.84051,4.30768 l 0.004,0.008 0.004,0.008 c 0.77142,1.73501 1.17489,4.02886 1.17509,6.87615 l 0,0.002 z m -44.85644,1.22013 c 0,1.46215 -0.44614,2.5279 -1.35095,3.34191 -0.9291,0.83587 -1.976,1.23667 -3.23151,1.23667 -1.25552,0 -2.30449,-0.4008 -3.23359,-1.23667 -0.90482,-0.81401 -1.34888,-1.87976 -1.34888,-3.34191 0,-1.46217 0.44406,-2.52997 1.34888,-3.34398 0.9291,-0.83586 1.97807,-1.23668 3.23359,-1.23668 1.25551,0 2.30241,0.40082 3.23151,1.23668 0.90481,0.81401 1.35095,1.88181 1.35095,3.34398 z"
id="text4098"
inkscape:connector-curvature="0" />
<path
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:none;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:4.00079107;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
d="m 432,393.36133 c 0,23.17268 -18.83506,42 -42.01562,42 -23.18057,0 -42.01758,-18.82732 -42.01758,-42 0,-23.17268 18.83701,-42 42.01758,-42 23.18056,0 42.01562,18.82732 42.01562,42 z m -4.00195,0 c 0,-21.00964 -16.99444,-37.99805 -38.01367,-37.99805 -21.01924,0 -38.01563,16.98841 -38.01563,37.99805 0,21.00963 16.99639,38 38.01563,38 21.01923,0 38.01367,-16.99037 38.01367,-38 z"
id="path4116"
inkscape:connector-curvature="0" />
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 8.2 KiB