From 8a25a19ee73e8b7c0c9726bbb2ce4ec918f4e905 Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Fri, 27 Jan 2017 00:21:48 +0100 Subject: [PATCH] icon menuitem, PopWidth and PopHeight, commands --- Crow.csproj | 7 +++ Default.style | 6 +-- Icons/copy-file.svg | 6 +++ Icons/exit-symbol.svg | 6 +++ Icons/open-file.svg | 6 +++ Icons/paste-on-document.svg | 6 +++ Icons/question.svg | 7 +++ Icons/scissors.svg | 6 +++ Templates/DirectoryView.template | 4 +- Templates/MenuItem.template | 13 ++++-- src/Command.cs | 34 ++++++++++++-- src/GraphicObjects/Button.cs | 15 +++--- src/GraphicObjects/Image.cs | 79 ++++++++++++++++++++------------ src/GraphicObjects/Menu.cs | 6 ++- src/GraphicObjects/MenuItem.cs | 67 +++++++++++++++++++++++---- src/GraphicObjects/Popper.cs | 33 ++++++++----- 16 files changed, 226 insertions(+), 75 deletions(-) create mode 100644 Icons/copy-file.svg create mode 100644 Icons/exit-symbol.svg create mode 100644 Icons/open-file.svg create mode 100644 Icons/paste-on-document.svg create mode 100644 Icons/question.svg create mode 100644 Icons/scissors.svg diff --git a/Crow.csproj b/Crow.csproj index 25e7f10d..d74f12f2 100644 --- a/Crow.csproj +++ b/Crow.csproj @@ -185,6 +185,7 @@ + @@ -294,6 +295,12 @@ + + + + + + diff --git a/Default.style b/Default.style index c4a8279e..89e54719 100644 --- a/Default.style +++ b/Default.style @@ -22,12 +22,10 @@ Menu { VerticalAlignment = Top; } MenuItem { - Height = Fit; - Width = Fit; Background = Transparent; Foreground = LightGray; - Open = {Background = Mantis;Foreground=Jet;} - Close = {Foreground=LightGray;Background=Transparent;} + MouseEnter = {Background = vgradient|0:UnitedNationsBlue|1:Onyx;Foreground=White;} + MouseLeave = {Foreground=LightGray;Background=Transparent;} } MessageBox { Width=200; diff --git a/Icons/copy-file.svg b/Icons/copy-file.svg new file mode 100644 index 00000000..63c2dd37 --- /dev/null +++ b/Icons/copy-file.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/Icons/exit-symbol.svg b/Icons/exit-symbol.svg new file mode 100644 index 00000000..3fbaa0d2 --- /dev/null +++ b/Icons/exit-symbol.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/Icons/open-file.svg b/Icons/open-file.svg new file mode 100644 index 00000000..d5c6a84d --- /dev/null +++ b/Icons/open-file.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/Icons/paste-on-document.svg b/Icons/paste-on-document.svg new file mode 100644 index 00000000..b0a705ee --- /dev/null +++ b/Icons/paste-on-document.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/Icons/question.svg b/Icons/question.svg new file mode 100644 index 00000000..fb8e3d3f --- /dev/null +++ b/Icons/question.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/Icons/scissors.svg b/Icons/scissors.svg new file mode 100644 index 00000000..4b5a2255 --- /dev/null +++ b/Icons/scissors.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/Templates/DirectoryView.template b/Templates/DirectoryView.template index 55d652a9..f7c74a9d 100755 --- a/Templates/DirectoryView.template +++ b/Templates/DirectoryView.template @@ -6,7 +6,7 @@