Skip to content

Commit 15645f8

Browse files
authored
Merge pull request #108 from dremin/win-11-shortcuts
Windows 11 support
2 parents 3d80895 + a6a3008 commit 15645f8

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

RetroBar/Controls/Clock.xaml

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<UserControl x:Class="RetroBar.Controls.Clock"
22
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
33
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
MouseLeftButtonUp="Clock_OnMouseLeftButtonUp"
45
MouseDoubleClick="Clock_OnMouseDoubleClick">
56
<TextBlock Style="{DynamicResource Clock}"
67
Text="{Binding ClockText}"

RetroBar/Controls/Clock.xaml.cs

+8
Original file line numberDiff line numberDiff line change
@@ -120,5 +120,13 @@ private void MenuItem_OnClick(object sender, RoutedEventArgs e)
120120
{
121121
OpenDateTimeCpl();
122122
}
123+
124+
private void Clock_OnMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
125+
{
126+
if (EnvironmentHelper.IsWindows11OrBetter)
127+
{
128+
ShellHelper.ShowNotificationCenter();
129+
}
130+
}
123131
}
124132
}

RetroBar/RetroBar.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
</ItemGroup>
7373

7474
<ItemGroup>
75-
<PackageReference Include="ManagedShell" Version="0.0.127" />
75+
<PackageReference Include="ManagedShell" Version="0.0.132" />
7676
<PackageReference Include="System.Net.Http.Json" Version="5.0.0" />
7777
</ItemGroup>
7878

0 commit comments

Comments
 (0)