From e732b84972c7fc5dd224fc9920abdd111377d3f4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Philippe=20Bruy=C3=A8re?= Date: Tue, 2 Feb 2021 20:18:53 +0100 Subject: [PATCH] unbox value type in emitGetSubData, FileDialog enabled for folder only, minimum size for Button in style and no longer in template root group --- Crow/Default.style | 1 + Crow/Templates/Button.template | 2 +- Crow/Templates/FileDialog.template | 2 +- Crow/src/Command.cs | 1 + Crow/src/Interface.cs | 56 +++++++++++++++++----- Crow/src/ItemTemplate.cs | 4 +- Crow/src/Widgets/FileDialog.cs | 25 ++++++---- Samples/DebugLogAnalyzer/DbgLogViewer.cs | 4 +- Samples/common/ui/Interfaces/Divers/0.crow | 12 ++--- 9 files changed, 73 insertions(+), 34 deletions(-) diff --git a/Crow/Default.style b/Crow/Default.style index b99680b1..db754c1b 100644 --- a/Crow/Default.style +++ b/Crow/Default.style @@ -67,6 +67,7 @@ Wrapper { } Button { Caption = "Button"; + MinimumSize = "50,20"; Width = "Fit"; } Label { diff --git a/Crow/Templates/Button.template b/Crow/Templates/Button.template index 14b14a2f..c46da8c6 100644 --- a/Crow/Templates/Button.template +++ b/Crow/Templates/Button.template @@ -1,5 +1,5 @@ - + Width="100%" Margin="0" MouseDoubleClick="./onFileSelectDblClick">