Re: WidgetsTemplets.xc/Widgets.xc

Published by soulza on

#112202
soulza
Participant

this new clock caused me a few problems , here is my config, note the AM and PM shows (needs to be lowered a pixel or two ;)

shot_057.jpg

/**
 * Widgets templates.
 */
{
  “clock”: {
    “enabled”: true,
    “layer”: “top”,
    “type”: “extrafield”,
    “formats”: [
      {
        “updateEvent”: “ON_EVERY_SECOND”,
        “x”: -10,
        “y”: 41,
        “width”: 300,
        “height”: 55,
        “screenHAlign”: “right”,
        “shadow”: {
          “enabled”: true,
          “distance”: 0,             // (in pixels)     / offset distance / дистанция смещения
          “angle”: 0,                // (0.0 .. 360.0)  / offset angle    / угол смещения
          “color”: “0x000000”,       // “0xXXXXXX”      / color           / цвет
          “alpha”: 70,               // (0 .. 100)      / opacity         / прозрачность
          “blur”: 4,                 // (0.0 .. 255.0)  / blur            / размытие
          “strength”: 2              // (0.0 .. 255.0)  / intensity       / интенсивность
        },
        “textFormat”: { “align”: “right”, “valign”: “center”, “color”: “0xd6c598” },
        “format”: “<font face=’$FieldFont’><textformat leading=’-38′><font size=’28’>{{py:xvm.formatDate(‘%I:%M %p’)}}</font><br></textformat><textformat rightMargin=’120′ leading=’1′><font size=’15’>{{py:xvm.formatDate(‘%Au’)}}<br>{{py:xvm.formatDate(‘%d %bu %Y’)}}</font></textformat></font>”
      }
    ]
  }
}