From 932d8db6bc3ac2be7ba78f1c993039dcc364905b Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Wed, 25 May 2016 11:51:48 -0600 Subject: [PATCH] Changed name and action icon for find my phone plugin, plus added tooltip. Trying to make it more discoverable and less misleading (could look like a gps-based tool). --- .../package/contents/ui/DeviceDelegate.qml | 8 ++++-- .../contents/ui/FullRepresentation.qml | 4 +-- .../findmyphone/kdeconnect_findmyphone.json | 25 ++----------------- 3 files changed, 10 insertions(+), 27 deletions(-) diff --git a/plasmoid/package/contents/ui/DeviceDelegate.qml b/plasmoid/package/contents/ui/DeviceDelegate.qml index 34dfb1952..a4f70eb30 100644 --- a/plasmoid/package/contents/ui/DeviceDelegate.qml +++ b/plasmoid/package/contents/ui/DeviceDelegate.qml @@ -48,7 +48,8 @@ PlasmaComponents.ListItem Layout.fillWidth: true } - PlasmaComponents.Button + //Find my phone + PlasmaComponents.Button { FindMyPhone { id: findmyphone @@ -56,14 +57,16 @@ PlasmaComponents.ListItem } id: ring - iconSource: "preferences-desktop-notification" + iconSource: "question" visible: findmyphone.available + tooltip: i18n("Ring my phone") onClicked: { findmyphone.ring() } } + //SFTP PlasmaComponents.Button { Sftp { @@ -74,6 +77,7 @@ PlasmaComponents.ListItem id: browse iconSource: "document-open-folder" visible: sftp.available + tooltip: i18n("Browse this device") onClicked: { sftp.browse() diff --git a/plasmoid/package/contents/ui/FullRepresentation.qml b/plasmoid/package/contents/ui/FullRepresentation.qml index 99f25ed31..d6c8663d4 100644 --- a/plasmoid/package/contents/ui/FullRepresentation.qml +++ b/plasmoid/package/contents/ui/FullRepresentation.qml @@ -29,10 +29,10 @@ Item { property alias devicesModel: devicesView.model PlasmaExtras.Heading { - width: parent.width + anchors.centerIn: parent level: 3 opacity: 0.6 - text: i18n("No Paired Devices Available") + text: i18n("No paired devices available") visible: devicesView.count==0 } diff --git a/plugins/findmyphone/kdeconnect_findmyphone.json b/plugins/findmyphone/kdeconnect_findmyphone.json index 122315f42..1d7d10c75 100644 --- a/plugins/findmyphone/kdeconnect_findmyphone.json +++ b/plugins/findmyphone/kdeconnect_findmyphone.json @@ -12,7 +12,7 @@ "Name[x-test]": "xxDavid Edmundsonxx" } ], - "Description": "Find your lost phone by making it play an alarm sound ", + "Description": "Find your lost phone by making it play an alarm sound", "Description[ast]": "Alcuentra'l to preséu perdíu faciéndolu sonar ", "Description[ca@valencia]": "Troba el vostra telèfon perdut fent que reproduïsca un so d'alarma ", "Description[ca]": "Troba el vostra telèfon perdut fent que reprodueixi un so d'alarma ", @@ -39,28 +39,7 @@ "Icon": "edit-find", "Id": "kdeconnect_findmyphone", "License": "GPL", - "Name": "Find My Phone", - "Name[ast]": "Alcontrar el mio teléfonu", - "Name[ca@valencia]": "Troba el meu telèfon", - "Name[ca]": "Troba el meu telèfon", - "Name[cs]": "Najít můj telefon", - "Name[de]": "Telefon suchen", - "Name[es]": "Encontrar mi teléfono", - "Name[fi]": "Löydä puhelimeni", - "Name[gl]": "Atopar o móbil", - "Name[it]": "Trova il mio telefono", - "Name[ko]": "내 휴대폰 찾기", - "Name[nl]": "Zoek mijn telefoon", - "Name[pl]": "Znajdź mój telefon", - "Name[pt]": "Descobrir o Meu Telefone", - "Name[pt_BR]": "Encontrar meu telefone", - "Name[ru]": "Поиск телефона", - "Name[sk]": "Nájsť môj telefón", - "Name[sv]": "Hitta min telefon", - "Name[tr]": "Telefonumu Bul", - "Name[uk]": "Знайти телефон", - "Name[x-test]": "xxFind My Phonexx", - "Name[zh_CN]": "找到我的手机", + "Name": "Ring my phone", "ServiceTypes": [ "KdeConnect/Plugin" ],