~ubuntu-branches/ubuntu/karmic/edubuntu-artwork/karmic

« back to all changes in this revision

Viewing changes to art/usplash/usplash-theme-edubuntu.c

  • Committer: Bazaar Package Importer
  • Author(s): Oliver Grawert
  • Date: 2007-03-15 14:51:34 UTC
  • Revision ID: james.westby@ubuntu.com-20070315145134-kk9dy0uxicmbxy3l
Tags: 0.1.0-47
* fix versioning in the default homepage
* update links in the default homepage
* update to new wallpapers
* update to new session splash
* add Seveas' patch for usplash font colors
* fix gdm theme

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
        .pixmap = &pixmap_usplash_640_480,
48
48
 
49
49
        /* Palette indexes */
50
 
        .background             = 0x0,
51
 
        .progressbar_background = 0x7,
52
 
        .progressbar_foreground = 0x156,
53
 
        .text_background        = 0x0,
54
 
        .text_foreground        = 0x15,
55
 
        .text_success           = 0x33,
56
 
        .text_failure           = 0x144,
 
50
        .background             = 0,
 
51
        .progressbar_background = 7,
 
52
        .progressbar_foreground = 68,
 
53
        .text_background        = 0,
 
54
        .text_foreground        = 159,
 
55
        .text_success           = 47,
 
56
        .text_failure           = 83,
57
57
 
58
58
        /* Progress bar position and size in pixels */
59
59
        .progressbar_x      = 212, /* 640/2-216/2 */
90
90
        .pixmap = &pixmap_usplash_800_600,
91
91
 
92
92
        /* Palette indexes */
93
 
        .background             = 0x0,
94
 
        .progressbar_background = 0x7,
95
 
        .progressbar_foreground = 0x156,
96
 
        .text_background        = 0x0,
97
 
        .text_foreground        = 0x15,
98
 
        .text_success           = 0x33,
99
 
        .text_failure           = 0x144,
 
93
        .background             = 0,
 
94
        .progressbar_background = 7,
 
95
        .progressbar_foreground = 68,
 
96
        .text_background        = 0,
 
97
        .text_foreground        = 159,
 
98
        .text_success           = 47,
 
99
        .text_failure           = 83,
100
100
 
101
101
        /* Progress bar position and size in pixels */
102
102
        .progressbar_x      = 292, /* 800/2-216/2 */
131
131
        .pixmap = &pixmap_usplash_1024_768,
132
132
 
133
133
        /* Palette indexes */
134
 
        .background             = 0x0,
135
 
        .progressbar_background = 0x7,
136
 
        .progressbar_foreground = 0x156,
137
 
        .text_background        = 0x0,
138
 
        .text_foreground        = 0x15,
139
 
        .text_success           = 0x33,
140
 
        .text_failure           = 0x144,
 
134
        .background             = 0,
 
135
        .progressbar_background = 7,
 
136
        .progressbar_foreground = 68,
 
137
        .text_background        = 0,
 
138
        .text_foreground        = 159,
 
139
        .text_success           = 47,
 
140
        .text_failure           = 83,
141
141
 
142
142
        /* Progress bar position and size in pixels */
143
143
        .progressbar_x      = 404, /* 1024/2 - 216/2 */
172
172
        .pixmap = &pixmap_usplash_1365_768_scaled,
173
173
 
174
174
        /* Palette indexes */
175
 
        .background             = 0x0,
176
 
        .progressbar_background = 0x7,
177
 
        .progressbar_foreground = 0x156,
178
 
        .text_background        = 0x0,
179
 
        .text_foreground        = 0x15,
180
 
        .text_success           = 0x33,
181
 
        .text_failure           = 0x144,
 
175
        .background             = 0,
 
176
        .progressbar_background = 7,
 
177
        .progressbar_foreground = 68,
 
178
        .text_background        = 0,
 
179
        .text_foreground        = 159,
 
180
        .text_success           = 47,
 
181
        .text_failure           = 83,
182
182
 
183
183
        /* Progress bar position and size in pixels */
184
184
        .progressbar_x      = 404, /* 1024/2 - 216/2 */
233
233
    static int pulsate_step = 0;
234
234
    static int pulse_width = 28;
235
235
    static int step_width = 2;
236
 
    static int num_steps = (216 - 28)/2;
 
236
    static int num_steps = (320 - 28)/2;
237
237
    int x1;
238
238
 
239
239
    if (pulsating) {
242
242
        if(pulsate_step < num_steps/2+1)
243
243
                x1 = 2 * step_width * pulsate_step;
244
244
        else
245
 
                x1 = 216 - pulse_width - 2 * step_width * (pulsate_step - num_steps/2+1);
 
245
                x1 = 320 - pulse_width - 2 * step_width * (pulsate_step - num_steps/2+1);
246
246
 
247
247
        usplash_put_part(theme->progressbar_x + x1, theme->progressbar_y, pulse_width,
248
248
                         pixmap_throbber_fore.height, &pixmap_throbber_fore, x1, 0);