Permalink
Browse files

More theme tweaks

  • Loading branch information...
1 parent decf315 commit d52b0488c0e3b7657b27e2763cdb11cbceb62565 @klange committed Mar 31, 2013
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -764,7 +764,7 @@ int center_y(int y) {
}
void display() {
- draw_fill(ctx, rgb(0,0,0));
+ draw_fill(ctx, rgb(39,55,113));
draw_sprite(ctx, sprites[0], center_x(sprites[0]->width), center_y(sprites[0]->height));
flip(ctx);
}
@@ -33,7 +33,7 @@ struct timeval {
unsigned int tv_usec;
};
-#define LOGO_FINAL_OFFSET 100
+#define LOGO_FINAL_OFFSET 150
int checkUserPass(char * user, char * pass) {
@@ -164,7 +164,7 @@ int main (int argc, char ** argv) {
ctx = init_graphics_window_double_buffer(wina);
for (int i = 0; i < LOGO_FINAL_OFFSET; ++i) {
- draw_fill(ctx, rgb(0,0,0));
+ draw_fill(ctx, rgb(39,55,113));
draw_sprite(ctx, sprites[0], center_x(sprites[0]->width), center_y(sprites[0]->height) - i);
flip(ctx);
}
@@ -251,14 +251,14 @@ int main (int argc, char ** argv) {
}
/* Redraw the background */
- draw_fill(ctx, rgb(0,0,0));
+ draw_fill(ctx, rgb(39,55,113));
draw_sprite(ctx, sprites[0], center_x(sprites[0]->width), center_y(sprites[0]->height) - LOGO_FINAL_OFFSET);
draw_string(ctx, hostname_label_left, height - 12, white, hostname);
draw_string(ctx, kernel_v_label_left, height - 12, white, kernel_v);
/* Draw backdrops */
- draw_box(ctx, box_x, box_y, BOX_WIDTH, BOX_HEIGHT, rgb(20,20,20));
+ draw_box(ctx, box_x, box_y, BOX_WIDTH, BOX_HEIGHT, rgb(180,124,205));
draw_box(ctx, box_x + LEFT_OFFSET, box_y + 32, 168, 16, rgb(255,255,255));
draw_box(ctx, box_x + LEFT_OFFSET, box_y + 56, 168, 16, rgb(255,255,255));
@@ -277,9 +277,9 @@ int main (int argc, char ** argv) {
}
if (focus == USERNAME_BOX) {
- draw_box_border(ctx, box_x + LEFT_OFFSET, box_y + 32, 168, 16, rgb(8, 193, 236));
+ draw_box_border(ctx, box_x + LEFT_OFFSET, box_y + 32, 168, 16, rgb(229, 68, 138));
} else if (focus == PASSWORD_BOX) {
- draw_box_border(ctx, box_x + LEFT_OFFSET, box_y + 56, 168, 16, rgb(8, 193, 236));
+ draw_box_border(ctx, box_x + LEFT_OFFSET, box_y + 56, 168, 16, rgb(229, 68, 138));
}
flip(ctx);
@@ -325,7 +325,7 @@ int main (int argc, char ** argv) {
show_error = 1;
}
- draw_fill(ctx, rgb(0,0,0));
+ draw_fill(ctx, rgb(39,55,113));
draw_sprite(ctx, sprites[0], center_x(sprites[0]->width), center_y(sprites[0]->height) - LOGO_FINAL_OFFSET);
flip(ctx);

0 comments on commit d52b048

Please sign in to comment.