Subscription date : 28 October 2009
Messages : 415
|
OK so the Gmail applet is progressing well, I've implemented a left-click menu
Now there are still few details to sort out:
- url-links to mail---although whole---do not always open to the mail, but to the inbox,
- i'd like to add a header to this menu, to make it look more cosy
|
matttbe, Friday 26 August 2011 à 05:53
|
|
Subscription date : 24 January 2009
Messages : 12573
|
It looks nice
url-links to mail---although whole---do not always open to the mail, but to the inbox, I think you've this problem with other GMail watchers.
i'd like to add a header to this menu, to make it look more cosy I guess it's just a few more lines to do, something not so hard to do with pygkt |
Subscription date : 28 October 2009
Messages : 415
|
OK i pushed the applet.
I've limited action to opening default browser for now: i don't use mail managers, so if other people request that i'll change it.
I couldn't do the header I wanted for now because apparently Gtk.MenuItem is a tough widget (gtk sucks imo anyways).
Next i'd like to freeze the dock while the menu's up: i've got to find out how to do that. |
Subscription date : 30 November 2007
Messages : 17118
|
I'm afraid you can't do that from Dbus right now. |
Subscription date : 28 October 2009
Messages : 415
|
Well that's one more reason to make a global left-click menu available to the API |
SQP, Saturday 27 August 2011 à 10:12
|
|
Subscription date : 03 July 2010
Messages : 1081
|
Next i'd like to freeze the dock while the menu's up: i've got to find out how to do that.
I wonder what the benefit would be for the user. I'm doing exactly the opposite for my applet : don't freeze the dock or the applet while working, and had to use threads for that.
I want my graphs to update themselves, even with an opened menu. |
Subscription date : 28 October 2009
Messages : 415
|
Well there was a thread about that some time ago. The main thing is that if you use the zoom effect for instance or if your dock auto-hides, then you open a menu and the dock goes on with its normal behaviour and so you end up with a menu hanging alone in the middle of your screen, which is not very neat.
But i understand that you want data to be displayed even then (i don't use graphs or anything myself). |
SQP, Saturday 27 August 2011 à 11:22
|
|
Subscription date : 03 July 2010
Messages : 1081
|
So you just think of preventing the dock from hiding ? (wasn't sure about the "freeze" meaning)
As I use the dock almost as a panel (full size, no effects, reserve space and never hide), I don't often realise the side effects of those hiding and zoom options.
Didn't tested yet, but I like the screens. Your emblems look really nice (wonder how you did that), but I agree with fabounet that it's a nice goal to have a consistant display. Maybe just add an option to choose between quickinfo and emblem.
Some applets like sysmon have a select choice for that :
#l[No;On icon;On label] Display values :
info display = 1
I think that an option "On emblem" would nicely fit. |
Subscription date : 28 October 2009
Messages : 415
|
@SQP: i don't know which version of the applet you have, but there is an option to switch between either emblem or quick-info.
The emblem's just an SVG icon, the code of which is edited to show the numerical values of the counter. |
SQP, Saturday 27 August 2011 à 13:05
|
|
Subscription date : 03 July 2010
Messages : 1081
|
As I said, I didn't tested it yet. I have too much to do atm
The emblem's just an SVG icon, the code of which is edited to show the numerical values of the counter
sure and efficient. nicely done |
Subscription date : 28 October 2009
Messages : 415
|
The downside of using SVG is that you don't have containers nor relative placements. So if you have 1245 unread emails, the numbers would go beyond the icon, and to maintain a centred position, numbers below 10 need to have a preceding 0. If you can't test, or don't need it, no problem |
Subscription date : 26 October 2008
Messages : 1904
|
Shit i only have a yahoo mail account . But it looks really nice well done.
BTW + 10000 for being able to customize the quick info.. |
Subscription date : 28 October 2009
Messages : 415
|
@taiebot: Well i can make one for Yahoo too I guess. Does it provide atom-feed too? or is there an existing python API for it? |
Subscription date : 28 October 2009
Messages : 415
|
@Fabounet: you wanted a similar applet for Twitter right? Do you mean for PMs only or also for the timeline? |
SQP, Sunday 28 August 2011 à 15:11
|
|
Subscription date : 03 July 2010
Messages : 1081
|
you could use different svg for different number range, for example 0-99, 100-999, and 1K+
Forgot to say that as I'm not fully satisfied with those label display (looks OK for almost static data, but works badly IMHO for gauges and graphs), I really welcome every test that try to improve them.
I could use a GMail applet if it don't take too much space.
So now that I pushed my applet, I tested it, and it works nicely. The big emblem should help me keep it small.
I have a proposition to make to improve the configuration page :
I can push it or paste it here if you like. (first group is behaviour but translated as it's common)
|
Subscription date : 28 October 2009
Messages : 415
|
@SQP: Thanks for that.
Why do you want to take off the option not to show any counter on the icon?
I don't necessarily agree with the categorisation between Behaviour and Notification---not that mine made more sense. In fact I am questioning whether there should be two categories at all.
I'm OK with the rest. |
SQP, Sunday 28 August 2011 à 15:37
|
|
Subscription date : 03 July 2010
Messages : 1081
|
The "No" option is the first option of the select (like you have on Sysmon or volume applet)
Groups could be renamed of changed, but I wanted to move on top the "main" settings (in fact those that are not notifications related because this one alone takes 80% space)
I didn't tried, but it could also be nice with the first 3 options out of frames (and the notification checkbox would trigger the whole notifications block, but I'm not sure if it can conflict with other auto-activated widgets)
#[gtk-preferences]
[Configuration]
#F[Behaviour;gtk-execute]
frame3=
#i[1;120] Delay between refreshes (in minutes):
#{How often should the applet look for new mail?}
UPDATE=1
#L[No;On icon;On small emblem;On large emblem] Display unread mails counter
#{Do you want an emblem or a quick-info label to be displayed?}
INFO=small emblem
#F[Notifications;gtk-help]
frame2=
#B[4] Receive notifications for new mail?
NOTIFY=true
#L+[superior;always;different] Which condition?
#{"always" will notify you whenever the number of notifications is not 0; "different" will do so whenever the number of notifications changes; "superior" will notify you whenever it increases (default).}
WHEN=superior
#b Use dialog?
#{Should the applet display a dialogue box with the notification?}
DIA=true
#B- Use animation?
#{Should an animation be applied to the icon?}
ANIM=false
#a Choose animation to use
#{Which animation should the apply to the icon?}
HOW=
#B- Use sound?
#{Should the applet play a sound with the notification?}
SOUND=true
#u Choose sound file (leave empty for default):
#{Several files are available in ~/.config/cairo-dock/third-party/Gmail/snd/}
WAV= |
Subscription date : 28 October 2009
Messages : 415
|
OK. Did you change the code accordingly too? (I guess you did )
You can push if you want, it's fine by me. |
SQP, Sunday 28 August 2011 à 16:33
|
|
Subscription date : 03 July 2010
Messages : 1081
|
No, I just wanted to mockup it and it's so easy to do it directly and get the real output when you know how to do.
It's so easier to discuss with a nice screenshot. I let you finish the job
The first configuration page should also be changed to match the other applets. (matttbe and in demo templates)
Here is the code from Sysmon :
#[gtk-about]
[Icon]
#F[Icon]
frame_maininfo=
#d Name of the dock it belongs to:
dock name =
#s Name of the icon as it will appear in its caption in the dock:
name =
#v
sep_display=
icon=
#j+[0;400] Desired icon size for this applet
#{Set to 0 to use the default applet size}
icon size = 0;0
#b Always display the icon, even when the dock is hidden?
always visi = false
order=
#F[Applet's Handbook]
frame_hand=
#A
handbook=System Monitor
just change the handbook field and you're fine
and if you move the " (in minutes)" to popup info, the string will be already translated (in sysmon). It's better to try to reuse the same strings to reduce translators work.
#i[1;120] Delay between refreshes (in minutes):
I also found that musicPlayer applet got almost the same notification system (just miss the sound), and it don't even use the global notification checkbox. Might be better to copy it's configuration and behaviour :
#F[Action on music change;gtk-preferences]
frame_info=
#B Show tooltips?
enable_dialogs=true
#i[1;30] Time length of tooltips:
#{in seconds.}
time_dialog = 4
#a+ Animation when music changes:
change_animation = wobbly |
Subscription date : 30 November 2007
Messages : 17118
|
about config, using the same as other applets also helps translators (less sentences to translate)
and about the Twitter applet, I'm not a regular user, in my case I just wish I could write quickly to Twitter/Identi.ca a small message.
I think I could be interested in seeing the latest messages (say ~30) from the people I follow (it could be a scroll text in a dialog for instance, or maybe a menu if we ever want to be able to reply), and therefore, being notified about a new message.
so it looks like a "mail applet", but writing would be the main feature.
I'm going to implement quick-info background, but it will be for 2.5 I think, as we are short of time for Oneiric |
|