From 4e60ccb2ff40c92a13eae451a50388a55f2f0052 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 9 Aug 2018 23:20:20 -0700 Subject: [PATCH] Add tooltips for toolbar buttons --- app/gui/main.qml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/app/gui/main.qml b/app/gui/main.qml index 753170f9..956d9d36 100644 --- a/app/gui/main.qml +++ b/app/gui/main.qml @@ -75,6 +75,11 @@ ApplicationWindow { icon.source: "qrc:/res/update.svg" icon.color: "#0BF200" + ToolTip.delay: 1000 + ToolTip.timeout: 3000 + ToolTip.visible: hovered + ToolTip.text: "Update available for Moonlight" + // Invisible until we get a callback notifying us that // an update is available visible: false @@ -102,6 +107,11 @@ ApplicationWindow { ToolButton { icon.source: "qrc:/res/question_mark.svg" + ToolTip.delay: 1000 + ToolTip.timeout: 3000 + ToolTip.visible: hovered + ToolTip.text: "Help" + // TODO need to make sure browser is brought to foreground. onClicked: Qt.openUrlExternally("https://github.com/moonlight-stream/moonlight-docs/wiki/Setup-Guide"); @@ -115,6 +125,11 @@ ApplicationWindow { // TODO: Implement gamepad mapping then unhide this button visible: false + ToolTip.delay: 1000 + ToolTip.timeout: 3000 + ToolTip.visible: hovered + ToolTip.text: "Gamepad Mapper" + icon.source: "qrc:/res/ic_videogame_asset_white_48px.svg" onClicked: navigateTo("qrc:/gui/GamepadMapper.qml", "Gamepad Mapping") @@ -128,6 +143,11 @@ ApplicationWindow { icon.source: "qrc:/res/settings.svg" onClicked: navigateTo("qrc:/gui/SettingsView.qml", "Settings") + ToolTip.delay: 1000 + ToolTip.timeout: 3000 + ToolTip.visible: hovered + ToolTip.text: "Settings" + Menu { x: parent.width transformOrigin: Menu.TopRight