mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-20 06:50:28 +03:00
enable tooltips in various places
This commit is contained in:
parent
4eb0645474
commit
aacd80df3d
@ -18,7 +18,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import QtQuick 2.1
|
||||
import QtQuick 2.7
|
||||
import QtQuick.Layouts 1.0
|
||||
|
||||
import org.kde.plasma.core 2.0 as PlasmaCore
|
||||
@ -456,6 +456,7 @@ MouseArea {
|
||||
id: configureButton
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
iconSource: "configure"
|
||||
tooltip: i18n("Configure applet")
|
||||
onClicked: {
|
||||
tooltip.visible = false;
|
||||
currentApplet.applet.action("configure").trigger();
|
||||
@ -477,7 +478,7 @@ MouseArea {
|
||||
id: lockButton
|
||||
checkable: true
|
||||
iconSource: checked ? "lock" : "unlock"
|
||||
// tooltip: i18n("Lock/Unlock the parabolic effect for this applet")
|
||||
tooltip: i18n("Lock/Unlock the parabolic effect for this applet")
|
||||
|
||||
onCheckedChanged: {
|
||||
currentApplet.lockZoom = checked;
|
||||
@ -489,6 +490,7 @@ MouseArea {
|
||||
id: closeButton
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
iconSource: "window-close"
|
||||
tooltip: i18n("Remove applet")
|
||||
onClicked: {
|
||||
tooltip.visible = false;
|
||||
if(currentApplet && currentApplet.applet)
|
||||
|
@ -18,7 +18,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import QtQuick 2.0
|
||||
import QtQuick 2.7
|
||||
import QtQuick.Controls 1.4
|
||||
import QtQuick.Layouts 1.3
|
||||
import QtGraphicalEffects 1.0
|
||||
@ -162,6 +162,7 @@ PlasmaCore.FrameSvgItem {
|
||||
Switch {
|
||||
id: advancedSwitch
|
||||
checked: plasmoid.configuration.advanced
|
||||
|
||||
onPressedChanged: {
|
||||
if(pressed)
|
||||
plasmoid.configuration.advanced = !checked;
|
||||
@ -290,6 +291,8 @@ PlasmaCore.FrameSvgItem {
|
||||
|
||||
text: i18n("Add")
|
||||
iconSource: "list-add"
|
||||
tooltip: i18n("Add a new dock")
|
||||
|
||||
|
||||
onClicked: dock.addNewDock()
|
||||
|
||||
@ -307,6 +310,7 @@ PlasmaCore.FrameSvgItem {
|
||||
iconSource: "edit-delete"
|
||||
opacity: enabled ? 1 : 0
|
||||
//enabled: dock.docksCount > 1
|
||||
tooltip: i18n("Remove current dock")
|
||||
|
||||
onClicked: dock.removeDock()
|
||||
}
|
||||
@ -319,6 +323,7 @@ PlasmaCore.FrameSvgItem {
|
||||
|
||||
text: i18n("Quit")
|
||||
iconSource: "application-exit"
|
||||
tooltip: i18n("Quit Latte")
|
||||
|
||||
onClicked: dock.closeApplication()
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
import QtQuick 2.0
|
||||
import QtQuick 2.7
|
||||
import QtQuick.Controls 1.4
|
||||
import QtQuick.Layouts 1.3
|
||||
import QtGraphicalEffects 1.0
|
||||
@ -77,7 +77,7 @@ PlasmaComponents.Page {
|
||||
Layout.leftMargin: units.smallSpacing * 2
|
||||
text: i18n("Indicator for active window group")
|
||||
checked: plasmoid.configuration.dotsOnActive
|
||||
// tooltip: i18n("Grouped windows show both a line and a dot when \none of them is active")
|
||||
tooltip: i18n("Grouped windows show both a line and a dot when \none of them is active")
|
||||
visible: plasmoid.configuration.advanced
|
||||
|
||||
onClicked: {
|
||||
@ -146,8 +146,7 @@ PlasmaComponents.Page {
|
||||
Layout.leftMargin: units.smallSpacing * 2
|
||||
text: i18n("Show progress information for tasks")
|
||||
checked: plasmoid.configuration.smartLaunchersEnabled
|
||||
// tooltip: i18n("Show a beautiful progress animation e.g. when copying \nfiles with Dolphin")
|
||||
|
||||
tooltip: i18n("Show a beautiful progress animation e.g. when copying \nfiles with Dolphin")
|
||||
|
||||
onClicked: {
|
||||
plasmoid.configuration.smartLaunchersEnabled = checked
|
||||
@ -159,7 +158,7 @@ PlasmaComponents.Page {
|
||||
Layout.leftMargin: units.smallSpacing * 2
|
||||
text: i18n("Show indicator for audio streams")
|
||||
checked: plasmoid.configuration.indicateAudioStreams
|
||||
// tooltip: i18n("Show an audio indicator for the user to mute/unmute an app")
|
||||
tooltip: i18n("Show an audio indicator for the user to mute/unmute an app")
|
||||
visible: plasmoid.configuration.advanced
|
||||
|
||||
onClicked: {
|
||||
@ -172,7 +171,7 @@ PlasmaComponents.Page {
|
||||
Layout.leftMargin: units.smallSpacing * 2
|
||||
text: i18n("Activate tasks through mouse wheel")
|
||||
checked: plasmoid.configuration.mouseWheelActions
|
||||
// tooltip: i18n("Enable/Disable the mouse wheel actions in order to cycle through tasks")
|
||||
tooltip: i18n("Enable/Disable the mouse wheel actions in order to cycle through tasks")
|
||||
visible: plasmoid.configuration.advanced
|
||||
|
||||
onClicked: {
|
||||
|
@ -108,7 +108,7 @@ PlasmaComponents.Page {
|
||||
Layout.leftMargin: units.smallSpacing * 2
|
||||
text: i18n("Decrease applets size when it is needed")
|
||||
checked: plasmoid.configuration.autoDecreaseIconSize
|
||||
// tooltip: i18n("Applets size is decreased automatically when the contents \nexceed the maximum length")
|
||||
tooltip: i18n("Applets size is decreased automatically when the contents \nexceed the maximum length")
|
||||
|
||||
onClicked: {
|
||||
plasmoid.configuration.autoDecreaseIconSize = checked
|
||||
@ -119,7 +119,7 @@ PlasmaComponents.Page {
|
||||
Layout.leftMargin: units.smallSpacing * 2
|
||||
text: i18n("Add launchers only in the corresponding area")
|
||||
checked: plasmoid.configuration.addLaunchersInTaskManager
|
||||
// tooltip: i18n("Launchers are added only in the taskmanager and not as plasma applets")
|
||||
tooltip: i18n("Launchers are added only in the taskmanager and not as plasma applets")
|
||||
|
||||
onClicked: {
|
||||
plasmoid.configuration.addLaunchersInTaskManager = checked;
|
||||
@ -133,7 +133,7 @@ PlasmaComponents.Page {
|
||||
enabled: !(dock.visibility.mode === Latte.Dock.AlwaysVisible
|
||||
|| dock.visibility.mode === Latte.Dock.WindowsGoBelow)
|
||||
|
||||
// tooltip: i18n("Remove the BypassWindowManagerHint flag from the window")
|
||||
tooltip: i18n("Remove the BypassWindowManagerHint flag from the window.\nThe dock wont be above windows which are set at 'Always On Top'")
|
||||
|
||||
onCheckedChanged: {
|
||||
dock.dockWinBehavior = checked
|
||||
@ -260,7 +260,7 @@ PlasmaComponents.Page {
|
||||
text: i18n("Alternative Session")
|
||||
checked: globalSettings.currentSession === Latte.Dock.AlternativeSession
|
||||
checkable: true
|
||||
// tooltip: i18n("Sometimes the current layout of your panels is not sufficient \nfor example when you are travelling. Latte provides you with a full \nalternative sessionn to work on.")
|
||||
tooltip: i18n("Sometimes the current layout of your panels is not sufficient \nfor example when you are travelling. Latte provides you with a full \nalternative sessionn to work on.")
|
||||
|
||||
onClicked: {
|
||||
if (globalSettings.currentSession === Latte.Dock.DefaultSession) {
|
||||
@ -296,7 +296,7 @@ PlasmaComponents.Page {
|
||||
text: i18n("Add Spacer")
|
||||
Layout.fillWidth: true
|
||||
Layout.alignment: Qt.AlignLeft
|
||||
// tooltip: i18n("Add a spacer to separate applets")
|
||||
tooltip: i18n("Add a spacer to separate applets")
|
||||
|
||||
onClicked: {
|
||||
dockConfig.addPanelSpacer()
|
||||
@ -307,7 +307,7 @@ PlasmaComponents.Page {
|
||||
iconSource: "edit-delete"
|
||||
text: i18n("Remove Tasks")
|
||||
enabled: dock.tasksPresent()
|
||||
// tooltip: i18n("Remove Latte plasmoid")
|
||||
tooltip: i18n("Remove Latte plasmoid")
|
||||
|
||||
onClicked: {
|
||||
dock.removeTasksPlasmoid();
|
||||
|
Loading…
x
Reference in New Issue
Block a user