From c8f471ac5c1fb28e3c8dd75477a7d013da046009 Mon Sep 17 00:00:00 2001 From: pfg Date: Sun, 12 Mar 2017 10:27:21 -0700 Subject: [PATCH] Start adding cf file icon --- ShiftOS.WinForms/Applications/FileSkimmer.cs | 2 ++ .../Properties/Resources.Designer.cs | 21 +++++++++++++----- ShiftOS.WinForms/Resources/fileiconcf.bmp | Bin 0 -> 1195 bytes ShiftOS.WinForms/ShiftOS.WinForms.csproj | 2 ++ ShiftOS_TheReturn/FileSkimmerBackend.cs | 3 +++ 5 files changed, 23 insertions(+), 5 deletions(-) create mode 100644 ShiftOS.WinForms/Resources/fileiconcf.bmp diff --git a/ShiftOS.WinForms/Applications/FileSkimmer.cs b/ShiftOS.WinForms/Applications/FileSkimmer.cs index 2881dc0..ffc76e7 100644 --- a/ShiftOS.WinForms/Applications/FileSkimmer.cs +++ b/ShiftOS.WinForms/Applications/FileSkimmer.cs @@ -233,6 +233,8 @@ namespace ShiftOS.WinForms.Applications return Properties.Resources.fileicon10; case FileType.TextFile: return Properties.Resources.fileicon2; + case FileType.CommandFormat: + //return Properties.Resources.fileiconcf; default: return Properties.Resources.fileicon1; } diff --git a/ShiftOS.WinForms/Properties/Resources.Designer.cs b/ShiftOS.WinForms/Properties/Resources.Designer.cs index 6628f0b..107f12d 100644 --- a/ShiftOS.WinForms/Properties/Resources.Designer.cs +++ b/ShiftOS.WinForms/Properties/Resources.Designer.cs @@ -10,8 +10,9 @@ namespace ShiftOS.WinForms.Properties { using System; - - + using System.Drawing; + + /// /// A strongly-typed resource class, for looking up localized strings, etc. /// @@ -27,7 +28,7 @@ namespace ShiftOS.WinForms.Properties { private static global::System.Resources.ResourceManager resourceMan; private static global::System.Globalization.CultureInfo resourceCulture; - + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] internal Resources() { } @@ -459,7 +460,7 @@ namespace ShiftOS.WinForms.Properties { return ((System.Drawing.Bitmap)(obj)); } } - + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// @@ -469,7 +470,17 @@ namespace ShiftOS.WinForms.Properties { return ((System.Drawing.Bitmap)(obj)); } } - + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap fileiconcf { + get { + object obj = ResourceManager.GetObject("fileiconcf", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// diff --git a/ShiftOS.WinForms/Resources/fileiconcf.bmp b/ShiftOS.WinForms/Resources/fileiconcf.bmp new file mode 100644 index 0000000000000000000000000000000000000000..8db9711cba1614d7749ad867df83d94b7f5b0c56 GIT binary patch literal 1195 zcmeAS@N?(olHy`uVBq!ia0vp^S|H591|*LjJ{irxz_>3nB%&n3*T*V3KUXg?B|j-u zuOhbqD9^xPV_#8_n4FzjqL7rDo|$K>^nUk#C56lsTcvPQUjyF)=hTc$kE){7;3~h6 zMhJ1(0FE1&_nsU?XD6}dTi#a0!zN?>!XfNYSkzLEl1NlCV?QiN}Sf^&XR zs)DJWsh)w79hZVlQA(Oskc%5sGmvMilu=SrV5P5LUS6(OZmgGIl&)`RX=$l%V5Dzk zqzhD`TU?n}l31aeSF8*&0%C?sYH@N=Wx+BPBHt7!yUnAb)?f zjs+N#jhW8Q0mVV?P70o`&Sr*|W@frZdWH-P8WT$=?)GMO6lmYC(zQrXR98o5k&Cvn zlwwBm#0T70lsXfxsO{X-V$-*qg>zfe+64-?erSEszYw-TjKx*ZWy9vMEf)*UsX8^y zh)sKT`~Ewg-J275mrdCcXU_7{$M3U$rEK>?RrkZ(W^cB1e{B(soy+aRw$jq>{l*y| zuccmFRr~J#MVa20ToF>O$3;U=bNX|iU-vX*a(RpO)D#P?8a0~*Cs|wH``89O3!f~U z`p+zq`&Vs3u5g*kDvO|_UP0d6r%x9y3$A?n-R_z9n~i6j9Fo>Ym|N8?`|v2CjkBgg zBF$$HyLcX3s%!6`g+c#pB2R`MSuJuQLe+7S4D+IAORId6V!q5cBf`4*fBo-O$KCHd zeO0D^#a{YYwY*7=bKz-&eSJKOD|oi4?>H0kX>+^5FU4PBuElZ=ui56rhi*Bc7n9?3 zeX-QFL#ij$(t3|Sd@B;=bfJ*h_w>_wf8P~#IxgBW7JKa!x-(5==KaNjE z7R-K2G&wmp&RCQiFSX+E=DyO{%R4z)940+mq{4slo+OpuQ`sm&;OQf>BbHKkQ9!n0CBJDJ{xWS#uB$#YwEPma*-BVL_Z zL1$&m7FC~|mC>FO`em7!nqaa{UeD&h&TA^p911^g{apN`OzZ5jeOqhS_pN-fIBxOc z!ocj9D^lWHkGZbJ!d!OqS?tw@EmBUUZ!;Vx-3*^T%Ro=qSN7^O<;|ugy>gl@?Op#u r7X2>08NJ&4_MYzY+KbQgvyQXJoELldU-n%qsEqM+^>bP0l+XkKY&_A@ literal 0 HcmV?d00001 diff --git a/ShiftOS.WinForms/ShiftOS.WinForms.csproj b/ShiftOS.WinForms/ShiftOS.WinForms.csproj index 62df12a..d865c62 100644 --- a/ShiftOS.WinForms/ShiftOS.WinForms.csproj +++ b/ShiftOS.WinForms/ShiftOS.WinForms.csproj @@ -594,6 +594,7 @@ + @@ -607,6 +608,7 @@ + diff --git a/ShiftOS_TheReturn/FileSkimmerBackend.cs b/ShiftOS_TheReturn/FileSkimmerBackend.cs index 36e07ec..090dc8e 100644 --- a/ShiftOS_TheReturn/FileSkimmerBackend.cs +++ b/ShiftOS_TheReturn/FileSkimmerBackend.cs @@ -94,6 +94,8 @@ namespace ShiftOS.Engine //No, not "sex" - ShiftOS EXecutable. xD case "sex": return FileType.Executable; + case "cf": + return FileType.CommandFormat; default: return FileType.Unknown; } @@ -178,6 +180,7 @@ namespace ShiftOS.Engine Lua, Python, Filesystem, + CommandFormat, Unknown } }