From 2f10015229529b7de359f9389acf1b566ed53a24 Mon Sep 17 00:00:00 2001 From: Qrakhen Date: Sun, 23 Nov 2025 00:14:56 +0100 Subject: [PATCH] editor line numbers --- Qrakhen.Qamp.Editor/App.xaml | 6 +++- Qrakhen.Qamp.Editor/Controls/EditorFrame.xaml | 36 +++++++++++++------ .../Controls/EditorFrame.xaml.cs | 6 ++-- .../Converters/Converters.xaml | 5 +++ .../Converters/LineCountConverter.cs | 26 ++++++++++++++ 5 files changed, 65 insertions(+), 14 deletions(-) create mode 100644 Qrakhen.Qamp.Editor/Converters/Converters.xaml create mode 100644 Qrakhen.Qamp.Editor/Converters/LineCountConverter.cs diff --git a/Qrakhen.Qamp.Editor/App.xaml b/Qrakhen.Qamp.Editor/App.xaml index b3cfd06..03fdbf0 100644 --- a/Qrakhen.Qamp.Editor/App.xaml +++ b/Qrakhen.Qamp.Editor/App.xaml @@ -3,6 +3,10 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:Qrakhen.Qamp.Editor"> - + + + + + diff --git a/Qrakhen.Qamp.Editor/Controls/EditorFrame.xaml b/Qrakhen.Qamp.Editor/Controls/EditorFrame.xaml index 9addae4..68da6fc 100644 --- a/Qrakhen.Qamp.Editor/Controls/EditorFrame.xaml +++ b/Qrakhen.Qamp.Editor/Controls/EditorFrame.xaml @@ -4,11 +4,12 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:local="clr-namespace:Qrakhen.Qamp.Editor.Controls" + xmlns:converters="clr-namespace:Qrakhen.Qamp.Editor.Converters" mc:Ignorable="d" - Background="#161718" + Background="#222324" Focusable="True" d:DesignHeight="450" d:DesignWidth="800"> - +