From 88dd15fe77a0833d0e0218dd416a65450e9e13a8 Mon Sep 17 00:00:00 2001 From: ahmdkaml Date: Fri, 28 Aug 2026 03:58:32 +0300 Subject: [PATCH] feat(fonts): add global FontRegistry and font selector UI in PropertiesToolbarView --- src/TextForge.Core/Fonts/FontRegistry.cs | 19 +++++ .../Components/PropertiesToolbarView.axaml | 74 ++++++++++++------- 2 files changed, 66 insertions(+), 27 deletions(-) create mode 100644 src/TextForge.Core/Fonts/FontRegistry.cs diff --git a/src/TextForge.Core/Fonts/FontRegistry.cs b/src/TextForge.Core/Fonts/FontRegistry.cs new file mode 100644 index 0000000..dce5b54 --- /dev/null +++ b/src/TextForge.Core/Fonts/FontRegistry.cs @@ -0,0 +1,19 @@ +using System.Collections.Generic; + +namespace TextForge.Core.Fonts; + +public static class FontRegistry +{ + /// + /// Global collection of fonts available across all document modules. + /// + public static IReadOnlyList AvailableFonts { get; } = + [ + "Segoe UI", + "Inter", + "Arial", + "Calibri", + "Times New Roman", + "Consolas" + ]; +} diff --git a/src/TextForge.Desktop/Views/Components/PropertiesToolbarView.axaml b/src/TextForge.Desktop/Views/Components/PropertiesToolbarView.axaml index 1565b4a..836adcb 100644 --- a/src/TextForge.Desktop/Views/Components/PropertiesToolbarView.axaml +++ b/src/TextForge.Desktop/Views/Components/PropertiesToolbarView.axaml @@ -1,6 +1,7 @@ - - + - - + + + + + + + +