Commits

Maxim Moiseev  committed 4ca284a

attempt to add logo.

  • Participants
  • Parent commits 68968b5

Comments (0)

Files changed (4)

File src/cleesmic/AppManifest.xml

     <sdp:Name>Cleesmic</sdp:Name>
     <sdp:Description>clck.ru plugin for Seesmic Desktop 2</sdp:Description>
     <sdp:Version>0.0.1.0</sdp:Version>
+    <!--<sdp:LogoUrl>clck.png</sdp:LogoUrl>-->
     <sdp:Vendor>Maxim Moiseev maxim.moiseev@gmail.com</sdp:Vendor>
     <sdp:Copyright>2010 (c) Maxim Moiseev</sdp:Copyright>
     <sdp:HomepageUrl>http://clck.ru</sdp:HomepageUrl>

File src/cleesmic/CleesmicPlugin.fs

 
 open System
 open System.Net
+open System.Windows
+open System.Windows.Markup
 open System.ComponentModel.Composition
 open Seesmic.Sdp.Extensibility
+open Seesmic.Sdp.Utils
 
 module Plugin =
     let Id = "{16B52BAE-3448-434A-964F-2A6EC3796E3F}"
             with get () = Plugin.Id
 
         member this.Icon
-            with get () = null
+            with get () =
+                XamlReader.Load "<DataTemplate><Image Source=\"/cleesmic;component/clck.png\" Width=\"78\" Height=\"23\" /></DataTemplate>"
+                    :?> DataTemplate
+
 
         member this.Text
             with get () = Plugin.Name
             client.DownloadStringAsync <| Uri(requestFor longUrl)
 
     member this.Id = (this :> IShortUrlProvider).Id
-    member this.Text = (this :> IShortUrlProvider).Text
+    member this.Text = (this :> IShortUrlProvider).Text
+    member this.Icon = (this :> IShortUrlProvider).Icon

File src/cleesmic/clck.png

Added
New image

File src/cleesmic/cleesmic.fsproj

     <OutputType>Library</OutputType>
     <AssemblyName>cleesmic</AssemblyName>
     <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
-    <RootNamespace></RootNamespace>
+    <RootNamespace>
+    </RootNamespace>
     <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
     <SilverlightApplication>true</SilverlightApplication>
     <SupportedCultures>
     <GenerateSilverlightManifest>true</GenerateSilverlightManifest>
     <XapFilename>cleesmic.xap</XapFilename>
     <SilverlightManifestTemplate>AppManifest.xml</SilverlightManifestTemplate>
-    <SilverlightAppEntry></SilverlightAppEntry>
+    <SilverlightAppEntry>
+    </SilverlightAppEntry>
     <TestPageFileName>test.html</TestPageFileName>
     <AllowCrossTargeting>true</AllowCrossTargeting>
     <ProjectTypeGuids>{A1591282-1198-4647-A2B1-27E5FF5F6F3B};{f2a71f9b-5d33-465a-a702-920d77279786}</ProjectTypeGuids>
     <None Include="AppManifest.xml" />
     <Compile Include="AssemblyInfo.fs" />
     <Compile Include="CleesmicPlugin.fs" />
+    <Content Include="clck.png">
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+    </Content>
   </ItemGroup>
   <ItemGroup>
     <Reference Include="mscorlib" />