Index: sources/gui/qml/components/MainMenu.qml =================================================================== diff -u -r50e38888132835a21357dfadff7a9bb1ccfdd334 -r3ef1a4ff361ba1774ad1a6f6170dbb174cadbdd5 --- sources/gui/qml/components/MainMenu.qml (.../MainMenu.qml) (revision 50e38888132835a21357dfadff7a9bb1ccfdd334) +++ sources/gui/qml/components/MainMenu.qml (.../MainMenu.qml) (revision 3ef1a4ff361ba1774ad1a6f6170dbb174cadbdd5) @@ -38,9 +38,10 @@ property int rightTextGaps : 20 property bool hasLogo : false property int currentIndex : 0 - property string currentTitle : titles[currentIndex] + property string currentTitle : titles[currentIndex] === undefined ? null : titles[currentIndex] property bool disable : false property int titlePixelSize : 40 + property color backgroundColor : Colors.backgroundMainMenu /*! * \brief Emits when a menu item pressed @@ -96,7 +97,7 @@ Rectangle { id: _backgroundRect anchors.fill: parent - color: Colors.backgroundMainMenu + color: _root.backgroundColor gradient: Gradient { GradientStop { position: 0.2; color: Qt.lighter(Colors.backgroundMain, 1.2) } GradientStop { position: 0.8; color: Qt.darker (Colors.backgroundMain, 1.2) }