audio_player_mini.edc 6.91 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
/*****************************************************************************
 * Copyright © 2015 VideoLAN, VideoLabs SAS
 *****************************************************************************
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
 *****************************************************************************/
/*
 * By committing to this project, you allow VideoLAN and VideoLabs to relicense
 * the code to a different OSI approved license, in case it is required for
 * compatibility with the Store
 *****************************************************************************/
collections
{
    base_scale: 1.8;
    group
    {
        name: "audio_player";
      parts {
            part{
                name: "hub_background";
                type: RECT;
                description{
                    state: "default" 0.0;
36
                    color: 245 245 245 255; // grey
37 38 39
                    aspect: 5.0 15.0;
                    aspect_preference: HORIZONTAL;
                    min: 0 80;
40 41 42 43 44 45 46 47 48 49
                }
            }
            part{
                name: "swallow.progress";
                type: SWALLOW;
                description {
                    rel1 {
                       relative: 0.0 0.0;
                       to: "hub_background";
                    }
50
                    rel2 {
51 52 53 54
                       relative: 1.0 0.2;
                       to: "hub_background";
                    }
                }
55
           }
56 57 58 59 60 61 62 63 64 65 66
            part{
                name: "hub_button";
                type: RECT;
                description{
                    visible: 0;
                    rel1{
                        relative: 0.0 0.2;
                        offset: 0 5;
                        to: "hub_background";
                    }
                    rel2{
67
                        relative: 0.8 0.95;
68 69 70 71 72 73
                        to: "hub_background";
                    }
                }
            }
            part {
                name: "swallow.title";
74
                type: TEXT;
75
                description {
76 77
                    color: 0 0 0 255; // black
                    visible: 1;
78
                    rel1 {
79 80
                        relative: 1.2 0.0;
                        to: "swallow.cover";
81 82
                    }
                    rel2 {
83 84
                        relative: 0.0 0.5;
                        to: "swallow.previous";
85
                    }
86
                     text {
87
                        text: "title bla bla bla bla bla bla moulaf gruik pwet";
88 89
                        size: 22;
                        ellipsis: 0;
90
                        align: 0 0;
91
                    }
92 93 94 95
                }
            }
            part {
                name: "swallow.subtitle";
96
                type: TEXT;
97
                description {
98
                    color:  70 70 70 255; // grey/black
99
                    rel1 {
100 101
                        relative: 1.2 0.5;
                        to: "swallow.cover";
102 103
                    }
                    rel2 {
104 105
                        relative: 0.0 1.0;
                        to: "swallow.previous";
106
                    }
107
                    text {
108
                        text: "subtitle bla bla bla bla bla bla moulaf gruik pwet";
109 110
                        size: 20;
                        ellipsis: 0;
111
                        align: 0 0;
112
                    }
113 114 115 116 117 118 119 120 121
                }
            }
            part {
                name: "swallow.cover";
                type: SWALLOW;
                description {
                    aspect: 1.0 1.0;
                    aspect_preference: VERTICAL;
                    color: 255 0 0 255; // transparent grey
122
                    align: 0 0;
123 124 125 126 127
                    rel1 {
                        relative: 0.0 0.0;
                        to: "hub_button";
                    }
                    rel2 {
128
                        relative: 0.15 1.0;
129 130 131 132 133 134
                        to: "hub_button";
                        to_x: "hub_button";
                        to_y: "hub_button";
                    }
                }
            }
135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
            part {
                name: "expand_region";
                type: RECT;
                description {
                    color: 0 0 0 0; // transparent
                    rel1 {
                        relative: 0.0 0.2;
                        to: "hub_background";
                   }
                    rel2 {
                        relative: 0.0 1.0;
                        to: "swallow.previous";
                   }
                }
            }
150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166
            part {
                name: "swallow.previous";
                type: SWALLOW;
                description {
                    aspect: 0.9 0.9;
                    aspect_preference: VERTICAL;
                    color: 255 0 0 255; // transparent grey
                    rel1 {
                        relative: -2.0 0.0;
                        to: "swallow.play";
                    }
                    rel2 {
                        relative: 1.0 1.0;
                        to: "swallow.play";
                    }
                }
            }
167 168 169 170
            part {
                name: "swallow.play";
                type: SWALLOW;
                description {
171
                    aspect: 0.9 0.9;
172 173 174
                    aspect_preference: VERTICAL;
                    color: 255 0 0 255; // transparent grey
                    rel1 {
175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195
                        relative: -2.0 0.0;
                        to: "swallow.next";
                    }
                    rel2 {
                        relative: 1.0 1.0;
                        to: "swallow.next";
                    }
                }
            }
            part {
                name: "swallow.next";
                type: SWALLOW;
                description {
                    aspect: 0.9 0.9;
                    aspect_preference: VERTICAL;
                    color: 255 0 0 255; // transparent grey
                    align: 0.5 0.5;
                    rel1 {
                        relative: 1.0 0.0;
                        to_y: "hub_button";
                        offset: -100 0;
196 197 198 199 200 201 202 203 204 205
                    }
                    rel2 {
                        relative: 1.0 1.0;
                        to_y: "hub_button";
                    }
                }
            }
        } //parts
    }
}