/* vim: set sw=3 ts=3 sts=3 expandtab: */
group {
   name: "ecdb/config_inwin/background";

   parts {
      part {
         name: "base";
         type: RECT;

         description {
            state: "default" 0.0;
            color: 0 0 0 0;

            rel1 {
               relative: 0.0 0.0;
               offset: 0 0;
            }

            rel2 {
               relative: 1.0 1.0;
               offset: -1 -1;
            }
         }

         description {
            state: "active" 0.0;
            inherit: "default" 0.0;
            color: 0 0 0 90;
         }
      }
   }

   programs {
      program {
         name: "set_active";
         signal: "ecdb,config_inwin,back,show";
         source: "ecdb";
         action: STATE_SET "active" 0.0;
         target: "base";
         transition: DECELERATE 0.2;
      }

      program {
         name: "set_default";
         signal: "ecdb,config_inwin,back,hide";
         source: "ecdb";
         action: STATE_SET "default" 0.0;
         target: "base";
         transition: DECELERATE 0.2;
      }
   }
}

group {
   name: "ecdb/config_inwin/popup";

   parts {
      part {
         name: "back";
         mouse_events: 0;
         scale: 1;

         description {
            state: "default" 0.0;
            color: 255 255 255 0;
            max: 308 128;

            rel1 {
               relative: 0.0 0.0;
               offset: 0 0;
            }

            rel2 {
               relative: 1.0 1.0;
               offset: -1 -1;
            }

            image {
               normal: "background.png";
            }
         }

         description {
            state: "active" 0.0;
            inherit: "default" 0.0;
            color: 255 255 255 210;
         }
      }

      part {
         name: "ecdb.table";
         type: TABLE;
         scale: 1;

         description {
            state: "default" 0.0;
            color: 255 255 255 0;
            max: 300 120;

            rel1 {
               relative: 0.0 0.0;
               offset: 0 0;
            }

            rel2 {
               relative: 1.0 1.0;
               offset: -1 -1;
            }

            table {
               homogeneous: TABLE;
               padding: 0 0;
               align: 0.5 0.5;
            }
         }

         description {
            state: "active" 0.0;
            inherit: "default" 0.0;
            color: 255 255 255 255;
         }
      }
   }

   programs {
      program {
         name: "expand";
         signal: "ecdb,config_inwin,popup,show";
         source: "ecdb";
         action: STATE_SET "active" 0.0;
         target: "back";
         target: "ecdb.table";
         transition: DECELERATE 0.2;
      }

      program {
         name: "collapse";
         signal: "ecdb,config_inwin,popup,hide";
         source: "ecdb";
         action: STATE_SET "default" 0.0;
         target: "back";
         target: "ecdb.table";
         transition: DECELERATE 0.2;
      }
   }
}