not really known
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
2.5 KiB

  1. //* comment *//
  2. Copyright (C) 2015 Walter Bender
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation, either version 3 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. //* flow:publish *//
  14. if (args.length == 1) {
  15. doPublish(args[0]);
  16. };
  17. //* block:publish *//
  18. var pubBlock = new ProtoBlock('publish');
  19. pubBlock.palette = palettes.dict['facebook'];
  20. blocks.protoBlockDict['publish'] = pubBlock;
  21. pubBlock.staticLabels.push(_('publish'));
  22. pubBlock.adjustWidthToLabel();
  23. pubBlock.oneArgBlock();
  24. pubBlock.defaults.push(_('comment'));
  25. pubBlock.dockTypes[1] = 'textin';
  26. //* palette-icon:facebook *//
  27. <!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd' [
  28. <!ENTITY stroke_color "#86a0d0">
  29. <!ENTITY fill_color "#5f7cb6">
  30. ]><svg enable-background="new 0 0 55.125 55" height="55px" id="Layer_1" version="1.1" viewBox="0 0 55 55" width="55px" x="0px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" y="0px">
  31. <rect
  32. width="45"
  33. height="45"
  34. ry="2.9166667"
  35. x="5"
  36. y="5"
  37. id="rect3"
  38. style="fill:&fill_color;;fill-opacity:1" /><rect
  39. width="38.541668"
  40. height="6.4583335"
  41. ry="0"
  42. x="8.333333"
  43. y="39.583332"
  44. id="rect5"
  45. style="fill:&stroke_color;;fill-opacity:1" /><path
  46. d="m 31.197287,46.165937 -7.8e-5,-16.470834 -4.268255,2.69e-4 0,-6.050269 4.268333,0 0,-5.470427 c 0,0 -0.01379,-3.033899 1.989072,-4.972875 0.810184,-0.78434 1.67477,-1.256236 2.693135,-1.740507 1.144374,-0.544193 3.025673,-0.621305 3.025673,-0.621305 l 5.139209,0.206899 -0.124993,5.594882 -4.516927,0 c 0,0 -0.493513,-0.07261 -1.104322,0.399722 -0.687245,0.531438 -0.636185,1.133186 -0.636185,1.133186 l 3.39e-4,5.470164 6.380834,2.62e-4 -0.248334,6.05 -6.1325,0 -0.08322,16.470833 z"
  47. id="path7"
  48. style="fill:#ffffff;fill-opacity:1;stroke:none" /></svg>
  49. //* palette-fill:facebook *// #7893c6
  50. //* palette-stroke:facebook *// #3a62a5
  51. //* palette-highlight:facebook *// #86a0d0
  52. //* palette-stroke-highlight:facebook *// #5f7cb6