From 7cb2f6fd0bdf065cd66e744a4d1c5f5f556c3c8a Mon Sep 17 00:00:00 2001 From: keyldev Date: Fri, 12 Jun 2026 23:39:08 +0300 Subject: [PATCH] fix(editor): inline paste buttons for credentials on mobile - Android long-press flyout is unreliable (keyboard overlap, empty-field gesture) - clipboard-paste Lucide icon in username/password InnerRightContent - mobile-only; desktop keeps Ctrl+V / right-click --- src/OpenIPC.Viewer.App/Styles/Buttons.axaml | 15 +++++++++++++ src/OpenIPC.Viewer.App/Themes/Theme.axaml | 2 ++ .../Views/Dialogs/CameraEditorContent.axaml | 21 +++++++++++++++++-- .../Dialogs/CameraEditorContent.axaml.cs | 19 +++++++++++++++++ 4 files changed, 55 insertions(+), 2 deletions(-) diff --git a/src/OpenIPC.Viewer.App/Styles/Buttons.axaml b/src/OpenIPC.Viewer.App/Styles/Buttons.axaml index 9d506bf..04f5bed 100644 --- a/src/OpenIPC.Viewer.App/Styles/Buttons.axaml +++ b/src/OpenIPC.Viewer.App/Styles/Buttons.axaml @@ -6,4 +6,19 @@ secondary, ghost, danger variants converge on the Console spec. --> + + + + diff --git a/src/OpenIPC.Viewer.App/Themes/Theme.axaml b/src/OpenIPC.Viewer.App/Themes/Theme.axaml index 35e3ccb..29e967e 100644 --- a/src/OpenIPC.Viewer.App/Themes/Theme.axaml +++ b/src/OpenIPC.Viewer.App/Themes/Theme.axaml @@ -62,6 +62,8 @@ M20,6 L9,17 L4,12 M9,18 L15,12 L9,6 M15,18 L9,12 L15,6 + + M11,14 h10 M16,4 h2 a2,2 0 0 1 2,2 v1.344 M17,18 l4,-4 l-4,-4 M8,4 H6 a2,2 0 0 0 -2,2 v14 a2,2 0 0 0 2,2 h12 a2,2 0 0 0 1.793,-1.113 M9,2 h6 a1,1 0 0 1 1,1 v2 a1,1 0 0 1 -1,1 h-6 a1,1 0 0 1 -1,-1 V3 a1,1 0 0 1 1,-1 Z diff --git a/src/OpenIPC.Viewer.App/Views/Dialogs/CameraEditorContent.axaml b/src/OpenIPC.Viewer.App/Views/Dialogs/CameraEditorContent.axaml index d43051f..b54ed55 100644 --- a/src/OpenIPC.Viewer.App/Views/Dialogs/CameraEditorContent.axaml +++ b/src/OpenIPC.Viewer.App/Views/Dialogs/CameraEditorContent.axaml @@ -64,11 +64,28 @@ - + + + + + + - + + + + + diff --git a/src/OpenIPC.Viewer.App/Views/Dialogs/CameraEditorContent.axaml.cs b/src/OpenIPC.Viewer.App/Views/Dialogs/CameraEditorContent.axaml.cs index 24dec1f..eb5ea00 100644 --- a/src/OpenIPC.Viewer.App/Views/Dialogs/CameraEditorContent.axaml.cs +++ b/src/OpenIPC.Viewer.App/Views/Dialogs/CameraEditorContent.axaml.cs @@ -2,6 +2,7 @@ using System.Threading.Tasks; using Avalonia.Controls; using Avalonia.Interactivity; +using OpenIPC.Viewer.App.Services; using OpenIPC.Viewer.App.ViewModels.Dialogs; namespace OpenIPC.Viewer.App.Views.Dialogs; @@ -22,6 +23,12 @@ public CameraEditorContent() this.FindControl