diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-10-31 09:52:41 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-10-31 09:52:41 +0100 |
| commit | 24bfc35fcb088ff6e8597c9c7e6b9a020dde228c (patch) | |
| tree | 58fcbe697485fd611779b44bb22d505a8c8cf1d0 | |
| parent | f9058ecea3c4dd28f27c1cc12fcd7ee9c22ac17a (diff) | |
update readme
| -rw-r--r-- | Images/crowEdit-small.png | bin | 0 -> 47216 bytes | |||
| -rw-r--r-- | Images/showCase2.png | bin | 0 -> 82652 bytes | |||
| -rw-r--r-- | README.md | 6 | ||||
| -rw-r--r-- | Samples/ShowCase/README.md | 10 | ||||
| -rw-r--r-- | Samples/ShowCase/ui/showcase.crow | 8 | ||||
| -rw-r--r-- | Samples/common/src/Editor.cs | 2 | ||||
| -rw-r--r-- | Samples/common/src/SampleBaseForEditor.cs | 2 |
7 files changed, 19 insertions, 9 deletions
diff --git a/Images/crowEdit-small.png b/Images/crowEdit-small.png Binary files differnew file mode 100644 index 00000000..7b63df2d --- /dev/null +++ b/Images/crowEdit-small.png diff --git a/Images/showCase2.png b/Images/showCase2.png Binary files differnew file mode 100644 index 00000000..cfc805b9 --- /dev/null +++ b/Images/showCase2.png @@ -37,11 +37,11 @@ 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 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 (); |