From 2937dc695a03c6359494a0f1a9224766b6d1aa04 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Philippe=20Bruy=C3=A8re?= Date: Wed, 7 Feb 2018 16:09:04 +0100 Subject: [PATCH] file dialog improvments, window title colors property in window class --- Crow.csproj | 1 + Default.style | 10 ++++ Templates/CheckBox2.template | 7 +++ Templates/FileDialog.template | 54 ++++++++++--------- Templates/MessageBox.template | 4 +- Templates/ToolWindow.template | 4 +- Templates/Window.template | 4 +- Tests/Interfaces/Divers/0.crow | 2 +- Tests/Interfaces/Unsorted/testFileDialog.crow | 2 +- src/GraphicObjects/DirectoryView.cs | 47 +++++++++++++--- src/GraphicObjects/FileDialog.cs | 28 ++++++++-- src/GraphicObjects/Window.cs | 30 +++++++++++ src/StyleReader.cs | 4 ++ 13 files changed, 154 insertions(+), 43 deletions(-) create mode 100644 Templates/CheckBox2.template diff --git a/Crow.csproj b/Crow.csproj index 13cab16d..c45642b5 100644 --- a/Crow.csproj +++ b/Crow.csproj @@ -359,6 +359,7 @@ + diff --git a/Default.style b/Default.style index 07689b50..98c10255 100644 --- a/Default.style +++ b/Default.style @@ -136,4 +136,14 @@ HSVSpinner { Minimum = 0; Maximum = 1; SmallIncrement = 0.01; +} +TxtInFileDialog { + Margine = 1; + Font = droid, 12; +} +CheckBoxAlt { + Template= #Crow.Templates.CheckBox2.template; + Background = Transparent; + Checked={Background=DarkSlateGray;Foreground=LightGray;}; + Unchecked = {Background=Transparent;Foreground=DimGray;}; } \ No newline at end of file diff --git a/Templates/CheckBox2.template b/Templates/CheckBox2.template new file mode 100644 index 00000000..db61dd1a --- /dev/null +++ b/Templates/CheckBox2.template @@ -0,0 +1,7 @@ + + \ No newline at end of file diff --git a/Templates/FileDialog.template b/Templates/FileDialog.template index 7eba6828..62a7dc6d 100644 --- a/Templates/FileDialog.template +++ b/Templates/FileDialog.template @@ -4,11 +4,11 @@ MouseEnter="./onBorderMouseEnter" MouseLeave="./onBorderMouseLeave"> - - - - - - - + + + + + + + + + +