Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions CollapseLauncher/XAMLs/MainApp/Pages/SettingsPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -3378,7 +3378,8 @@
</StackPanel>
<NavigationViewItemSeparator Margin="16,16" />
<StackPanel HorizontalAlignment="Center"
Orientation="Horizontal">
Orientation="Horizontal"
ext:UIElementExtensions.CursorType="Hand">
<TextBlock Margin="0,0,6,0"
FontFamily="{ThemeResource FontAwesomeBrand}"
FontSize="24"
Expand Down Expand Up @@ -3418,7 +3419,7 @@
FontFamily="{ThemeResource FontAwesomeBrand}"
FontSize="24"
Foreground="{ThemeResource AccentColor}"
PointerPressed="Egg"
PointerPressed="RevealDedication"
Text="&#xE499;" />
</StackPanel>
</StackPanel>
Expand Down
17 changes: 13 additions & 4 deletions CollapseLauncher/XAMLs/MainApp/Pages/SettingsPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -777,11 +777,20 @@ private async void SelectBackgroundImg(object sender, RoutedEventArgs e)
await ImageBackgroundManager.Shared.SetGlobalCustomBackground(file);
}

private int _eggsAttempt = 1;
private void Egg(object sender, PointerRoutedEventArgs e)
private int _dedicationClicksRemaining = 10;
private void RevealDedication(object sender, PointerRoutedEventArgs e)
{
if (_eggsAttempt++ >= 10)
HerLegacy.Visibility = Visibility.Visible;
if (HerLegacy.Visibility == Visibility.Visible || --_dedicationClicksRemaining != 0)
return;

HerLegacy.Visibility = Visibility.Visible;
HerLegacy.UpdateLayout();
HerLegacy.StartBringIntoView(new BringIntoViewOptions
{
AnimationDesired = true,
VerticalAlignmentRatio = 0,
VerticalOffset = SettingsSearchBoxGrid.ActualHeight
});
}

private void EnableHeaderMouseEvent(object sender, RoutedEventArgs e)
Expand Down
Loading