diff --git a/Design/coffee.png b/Design/coffee.png
new file mode 100644
index 0000000..c6f10f6
Binary files /dev/null and b/Design/coffee.png differ
diff --git a/Design/coffee.svg b/Design/coffee.svg
new file mode 100644
index 0000000..51c589d
--- /dev/null
+++ b/Design/coffee.svg
@@ -0,0 +1,115 @@
+
+
diff --git a/Design/coffee_suspended.pdn b/Design/coffee_suspended.pdn
new file mode 100644
index 0000000..92d5c92
Binary files /dev/null and b/Design/coffee_suspended.pdn differ
diff --git a/Design/coffee_suspended.png b/Design/coffee_suspended.png
new file mode 100644
index 0000000..b9498f7
Binary files /dev/null and b/Design/coffee_suspended.png differ
diff --git a/NeedABreak/MainWindow.xaml.cs b/NeedABreak/MainWindow.xaml.cs
index 00af252..03ecda0 100644
--- a/NeedABreak/MainWindow.xaml.cs
+++ b/NeedABreak/MainWindow.xaml.cs
@@ -23,6 +23,7 @@ You should have received a copy of the GNU General Public License
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
+using System.Windows.Media.Imaging;
namespace NeedABreak
{
@@ -93,6 +94,8 @@ private void LaunchOnStartupMenuItem_Checked(object sender, RoutedEventArgs e)
x => x.SetValue("NeedABreak", System.Reflection.Assembly.GetExecutingAssembly().Location));
}
+ private const string CoffeeSuspendedUri = "pack://application:,,,/NeedABreak;component/coffee_suspended.ico";
+ private const string CoffeeCupUri = "pack://application:,,,/NeedABreak;component/coffee cup.ico";
private CancellationTokenSource _cancellationTokenSource = new CancellationTokenSource();
private bool _imminentLocking = false;
@@ -311,11 +314,13 @@ public void NotifySuspensionStateChanged()
{
viewModel.UpdateSuspendResumeMenuItemToResume();
ShowSuspendBalloonTip();
+ uxTaskbarIcon.IconSource = new BitmapImage(new Uri(CoffeeSuspendedUri, UriKind.Absolute));
}
else
{
viewModel.UpdateSuspendResumeMenuItemToSuspend();
- ShowResumeBalloonTip();
+ ShowResumeBalloonTip();
+ uxTaskbarIcon.IconSource = new BitmapImage(new Uri(CoffeeCupUri, UriKind.Absolute));
}
viewModel.NotifyIsSuspendedChanged();
diff --git a/NeedABreak/MainWindowViewModel.cs b/NeedABreak/MainWindowViewModel.cs
index 9825344..09af618 100644
--- a/NeedABreak/MainWindowViewModel.cs
+++ b/NeedABreak/MainWindowViewModel.cs
@@ -16,19 +16,13 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
You should have received a copy of the GNU General Public License
along with this program. If not, see .
*/
-using NeedABreak.Utils;
using PropertyChanged;
-using System;
-using System.Collections.Generic;
using System.ComponentModel;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace NeedABreak
-{
- [AddINotifyPropertyChangedInterface]
+{
+ [AddINotifyPropertyChangedInterface]
public class MainWindowViewModel : INotifyPropertyChanged
{
public int Seconds { get; set; }
diff --git a/NeedABreak/NeedABreak.csproj b/NeedABreak/NeedABreak.csproj
index 8aec879..7c007f9 100644
--- a/NeedABreak/NeedABreak.csproj
+++ b/NeedABreak/NeedABreak.csproj
@@ -233,7 +233,9 @@
-
+
+
+
diff --git a/NeedABreak/coffee_suspended.ico b/NeedABreak/coffee_suspended.ico
new file mode 100644
index 0000000..f1af785
Binary files /dev/null and b/NeedABreak/coffee_suspended.ico differ