Skip to content

Commit

Permalink
Patreon dialog tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
rocksdanister committed Apr 10, 2024
1 parent 2fb5c46 commit debd677
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 6 additions & 2 deletions src/Lively/Lively.UI.WinUI/Services/DialogService.cs
Expand Up @@ -207,15 +207,19 @@ public async Task ShowAboutDialogAsync()

public async Task ShowPatreonSupportersDialogAsync()
{
await new ContentDialog()
var dlg = new ContentDialog()
{
Title = i18n.GetString("TitlePatreon/Text"),
Content = new PatreonSupportersView(),
PrimaryButtonText = i18n.GetString("TextBecomePatreonMember/Content"),
SecondaryButtonText = i18n.GetString("Cancel/Content"),
DefaultButton = ContentDialogButton.Primary,
XamlRoot = App.Services.GetRequiredService<MainWindow>().Content.XamlRoot,
}.ShowAsyncQueue();
};
dlg.Resources["ContentDialogMinWidth"] = 640;

if (await dlg.ShowAsyncQueue() == ContentDialogResult.Primary)
LinkUtil.OpenBrowser("https://rocksdanister.github.io/lively/coffee/");
}

public async Task ShowControlPanelDialogAsync()
Expand Down
Expand Up @@ -21,8 +21,8 @@
<Border Grid.Row="0" CornerRadius="5">
<WebView2
x:Name="WebView"
Width="640"
Height="360"
Height="500"
HorizontalAlignment="Stretch"
CoreWebView2Initialized="WebView_CoreWebView2Initialized"
DefaultBackgroundColor="Transparent"
NavigationStarting="WebView_NavigationStarting"
Expand Down Expand Up @@ -61,6 +61,7 @@
Grid.Row="1"
Margin="0,5,0,0"
HorizontalAlignment="Center"
Opacity="0.75"
Style="{ThemeResource BodyTextBlockStyle}">
Thanks to all the members who support this project.
</TextBlock>
Expand Down

0 comments on commit debd677

Please sign in to comment.