Added pause and settings icons.

systray
MCARDLE Sean M 2016-11-18 22:18:22 -08:00
parent f3374c44ee
commit 6628030186
2 changed files with 42 additions and 4 deletions

View File

@ -4,9 +4,10 @@
xmlns:local="clr-namespace:WifiSitterGui"
StartupUri="TrayIconControl.xaml">
<Application.Resources>
<Viewbox x:Key="CloseIcon" x:Shared="false" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<Grid>
<Grid Name="backgroundGrid" Width="24" Height="24" Visibility="Visible">
<Grid Name="backgroundGrid" Width="48" Height="48" Visibility="Visible">
<Rectangle Fill="#FF000000" Name="Rect" Visibility="Visible" />
</Grid>
<Path Data="M2.999979,0C3.8000264,0,4.4999763,0.30000305,5.1000115,0.90000927L15.999954,11.700012 26.899959,0.90000927C28.099967,-0.29998779 29.999927,-0.29998779 31.099961,0.90000927 32.299972,2.1000061 32.299972,4 31.099961,5.1000061L20.199958,16 31.099961,26.900009C32.299972,28.100006 32.299972,30 31.099961,31.100006 29.899951,32.300003 27.999931,32.300003 26.899959,31.100006L15.999954,20.200012 5.1000115,31.100006C3.9000017,32.300003 1.9999809,32.300003 0.90000743,31.100006 -0.30000248,29.900009 -0.30000248,28 0.90000743,26.900009L11.800011,16 0.90000743,5.1000061C-0.30000248,3.9000092 -0.30000248,2 0.90000743,0.90000927 1.4999818,0.30000305 2.1999928,0 2.999979,0z" Stretch="Uniform" Fill="#FFFFFFFF" Width="26" Height="26" Margin="0,0,0,0" RenderTransformOrigin="0.5,0.5">
@ -14,7 +15,43 @@
<TransformGroup>
<TransformGroup.Children>
<RotateTransform Angle="0" />
<ScaleTransform ScaleX=".5" ScaleY=".5" />
<ScaleTransform ScaleX="1" ScaleY="1" />
</TransformGroup.Children>
</TransformGroup>
</Path.RenderTransform>
</Path>
</Grid>
</Viewbox>
<Viewbox x:Key="PauseIcon" x:Shared="false" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<Grid>
<Grid Name="backgroundGrid" Width="48" Height="48" Visibility="Visible">
<Rectangle Fill="#FF000000" Name="Rect" Visibility="Visible" />
</Grid>
<Path Data="M20.162003,0L32,0 32,32 20.162003,32z M0,0L11.837997,0 11.837997,32 0,32z" Stretch="Uniform" Fill="#FFFFFFFF" Width="26" Height="26" Margin="0,0,0,0" RenderTransformOrigin="0.5,0.5">
<Path.RenderTransform>
<TransformGroup>
<TransformGroup.Children>
<RotateTransform Angle="0" />
<ScaleTransform ScaleX="1" ScaleY="1" />
</TransformGroup.Children>
</TransformGroup>
</Path.RenderTransform>
</Path>
</Grid>
</Viewbox>
<Viewbox x:Key="SettingsIcon" x:Shared="false" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<Grid>
<Grid Name="backgroundGrid" Width="48" Height="48" Visibility="Visible">
<Rectangle Fill="#FF000000" Name="Rect" Visibility="Visible" />
</Grid>
<Path Data="M15.480948,9.3740862C11.821038,9.349078 8.835932,12.302046 8.8129828,15.962005 8.7910101,19.622958 11.734978,22.608914 15.390982,22.628934 19.05492,22.651914 22.040026,19.712952 22.06798,16.044997 22.093981,12.388043 19.14098,9.3940753 15.480948,9.3740862z M15.536978,0.00018994781C16.92504,0.010184512,18.260975,0.21619097,19.536976,0.55418442L20.067982,4.0571488C21.364001,4.5541366,22.550036,5.2501277,23.598007,6.1201123L26.91197,4.8681282C28.776961,6.7871116,30.152935,9.1710862,30.869,11.835056L28.094954,14.04702C28.197005,14.711014,28.262923,15.391013,28.259016,16.081008L28.257918,16.081008C28.24803,16.779988,28.177962,17.459988,28.063948,18.126973L30.813946,20.369943C30.061016,23.017905,28.655989,25.384883,26.767927,27.287875L23.473984,25.99187C22.413927,26.838876,21.209948,27.517852,19.920033,28.001855L19.339955,31.501813C18.056019,31.822823 16.719961,32.006814 15.332022,31.999823 13.946037,31.992804 12.609978,31.791819 11.326043,31.449813L10.801995,27.946864C9.5119574,27.448853,8.3179877,26.756875,7.2650101,25.886889L3.9580054,27.140874C2.0959458,25.219907,0.71594182,22.834926,0,20.172953L2.7800278,17.964972C2.6729719,17.299987 2.6080305,16.624991 2.6099839,15.921997 2.62097,15.229012 2.6960432,14.548021 2.8039536,13.888025L0.053955107,11.638052C0.80102477,8.9870823,2.2080064,6.6141099,4.0939915,4.7241329L7.3969681,6.0201224C8.453974,5.1601323,9.6610052,4.4851373,10.960931,3.9981435L11.520989,0.50418179C12.812981,0.18019591,14.150993,-0.0068135771,15.536978,0.00018994781z" Stretch="Uniform" Fill="#FFFFFFFF" Width="26" Height="26" Margin="0,0,0,0" RenderTransformOrigin="0.5,0.5">
<Path.RenderTransform>
<TransformGroup>
<TransformGroup.Children>
<RotateTransform Angle="0" />
<ScaleTransform ScaleX="1" ScaleY="1" />
</TransformGroup.Children>
</TransformGroup>
</Path.RenderTransform>

View File

@ -22,11 +22,12 @@
NoLeftClickDelay="True">
<tb:TaskbarIcon.ContextMenu>
<ContextMenu>
<MenuItem Header="Pause for 5 minutes"
<MenuItem Header="Pause for 5 minutes"
Icon="{StaticResource PauseIcon}"
ToolTip="Restores interfaces to original status."
Command="{Binding SendTakeFiveRequest}" />
<MenuItem Header="Status and Settings"
ToolTip=""
Icon="{StaticResource SettingsIcon}"
Command="{Binding LaunchSettingsWindow}" />
<Separator />
<MenuItem Header="Quit"