aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-10-31 09:52:41 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-10-31 09:52:41 +0100
commit24bfc35fcb088ff6e8597c9c7e6b9a020dde228c (patch)
tree58fcbe697485fd611779b44bb22d505a8c8cf1d0 /Samples
parentf9058ecea3c4dd28f27c1cc12fcd7ee9c22ac17a (diff)
update readme
Diffstat (limited to 'Samples')
-rw-r--r--Samples/ShowCase/README.md10
-rw-r--r--Samples/ShowCase/ui/showcase.crow8
-rw-r--r--Samples/common/src/Editor.cs2
-rw-r--r--Samples/common/src/SampleBaseForEditor.cs2
4 files changed, 16 insertions, 6 deletions
diff --git a/Samples/ShowCase/README.md b/Samples/ShowCase/README.md
new file mode 100644
index 00000000..cce5f72f
--- /dev/null
+++ b/Samples/ShowCase/README.md
@@ -0,0 +1,10 @@
+The `ShowCase`sample will allow you to quickly test IML with live result.
+
+<p align="center">
+ <a href="https://github.com/jpbruyere/Crow/blob/master/Images/showCase2.png">
+ <kbd><img src="https://github.com/jpbruyere/Crow/blob/master/Images/showCase2.png" height="200"></kbd>
+ </a>
+</p>
+
+Please report bugs and issues on [GitHub](https://github.com/jpbruyere/Crow/issues)
+
diff --git a/Samples/ShowCase/ui/showcase.crow b/Samples/ShowCase/ui/showcase.crow
index 172706c6..19939654 100644
--- a/Samples/ShowCase/ui/showcase.crow
+++ b/Samples/ShowCase/ui/showcase.crow
@@ -1,10 +1,10 @@
<?xml version="1.0"?>
<HorizontalStack Background="DarkGrey" >
<VerticalStack Width="25%">
- <HorizontalStack Height="Fit" Margin="2" Background="Onyx">
- <Image Margin="2" Width="16" Height="16" Path="#Crow.Icons.level-up.svg" MouseClick="./goUpDirClick"
- Background="Jet" MouseEnter="{Background=Grey}" MouseLeave="{Background=Jet}" />
- <TextBox Text="{²CurrentDir}" Margin="2"/>
+ <HorizontalStack Height="Fit" Margin="3" Background="Onyx" Spacing="2">
+ <TextBox Text="{²CurrentDir}" Margin="2" ClipToClientRect="true"/>
+ <Image Margin="2" Width="20" Height="20" Path="#Crow.Icons.level-up.svg" MouseClick="./goUpDirClick" Focusable="true"
+ Background="Grey" MouseEnter="{Background=SeaGreen}" MouseLeave="{Background=Grey}" Tooltip="go the the parent directory" />
</HorizontalStack>
<DirectoryView Margin="1" Name="dv" CurrentDirectory="{CurrentDir}" SelectedItemChanged="Dv_SelectedItemChanged">
<Template>
diff --git a/Samples/common/src/Editor.cs b/Samples/common/src/Editor.cs
index 0c702745..25a15c5a 100644
--- a/Samples/common/src/Editor.cs
+++ b/Samples/common/src/Editor.cs
@@ -263,7 +263,7 @@ namespace Crow
disableSuggestions = true;
- if (IFace.Shift) {
+ if (e.Modifiers.HasFlag(Modifier.Shift)) {
for (int l = lineStart; l <= lineEnd; l++) {
if (Text[lines[l].Start] == '\t')
update (new TextChange (lines[l].Start, 1, ""));
diff --git a/Samples/common/src/SampleBaseForEditor.cs b/Samples/common/src/SampleBaseForEditor.cs
index a63ba54e..92d0634c 100644
--- a/Samples/common/src/SampleBaseForEditor.cs
+++ b/Samples/common/src/SampleBaseForEditor.cs
@@ -325,7 +325,7 @@ namespace Samples
protected void textView_KeyDown (object sender, Crow.KeyEventArgs e) {
if (Ctrl) {
if (e.Key == Glfw.Key.W) {
- if (Shift)
+ if (e.Modifiers.HasFlag(Modifier.Shift))
CMDRedo.Execute ();
else
CMDUndo.Execute ();