collections {
   base_scale: 1.0;
   group { name: "main";
      /* TODO: Please replace embedded image files to your application image files. */
      images {
         image: "EDC_EDITOR_EMBEDDED_WATCHFACE_RECT.png" COMP;
         image: "EDC_EDITOR_EMBEDDED_NEEDLE_HOUR_RECT.png" COMP;
         image: "EDC_EDITOR_EMBEDDED_NEEDLE_MINUTE_RECT.png" COMP;
         image: "EDC_EDITOR_EMBEDDED_NEEDLE_SECOND_RECT.png" COMP;
      }
      parts {
         part { name: "bg";
            type: IMAGE;
            scale: 1;
            description { state: "default" 0.0;
               visible: 1;
               /* TODO: Please replace embedded image files to your application image files. */
               image.normal: "EDC_EDITOR_EMBEDDED_WATCHFACE_RECT.png";
               //aspect: 1 1;
               min: 300 300;
               rel1.relative: 0.5 0.5;
               rel2.relative: 0.5 0.5;
            }
         }
         part { name: "date";
            type: TEXT;
            scale: 1;
            description { state: "default" 0.0;
               color: 219 219 219 255;
               fixed: 1 1;
               text {
                  size: 13;
                  font: "Sans";
                  text: "19";
                  align: 0.5 0.5;
                  min: 0 0;
               }
               min: 30 30;
               align: 0.5 1.0;
               fixed: 1 1;
               rel1.to: "bg";
               rel2.to: "bg";
               rel1.relative: 0.795 0.545;
               rel2.relative: 0.795 0.545;
            }
         }
         part { name: "meridiem";
            type: TEXT;
            scale: 1;
            description { state: "default" 0.0;
               color: 255 120 0 255;
               fixed: 1 1;
               text {
                  size: 20;
                  font: "Mono";
                  text: "AM";                  
               }
               min: 150 0;
               fixed: 1 0;
               align: 0.9 0.5;
               rel1.to: "bg";
               rel2.to: "bg";
               rel1.relative: 0.5 0.69;
               rel2.relative: 0.5 0.69;
            }
         }
         part { name: "time";
            type: TEXT;
            scale: 1;
            description { state: "default" 0.0;
               color: 250 250 250 255;
               fixed: 1 1;
               text {
                  size: 20;
                  font: "Mono";
                  text: "12:00";                  
               }
               min: 150 0;
               fixed: 1 0;
               align: 0.5 0.5;
               rel1.to: "bg";
               rel2.to: "bg";
               rel1.relative: 0.5 0.69;
               rel2.relative: 0.5 0.69;
            }
         }
         part { name: "hour";
            type: IMAGE;
            scale: 1;
            mouse_events: 0;
            description { state: "default" 0.0;
               rel1.to: "bg";
               rel2.to: "bg";
               rel1.relative: 0.5 0.0;
               rel2.relative: 0.5 1.0;
               min: 30 0;
               fixed: 1 0;
               /* TODO: Please replace embedded image files to your application image files. */
               image.normal: "EDC_EDITOR_EMBEDDED_NEEDLE_HOUR_RECT.png";
               map.on: 1;
               map.rotation.z: 0;
            }
            description { state: "rotated" 0.0;
               inherit: "default";
               map.rotation.z: 360;
            }
         }
         part { name: "minute";
            type: IMAGE;
            scale: 1;
            mouse_events: 0;
            description { state: "default" 0.0;
               rel1.to: "bg";
               rel2.to: "bg";
               rel1.relative: 0.5 0.0;
               rel2.relative: 0.5 1.0;
               min: 30 0;
               fixed: 1 0;               
               /* TODO: Please replace embedded image files to your application image files. */
               image.normal: "EDC_EDITOR_EMBEDDED_NEEDLE_MINUTE_RECT.png";
               map.on: 1;
               map.rotation.z: 0;
            }
            description { state: "rotated" 0.0;
               inherit: "default";
               map.rotation.z: 360;
            }
         }
         part { name: "second";
            type: IMAGE;
            scale: 1;
            mouse_events: 0;
            description { state: "default" 0.0;
               rel1.to: "bg";
               rel2.to: "bg";
               rel1.relative: 0.5 0.0;
               rel2.relative: 0.5 1.0;
               min: 30 0;
               fixed: 1 0;                 
               /* TODO: Please replace embedded image files to your application image files. */
               image.normal: "EDC_EDITOR_EMBEDDED_NEEDLE_SECOND_RECT.png";
               map.on: 1;
               map.rotation.z: 0;
            }
            description { state: "rotated" 0.0;
               inherit: "default";
               map.rotation.z: 360;
            }
         }
      }
      programs {
         program { name: "load";
            signal: "load";
            source: "";
            action: STATE_SET "rotated" 0.0;
            target: "bg";
            transition: LINEAR 30;
            after: "reset";
         }
         program { name: "reset";
            action: STATE_SET "default" 0.0;
            target: "bg";
            after: "load";
         }
         program { name: "hour_begin";
            signal: "load";
            source: "";
            action: STATE_SET "rotated" 0.0;
            target: "hour";
            transition: LINEAR 216000;
            after: "hour_reset";
         }
         program { name: "hour_reset";
            action: STATE_SET "default" 0.0;
            target: "hour";
            after: "hour_begin";
         }
         program { name: "minute_begin";
            signal: "load";
            source: "";
            action: STATE_SET "rotated" 0.0;
            target: "minute";
            transition: LINEAR 3600;
            after: "minute_begin";
         }
         program { name: "minute_reset";
            action: STATE_SET "default" 0.0;
            target: "minute";
            after: "minute_begin";
         }
         program { name: "second_begin";
            signal: "load";
            source: "";
            action: STATE_SET "rotated" 0.0;
            target: "second";
            transition: LINEAR 60;
            after: "second_reset";
         }
         program { name: "second_reset";
            action: STATE_SET "default" 0.0;
            target: "second";
            after: "second_begin";
         }
      }
   }
}
