]> O.S.I.I.S - jp/crow.git/commitdiff
update readme
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Sun, 31 Oct 2021 08:52:41 +0000 (09:52 +0100)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Sun, 31 Oct 2021 08:52:41 +0000 (09:52 +0100)
Images/crowEdit-small.png [new file with mode: 0644]
Images/showCase2.png [new file with mode: 0644]
README.md
Samples/ShowCase/README.md [new file with mode: 0644]
Samples/ShowCase/ui/showcase.crow
Samples/common/src/Editor.cs
Samples/common/src/SampleBaseForEditor.cs

diff --git a/Images/crowEdit-small.png b/Images/crowEdit-small.png
new file mode 100644 (file)
index 0000000..7b63df2
Binary files /dev/null and b/Images/crowEdit-small.png differ
diff --git a/Images/showCase2.png b/Images/showCase2.png
new file mode 100644 (file)
index 0000000..cfc805b
Binary files /dev/null and b/Images/showCase2.png differ
index b5698d13390c6677d3c4b4add99c5ad3153e3225..a868732dad366b890e52302437658c4317632729 100644 (file)
--- a/README.md
+++ b/README.md
 
 Check the [Tutorials](https://github.com/jpbruyere/Crow/wiki/Tutorials) for a quick introduction.
 
-The `ShowCase`sample will allow you to quickly test IML with live result.
+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/showCase.png">
-       <kbd><img src="https://github.com/jpbruyere/Crow/blob/master/Images/showCase.png" height="200"></kbd>
+  <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>
 
diff --git a/Samples/ShowCase/README.md b/Samples/ShowCase/README.md
new file mode 100644 (file)
index 0000000..cce5f72
--- /dev/null
@@ -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)
+
index 172706c6b3affbb24aeef0e909253690be41641d..19939654cf56d6a634208bbff99c6f742aa0cedd 100644 (file)
@@ -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>
index 0c702745473aa220da128e6e2f8e21ae44cd24c6..25a15c5ad24f546c4a9bfbdb6e76aa64bdbda595 100644 (file)
@@ -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, ""));
index a63ba54e5f34a0728df1186634d1e2b9e77ba2ed..92d0634c741a437cd410664cc975f42b63423163 100644 (file)
@@ -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 ();