November 2018
Intermediate to advanced
1150 pages
24h 11m
English
Starting with the easy part, let’s first move our hard-coded colors and icon pixel size from NavigationButton into Style.qml:
readonly property color colourNavigationBarBackground: "#000000" readonly property color colourNavigationBarFont: "#ffffff" readonly property int pixelSizeNavigationBarIcon: 42
We now need to think about how we want to size the elements of our button. We have an icon which we want to be square, so the width and height will be the same. Next, to that, we have a text description that will be the same height as the icon but will be wider:

The width of the entire component is the width of the ...
Read now
Unlock full access