Free, open-source file converter. Convert 263 formats offline by drag & drop — images, PDF, Word, Excel, PowerPoint, HWP/HWPX, video, audio, e-books and archives. No upload, no Office needed.
C# audio-converteravaloniabatch-conversionconvertercsharpdocument-converterdocx-to-pdfdotnetdrag-and-dropfile-conversionfile-converterheic-converterhwphwpximage-converterlinuxmacospdf-convertervideo-converterwindows
Update notice: level hint under the pill, wrapped changes line up with their text
KnifeLemonc739d3e926a2
diff --git a/src/Filee.App/Views/UpdateNoticeWindow.axaml b/src/Filee.App/Views/UpdateNoticeWindow.axamlindex 26c4d522..51d20247 100644--- a/src/Filee.App/Views/UpdateNoticeWindow.axaml+++ b/src/Filee.App/Views/UpdateNoticeWindow.axaml@@ -24,13 +24,14 @@</Button><TextBlock x:Name="TitleText" FontWeight="SemiBold" TextWrapping="Wrap" VerticalAlignment="Center" /></DockPanel>- <DockPanel>- <Border x:Name="LevelPill" DockPanel.Dock="Left" CornerRadius="999" Padding="8,2" Margin="0,0,8,0" VerticalAlignment="Top">+ <StackPanel Spacing="4">+ <Border x:Name="LevelPill" HorizontalAlignment="Left" CornerRadius="999" Padding="8,2"><TextBlock x:Name="LevelText" FontSize="11.5" FontWeight="SemiBold" /></Border>- <TextBlock x:Name="LevelHint" Classes="caption" TextWrapping="Wrap" VerticalAlignment="Center" />- </DockPanel>- <TextBlock x:Name="ChangesText" TextWrapping="Wrap" FontSize="12.5" LineHeight="19" />+ <TextBlock x:Name="LevelHint" Classes="caption" TextWrapping="Wrap" />+ </StackPanel>+ <!-- One row per change; a wrapped line lines up with the text, not the bullet -->+ <StackPanel x:Name="ChangesList" Spacing="3" /><TextBlock x:Name="CaptionText" Classes="caption" TextWrapping="Wrap" /><ProgressBar x:Name="Progress" Minimum="0" Maximum="100" IsVisible="False" /><StackPanel x:Name="Buttons" Orientation="Horizontal" Spacing="8" Margin="0,2,0,0">diff --git a/src/Filee.App/Views/UpdateNoticeWindow.axaml.cs b/src/Filee.App/Views/UpdateNoticeWindow.axaml.csindex 9a7a7af1..1ba4d582 100644--- a/src/Filee.App/Views/UpdateNoticeWindow.axaml.cs+++ b/src/Filee.App/Views/UpdateNoticeWindow.axaml.cs@@ -73,8 +73,17 @@ public partial class UpdateNoticeWindow : Window};LevelPill.Background = Brush(fill);LevelText.Foreground = level == UpdateLevel.Required ? Avalonia.Media.Brushes.White : Brush(text);- ChangesText.Text = UpdateTexts.Changes(_updates, _loc);- ChangesText.IsVisible = ChangesText.Text.Length > 0;+ ChangesList.Children.Clear();+ foreach (var line in UpdateTexts.Changes(_updates, _loc).Split(Environment.NewLine, StringSplitOptions.RemoveEmptyEntries))+ {+ var bullet = line.StartsWith("• ", StringComparison.Ordinal);+ var row = new DockPanel();+ if (bullet)+ row.Children.Add(new TextBlock { Text = "•", FontSize = 12.5, Margin = new Thickness(0, 0, 6, 0), [DockPanel.DockProperty] = Dock.Left });+ row.Children.Add(new TextBlock { Text = bullet ? line[2..] : line, FontSize = 12.5, TextWrapping = Avalonia.Media.TextWrapping.Wrap });+ ChangesList.Children.Add(row);+ }+ ChangesList.IsVisible = ChangesList.Children.Count > 0;Progress.IsVisible = _updates.Step == UpdateStep.Downloading;Progress.Value = _updates.DownloadPercent;Buttons.IsVisible = !_updates.IsBusy;