lipido / kargos

KDE Plasma port of GNOME Argos and OSX BitBar
GNU General Public License v3.0
126 stars 13 forks source link

Configurable tooltip #4

Open lipido opened 7 years ago

lipido commented 7 years ago

@trmdi suggested "It would be more flexible if the tooltip could be changed, for example users could hover over the time icon to see the date, no need to click to display the submenu, it is similar to the default Time date widget." #2

lipido commented 7 years ago

It is a very good idea. But I am not sure how to implement it. What about this:

#!/bin/bash
echo "title"
echo "tooltip text | tooltipmain=true"
echo "tooltip sub | tooltipsub=true"
echo "---"
echo "bla bla"

This will move the 'tooltip text' and 'tooltip sub' lines to the plasmoid tooltip. But... What about of also showing those lines in the plasmoid like regular lines? I think in an additional option like tooltiponly=false (default true, i.e. move the lines to the tooltip)

#!/bin/bash
echo "title"
echo "tooltip text | tooltipmain=true tooltiponly=false"
echo "tooltip sub | tooltipsub=true tooltiponly=false"
echo "---"
echo "bla bla"
trmdi commented 7 years ago

Maybe the tooltip is only needed when users hover mouse over the plasmoid.

lipido commented 7 years ago

Yes, of course. But, I'm talking about what is displayed on the tooltip when the mouse hovers the plasmoid. The line with tooltipmain/tooltipsub indicates the message, which will be only displayed in the tooltip unless the tooltiponly=false which, in such a case, it will be also displayed as a regular message in the bar.

trmdi commented 7 years ago

I also think like you:

#!/bin/bash
echo "title"
echo "tooltip text | position=tooltip-main,dropdown"
echo "tooltip sub | position=tooltip-sub"
echo "---"
echo "bla bla | position=tooltip-sub"
echo "another bla bla"

The default value of postition = dropdown.

trmdi commented 7 years ago

If this is implemented, RSS dropdown could be like that, very handy. img

lipido commented 7 years ago

Cool. But the 'killer' feature of my kargos RSS (and the old KNewsTicker) is the continuous rotating news on the task bar! (no clicks to see news).

Regarding the tooltip feature. Ok, you mean that the tooltip can vary for each selected item (in bar or in dropdown). I would first implement all the BitBar "standard" features in order to reach 1.0 version as soon as possible. But I do not forget this feature!

GM-Script-Writer-62850 commented 3 years ago

was this ever implemented in any form? i'd like to have a tooltip at the line 1 level trying to do this: Screenshot_2021-11-15_08-58-44