Design Monkey
Weblog of Hylke Bons
Posts tagged “”

Sunday, October 2nd, 2011

SparkleShare Plugins

Yesterday I did some work on adding plugin support to SparkleShare. This feature allows you to write your own plugins in the form of a simple XML file. It’s possible to preset an address or a complete address + repository, as well as which backend to use (only Git and experimental Mercurial at this point):

<?xml version="1.0" encoding="UTF-8"?>
<sparkleshare>
  <plugin>
    <info>
      <name>Red Hat UX Team Hub</name>
      <description>Internal server for the UX team</description>
      <icon>redhat.png</icon>
      <backend>Git</backend>
    </info>
    <address>
      <value>ssh://git@design.bos.lab.redhat.com/</value>
      <example></example>
    </address>
    <path>
      <value></value>
      <example>/project</example>
    </path>
  </plugin>
</sparkleshare>

Save the XML file (ending with .xml, and along with the 24×24px icon) in ~/.config/sparkleshare/plugins and it will appear the next time you start SparkleShare. Granted, it’s not a very friendly way to add plugins, but I’ll work on that.

SparkleShare Plugins

By the way: does anyone know how to make the secondary description line in the TreeView row 50% transparent and white when the row is selected? I guess I have to take the selection background colour and the selected text colour and then blend them, but I’ve no idea how… :)





© 2006–2012  Hylke Bons