-
Notifications
You must be signed in to change notification settings - Fork 0
Replace default Avalonia about dialog with Conclave-branded modal #55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| <UserControl xmlns="https://github.com/avaloniaui" | ||
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
| xmlns:vm="clr-namespace:Conclave.App.ViewModels" | ||
| x:Class="Conclave.App.Views.Shell.AboutModal" | ||
| x:DataType="vm:ShellVm"> | ||
| <Panel IsVisible="{Binding IsAboutOpen}" IsHitTestVisible="{Binding IsAboutOpen}" | ||
| KeyDown="OnModalKeyDown" | ||
| Focusable="True"> | ||
| <Border Background="#A6000000" PointerPressed="OnBackdropPressed" /> | ||
|
|
||
| <Border Width="420" | ||
| VerticalAlignment="Center" HorizontalAlignment="Center" | ||
| Background="{Binding Tokens.Bg}" | ||
| BorderBrush="{Binding Tokens.BorderHi}" BorderThickness="1" | ||
| CornerRadius="{Binding Tokens.RadLgCorner}" | ||
| Padding="32,28"> | ||
| <Border.Effect> | ||
| <DropShadowEffect BlurRadius="60" OffsetY="20" Opacity="0.5" Color="Black" /> | ||
| </Border.Effect> | ||
|
|
||
| <StackPanel Spacing="10" HorizontalAlignment="Center"> | ||
| <Image Source="avares://Conclave.App/Assets/icon.png" | ||
| Width="72" Height="72" | ||
| HorizontalAlignment="Center" Margin="0,0,0,4" /> | ||
|
|
||
| <TextBlock Text="Conclave" FontSize="22" FontWeight="SemiBold" | ||
| Foreground="{Binding Tokens.Text}" | ||
| HorizontalAlignment="Center" /> | ||
|
|
||
| <TextBlock Text="{Binding AppVersion, StringFormat='Version {0}'}" | ||
| FontSize="11.5" Foreground="{Binding Tokens.TextDim}" | ||
| FontFamily="ui-monospace,SFMono-Regular,Menlo,monospace" | ||
| HorizontalAlignment="Center" /> | ||
|
|
||
| <TextBlock Text="A desktop home for your Claude Code sessions — many at once, each in its own git worktree." | ||
| FontSize="12" Foreground="{Binding Tokens.TextDim}" | ||
| TextWrapping="Wrap" TextAlignment="Center" | ||
| Margin="8,8,8,0" /> | ||
|
|
||
| <TextBlock Text="github.com/Cellcote/Conclave" | ||
| FontSize="11" Foreground="{Binding Tokens.TextMute}" | ||
| FontFamily="ui-monospace,SFMono-Regular,Menlo,monospace" | ||
| HorizontalAlignment="Center" Margin="0,8,0,0" /> | ||
|
|
||
| <TextBlock Text="MIT License · © 2026 Rik Schreurs" | ||
| FontSize="11" Foreground="{Binding Tokens.TextMute}" | ||
| HorizontalAlignment="Center" /> | ||
|
|
||
| <Button Content="Done" Click="OnDone" | ||
| Background="{Binding Tokens.Text}" BorderThickness="0" | ||
| CornerRadius="{Binding Tokens.RadSmCorner}" Padding="18,5" | ||
| Foreground="{Binding Tokens.Bg}" FontSize="12" FontWeight="SemiBold" | ||
| HorizontalAlignment="Center" Margin="0,16,0,0" /> | ||
| </StackPanel> | ||
| </Border> | ||
| </Panel> | ||
| </UserControl> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| using Avalonia.Controls; | ||
| using Avalonia.Input; | ||
| using Avalonia.Interactivity; | ||
| using Avalonia.Markup.Xaml; | ||
| using Conclave.App.ViewModels; | ||
|
|
||
| namespace Conclave.App.Views.Shell; | ||
|
|
||
| public partial class AboutModal : UserControl | ||
| { | ||
| public AboutModal() => InitializeComponent(); | ||
|
|
||
| private void OnBackdropPressed(object? sender, PointerPressedEventArgs e) | ||
| { | ||
| if (DataContext is ShellVm shell) shell.CloseAbout(); | ||
| } | ||
|
|
||
| private void OnDone(object? sender, RoutedEventArgs e) | ||
| { | ||
| if (DataContext is ShellVm shell) shell.CloseAbout(); | ||
| } | ||
|
|
||
| private void OnModalKeyDown(object? sender, KeyEventArgs e) | ||
| { | ||
| if (DataContext is not ShellVm shell || !shell.IsAboutOpen) return; | ||
| if (e.Key == Key.Escape) | ||
| { | ||
| shell.CloseAbout(); | ||
| e.Handled = true; | ||
| } | ||
| } | ||
|
|
||
| private void InitializeComponent() => AvaloniaXamlLoader.Load(this); | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The repo URL is rendered as a plain
TextBlock, so users can't click it to open a browser. Avalonia supportsHyperlinkButtonor you can handle aPointerPressedevent withProcess.Start(new ProcessStartInfo(url) { UseShellExecute = true }). As-is, displaying a URL that does nothing on click may be confusing.