From e7f82a9a83435724a1c19efba2d2259014fd4482 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kon=C3=AD=C4=8Dek?= Date: Sun, 1 Aug 2010 01:38:47 +0000 Subject: [PATCH] Context actions popup has pencil icon. git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@6340 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- .../Project/ICSharpCode.SharpDevelop.csproj | 2 + .../ContextActionsBulbControl.xaml | 40 ++++++++++++------ .../ContextActionsBulbControl.xaml.cs | 3 +- .../ContextActions/bulb.png | Bin 0 -> 1120 bytes .../ContextActions/pencil.png | Bin 0 -> 456 bytes 5 files changed, 32 insertions(+), 13 deletions(-) create mode 100644 src/Main/Base/Project/Src/Services/RefactoringService/ContextActions/bulb.png create mode 100644 src/Main/Base/Project/Src/Services/RefactoringService/ContextActions/pencil.png diff --git a/src/Main/Base/Project/ICSharpCode.SharpDevelop.csproj b/src/Main/Base/Project/ICSharpCode.SharpDevelop.csproj index 2ee7b8a7e4..32fcf36896 100644 --- a/src/Main/Base/Project/ICSharpCode.SharpDevelop.csproj +++ b/src/Main/Base/Project/ICSharpCode.SharpDevelop.csproj @@ -364,6 +364,8 @@ + + Never diff --git a/src/Main/Base/Project/Src/Services/RefactoringService/ContextActions/ContextActionsBulbControl.xaml b/src/Main/Base/Project/Src/Services/RefactoringService/ContextActions/ContextActionsBulbControl.xaml index 30694a9e3b..8ecba49a41 100644 --- a/src/Main/Base/Project/Src/Services/RefactoringService/ContextActions/ContextActionsBulbControl.xaml +++ b/src/Main/Base/Project/Src/Services/RefactoringService/ContextActions/ContextActionsBulbControl.xaml @@ -1,11 +1,13 @@  + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:local="clr-namespace:ICSharpCode.SharpDevelop.Refactoring" + xmlns:aero="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"> - + + + M 0 0 L 2 3 L 4 0 Z @@ -18,17 +20,31 @@ - + - - + + - - - + + + + + + + + + diff --git a/src/Main/Base/Project/Src/Services/RefactoringService/ContextActions/ContextActionsBulbControl.xaml.cs b/src/Main/Base/Project/Src/Services/RefactoringService/ContextActions/ContextActionsBulbControl.xaml.cs index 174d655fb0..f9401c6d1a 100644 --- a/src/Main/Base/Project/Src/Services/RefactoringService/ContextActions/ContextActionsBulbControl.xaml.cs +++ b/src/Main/Base/Project/Src/Services/RefactoringService/ContextActions/ContextActionsBulbControl.xaml.cs @@ -24,6 +24,7 @@ namespace ICSharpCode.SharpDevelop.Refactoring public ContextActionsBulbControl() { InitializeComponent(); + this.IsOpen = false; } public event EventHandler ActionExecuted @@ -37,7 +38,7 @@ namespace ICSharpCode.SharpDevelop.Refactoring get { return isOpen; } set { isOpen = value; - this.Header.Opacity = isOpen ? 1.0 : 0.5; + this.Header.Opacity = isOpen ? 1.0 : 1.0; this.Header.BorderThickness = isOpen ? new Thickness(1, 1, 1, 0) : new Thickness(1); this.ActionsTreeView.Visibility = isOpen ? Visibility.Visible : Visibility.Collapsed; } diff --git a/src/Main/Base/Project/Src/Services/RefactoringService/ContextActions/bulb.png b/src/Main/Base/Project/Src/Services/RefactoringService/ContextActions/bulb.png new file mode 100644 index 0000000000000000000000000000000000000000..052d9ba85da87cd21c24f9c68b89ae43f884b3d5 GIT binary patch literal 1120 zcmeHE`%6;~6u*8e%S8D`ME0Nu6cxeBO05XKU&EyX9V_ik)|yLt;6yERMGKSLgJL6; zqO!tPS&60AG9oowSk5%OtI1k>=-l1zHg(>|ruXiiZhu3+b~vBUhjTa__?&ZDCe2Kk zIe#XCAPJJJj2(i;3;1`&6oJEvli7mAlV3Lv`!AeVX|Gn)-ag`MOAWRqM+Y|XgR3To(j3MThe_k?&JSR+ zNYDSAP3r1C<@}@>G-*6$&Cq}vcW78oHV~P-XMfb255WVZvk(Gu2r3|`gpne^i@{q8 z{!;LrhCl_3s$s0$@al$MuYX!!*J^lfFc{j~+q>Rf>gdqE@2EBRRek7uVCjG2{DKbk z={(pq+^Ti=>xRwMo^Lg7?6$lAj>meJ_)+7;9=NSd;ID*06&JkDhps?K3n3kl)j-w& zc@L;NK-B_ucf{3*`&x10&FIjJF?RzuQWqL-rTnib;$3w7AyD^$)&u>h+iNW{{N#;u1ce*pl#<)Huo literal 0 HcmV?d00001 diff --git a/src/Main/Base/Project/Src/Services/RefactoringService/ContextActions/pencil.png b/src/Main/Base/Project/Src/Services/RefactoringService/ContextActions/pencil.png new file mode 100644 index 0000000000000000000000000000000000000000..c60192dfc09a3cddcf76feaf900bafecfb729f76 GIT binary patch literal 456 zcmV;(0XP1MP)pF8FWQhbW?9;ba!ELWdKlNX>N2bPDNB8 zb~7$DE;UJt{NMlp0YynfK~y+TV_={Z+*@KQd12nfo z?x7~bb*H8}{r~a!^#AVW{~wQ5{QvRxF!6?*oaq1m?&{+I7v@I(|9n3G|JR!t z|Nng1OqwA#`>p>!+Yli_1Hop6&a;vr~-ok1pB|q0KRH*9IG1cG z)A_$DLG1sbbkYAWW;pzRvnmmo;7${70LYmjLk@O({C{(P<^Qkem;JvoC-#4&lMrz( yfcbM*xAj_(L31)y|HnCr{*Q1FCd~j`0R{j8JSydUkfb>P0000= literal 0 HcmV?d00001