From 286598d30aae6946d2e6ec9c46ed781e7198b5f5 Mon Sep 17 00:00:00 2001 From: Jeremy Demortier <64773074+CyLuGh@users.noreply.github.com> Date: Mon, 21 Oct 2024 08:38:48 +0200 Subject: [PATCH] Revert Skia beta --- src/HierarchyGrid.Skia/HierarchyGrid.Skia.csproj | 10 +++++----- src/HierarchyGrid.Skia/HierarchyGridDrawer.cs | 15 +++++++++++++-- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/src/HierarchyGrid.Skia/HierarchyGrid.Skia.csproj b/src/HierarchyGrid.Skia/HierarchyGrid.Skia.csproj index 8151f91..cd61638 100644 --- a/src/HierarchyGrid.Skia/HierarchyGrid.Skia.csproj +++ b/src/HierarchyGrid.Skia/HierarchyGrid.Skia.csproj @@ -16,11 +16,11 @@ - - - - - + + + + + diff --git a/src/HierarchyGrid.Skia/HierarchyGridDrawer.cs b/src/HierarchyGrid.Skia/HierarchyGridDrawer.cs index bc02dbd..93d056e 100644 --- a/src/HierarchyGrid.Skia/HierarchyGridDrawer.cs +++ b/src/HierarchyGrid.Skia/HierarchyGridDrawer.cs @@ -67,14 +67,25 @@ public static async Task Draw( paint.IsAntialias = true; paint.Color = theme.ForegroundColor; + // Skia 2 + paint.TextSize = 64f; + paint.TextAlign = SKTextAlign.Center; canvas.DrawText( viewModel.StatusMessage ?? "NO MESSAGE", width / 2, height / 2, - SKTextAlign.Center, - font, paint ); + + // TODO Skia 3 + //canvas.DrawText( + // viewModel.StatusMessage ?? "NO MESSAGE", + // width / 2, + // height / 2, + // SKTextAlign.Center, + // font, + // paint + //); } canvas.Flush();