shellscape / Gmail-Notifier-Plus

Gmail Notifier Plus
http://shellscape.org
MIT License
90 stars 26 forks source link

Small Icon - Notification in System Tray is not enough. #10

Closed DustyMustard closed 13 years ago

DustyMustard commented 13 years ago

Can you please change the color of the app's tranparency on new mail? Windows 7 superbar supports the overlay/transparency color of theapplication to change. On new mail have it go another color, as the icon in the system tray.. i never notice it. Thank you/

(example is the foobar2000 wintense component/addon. or certain web browsers when downloading)

shellscape commented 13 years ago

Feel free to fork the project and add that feature. File a pull request when it's complete and I'll merge that feature.

DustyMustard commented 13 years ago

I don;'t understand C++ but here is the code i found on MSDN and another website.

http://msdn.microsoft.com/en-us/library/ff969360.aspx http://www.codeproject.com/KB/vista/SevenGoodiesTaskbarStatus.aspx

Figure 3 – Showing an indeterminate progress state

You can take advantage of progress bar icons for displaying errors too, as demonstrated in next section.

Paused and Error states

You can take advantage of the progress bar icon for displaying an error or paused state. This is accomplished by assigning the TaskbarItemInfo.ProgressState property with either the TaskbarItemProgressState.Error or TaskbarItemProgressState.Paused values. Code in Listing 4 demonstrates how to handle both scenarios by rewriting the worker_RunWorkerCompleted event handler.

'Work completed, maximum value is set Private Sub worker_RunWorkerCompleted(ByVal sender As Object, ByVal e As System.ComponentModel.RunWorkerCompletedEventArgs) Handles worker.RunWorkerCompleted

    If e.Cancelled = True Then
        Me.TaskbarItemInfo.ProgressState = Shell.TaskbarItemProgressState.Paused
    ElseIf e.Error IsNot Nothing Then
        Me.TaskbarItemInfo.ProgressState = Shell.TaskbarItemProgressState.Error
    Else
        ProgressBar1.Value = 100
        TaskbarItemInfo.ProgressValue = 1.0
    End If
End Sub

Listing 4 – Handling Paused and Error states

It is worth mentioning that in the sample application you need to invoke the worker.CancelAsync method in order to make the e variable value change to Cancelled. Figure 4 shows how the progress bar icon appears in the error state.

shellscape commented 13 years ago

Well the source is C#, not c++ and the code you pasted is VB.NET. But I digress.

This isn't on my list of priorities, and personally I think it would be pretty janky. But if someone would like to take the time to add it, I would merge it in.

Thanks for the interest.

On Tue, Apr 5, 2011 at 10:12 AM, kalel83 reply@reply.github.com wrote:

I don;'t understand C++ but here is the code i found on MSDN and another website.

http://msdn.microsoft.com/en-us/library/ff969360.aspx http://www.codeproject.com/KB/vista/SevenGoodiesTaskbarStatus.aspx

Figure 3 – Showing an indeterminate progress state

You can take advantage of progress bar icons for displaying errors too, as demonstrated in next section.

Paused and Error states

You can take advantage of the progress bar icon for displaying an error or paused state. This is accomplished by assigning the TaskbarItemInfo.ProgressState property with either the TaskbarItemProgressState.Error or TaskbarItemProgressState.Paused values. Code in Listing 4 demonstrates how to handle both scenarios by rewriting the worker_RunWorkerCompleted event handler.

 'Work completed, maximum value is set    Private Sub worker_RunWorkerCompleted(ByVal sender As Object,     ByVal e As System.ComponentModel.RunWorkerCompletedEventArgs) Handles worker.RunWorkerCompleted

       If e.Cancelled = True Then            Me.TaskbarItemInfo.ProgressState = Shell.TaskbarItemProgressState.Paused        ElseIf e.Error IsNot Nothing Then            Me.TaskbarItemInfo.ProgressState = Shell.TaskbarItemProgressState.Error        Else            ProgressBar1.Value = 100            TaskbarItemInfo.ProgressValue = 1.0        End If    End Sub Listing 4 – Handling Paused and Error states

It is worth mentioning that in the sample application you need to invoke the worker.CancelAsync method in order to make the e variable value change to Cancelled. Figure 4 shows how the progress bar icon appears in the error state.

Reply to this email directly or view it on GitHub: https://github.com/shellscape/Gmail-Notifier-Plus/issues/10#comment_959117

DustyMustard commented 13 years ago

Well, as it is now. If you have icons set to small, having the notification that you have new mail be on the entire other side of the monitor in the system tray doesn't really call ones attention. until there is some other way of being notified, i'm gonna pass on this app as having a notification in the system tray on new mail doesn't catch my attention, and there is no way i'm setting the superbar to large icons (damn you microsoft for not allowing overlay on small icons, that would of been perfect.) try it a few hours with small icons you'll see what i mean. If the apps taskbar/superbar icon overlay changed colors entirely, well, tha'd be hard to miss, and it would fit into windows 7 theme... so i don't see how it could be jankey.. but it's up to you.

though just having an icon in the system tray for new mail is better then nothing, so i probably should just keep my mouth shut. sure it will be enough for someone else

shellscape commented 13 years ago

stating that you're going to pass on a free app because it doesn't have X feature doesn't really carry much weight. it's really kinda rude.

if you're looking for something to draw your eye, then enable the flashing of the taskbar. i have that enabled and it works well. see here: http://gyazo.com/73f9fddbfecc534d7b0895aa83baa65c.png

On Tue, Apr 5, 2011 at 10:22 AM, kalel83 reply@reply.github.com wrote:

Well, as it is now. If you have icons set to small, having the notification that you have new mail be on the entire other side of the monitor in the system tray doesn't really call ones attention. until there is some other way of being notified, i'm gonna pass on this app as having a notification in the system tray on new mail doesn't catch my attention, and there is no way i'm setting the superbar to large icons (damn you microsoft for not allowing overlay on small icons, that would of been perfect.)  try it a few hours with small icons you'll see what i mean. If the apps taskbar/superbar icon overlay changed colors entirely, well, tha'd be hard to miss, and it would fit into windows 7 theme... so i don't see how it could be jankey.. but it's up to you.

though just having an icon in the system tray for new mail is better then nothing, so i probably should just keep my mouth shut. sure it will be enough for someone else

Reply to this email directly or view it on GitHub: https://github.com/shellscape/Gmail-Notifier-Plus/issues/10#comment_959179

DustyMustard commented 13 years ago

i didn't mean to be rude, my apologies. just frustrated that the only thing holding me back from implementing it myself is coding experience

DustyMustard commented 13 years ago

well, i guess i'll try the darkside and swap to large icons. gives me a chance to use some different truelaunchbar plugin skins..