Skip to content

Commit

Permalink
Merge pull request #108 from dremin/win-11-shortcuts
Browse files Browse the repository at this point in the history
Windows 11 support
  • Loading branch information
dremin authored Oct 6, 2021
2 parents 3d80895 + a6a3008 commit 15645f8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions RetroBar/Controls/Clock.xaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<UserControl x:Class="RetroBar.Controls.Clock"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
MouseLeftButtonUp="Clock_OnMouseLeftButtonUp"
MouseDoubleClick="Clock_OnMouseDoubleClick">
<TextBlock Style="{DynamicResource Clock}"
Text="{Binding ClockText}"
Expand Down
8 changes: 8 additions & 0 deletions RetroBar/Controls/Clock.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,13 @@ private void MenuItem_OnClick(object sender, RoutedEventArgs e)
{
OpenDateTimeCpl();
}

private void Clock_OnMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
{
if (EnvironmentHelper.IsWindows11OrBetter)
{
ShellHelper.ShowNotificationCenter();
}
}
}
}
2 changes: 1 addition & 1 deletion RetroBar/RetroBar.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="ManagedShell" Version="0.0.127" />
<PackageReference Include="ManagedShell" Version="0.0.132" />
<PackageReference Include="System.Net.Http.Json" Version="5.0.0" />
</ItemGroup>

Expand Down

0 comments on commit 15645f8

Please sign in to comment.