Skip to content

armgit / nota

Public Imported from GitHub
0

Nota — a free DAW for macOS, Windows and Linux. No subscription, no account — just open it and make music.

Add engine version to info

Egor Khindikaynen24d3deaa8486
diff --git a/src/managed/Nota.App/AboutWindow.cs b/src/managed/Nota.App/AboutWindow.cs
index 51d31518..324ebf27 100644
--- a/src/managed/Nota.App/AboutWindow.cs
+++ b/src/managed/Nota.App/AboutWindow.cs
@@ -1,10 +1,13 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright (c) 2026 Egor Khindikaynen (Nota). See LICENSES/ for license terms.
+using System;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Layout;
using Avalonia.Media;
+using Avalonia.Media.Imaging;
+using Avalonia.Platform;
using Microsoft.Extensions.DependencyInjection;
using Nota.Application;
@@ -27,21 +30,47 @@ public sealed class AboutWindow : NotaWindow
Spacing = 8,
VerticalAlignment = VerticalAlignment.Center,
};
- panel.Children.Add(new TextBlock
+
+ // Brand header — logo beside name + versions, same as the welcome screen.
+ var header = new Grid
+ {
+ ColumnDefinitions = new ColumnDefinitions("Auto,*"),
+ Margin = new Thickness(0, 0, 0, 4),
+ };
+ var logo = new Image { Width = 64, Height = 64, VerticalAlignment = VerticalAlignment.Center };
+ try
+ {
+ using var s = AssetLoader.Open(new Uri("avares://Nota.App/Assets/logo.png"));
+ logo.Source = new Bitmap(s);
+ }
+ catch { /* decorative */ }
+ Grid.SetColumn(logo, 0);
+ header.Children.Add(logo);
+
+ var brand = new StackPanel
+ {
+ Margin = new Thickness(16, 0, 0, 0),
+ Spacing = 2,
+ VerticalAlignment = VerticalAlignment.Center,
+ };
+ brand.Children.Add(new TextBlock
{
Text = "Nota", FontSize = 26, FontWeight = FontWeight.SemiBold,
Foreground = Brush("Brush.TextPrimary"),
});
- panel.Children.Add(new TextBlock
+ brand.Children.Add(new TextBlock
{
Classes = { "Caption" },
Text = $"Version {AppInfo.Version}",
});
- panel.Children.Add(new TextBlock
+ brand.Children.Add(new TextBlock
{
Classes = { "Caption" },
Text = $"Engine {build.Version}",
});
+ Grid.SetColumn(brand, 1);
+ header.Children.Add(brand);
+ panel.Children.Add(header);
panel.Children.Add(new TextBlock
{
Classes = { "Caption" },
diff --git a/src/managed/Nota.App/WelcomeWindow.cs b/src/managed/Nota.App/WelcomeWindow.cs
index b6d52542..ab5c357c 100644
--- a/src/managed/Nota.App/WelcomeWindow.cs
+++ b/src/managed/Nota.App/WelcomeWindow.cs
@@ -16,6 +16,8 @@ using Avalonia.Layout;
using Avalonia.Media;
using Avalonia.Media.Imaging;
using Avalonia.Platform;
+using Microsoft.Extensions.DependencyInjection;
+using Nota.Application;
namespace Nota.App;
@@ -78,7 +80,7 @@ public sealed class WelcomeWindow : NotaWindow
brand.Children.Add(new TextBlock
{
Classes = { "Caption" },
- Text = $"Version {AppInfo.Version} · Desktop DAW",
+ Text = $"Version {AppInfo.Version} · Engine {App.Services.GetRequiredService<EngineBuildInfo>().Version} · Desktop DAW",
});
Grid.SetColumn(brand, 1);
header.Children.Add(brand);