#include #include #include wTHEME *PinkTheme() { wTHEME *t = malloc(sizeof(wTHEME)); if (!t) return NULL; t->color1 = RGB(251,241,240); t->color2 = RGB(91,21,43); t->color3 = RGB(206,66,101); t->color4 = RGB(126,18,56); t->defbg = wBackgroundColor(RGB(181,99,162), RGB(235,214,235), BACKG_HALO); t->font_index = NSDL_FONT_THIN; t->font = nSDL_LoadFont(t->font_index, 126, 18, 56); t->button_bg = wBackgroundColor(RGB(132,16,52), RGB(222,222,222), BACKG_HALO); t->button_bg_selected = wBackgroundColor(RGB(222,222,222), RGB(132,16,52), BACKG_HALO); t->button_font = nSDL_LoadFont(NSDL_FONT_VGA, 50, 0, 0); t->button_font_selected = nSDL_LoadFont(NSDL_FONT_VGA, 255, 200, 200); Uint16 img_check_0[125] = { // 11x11 0x2a01,0x000B,0x000B,0x0000,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xf79f,0xffff,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0xf79f,0xffff,0x0000,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0x0000,0xf79f,0xffff,0x0000,0xf7bf, 0xf7bf,0xf7bf,0xf7bf,0xf7bf,0xf7bf,0xf7bf,0x0000,0xf79f,0xffff,0x0000, 0xf79f,0xf79f,0xf79f,0xf79f,0xf79f,0xf79f,0xf79f,0x0000,0xf79f,0xffff, 0x0000,0xef5e,0xef5e,0xef5e,0xef5e,0xef5e,0xef5e,0xef5e,0x0000,0xf79f, 0xffff,0x0000,0xe71e,0xe71e,0xe71e,0xe71e,0xe71e,0xe71e,0xe71e,0x0000, 0xf79f,0xffff,0x0000,0xde9d,0xde9d,0xde9d,0xde9d,0xde9d,0xde9d,0xde9d, 0x0000,0xf79f,0xffff,0x0000,0xcdfc,0xcdfc,0xcdfc,0xcdfc,0xcdfc,0xcdfc, 0xcdfc,0x0000,0xf79f,0xffff,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0xf79f,0xf79f,0xf79f,0xf79f,0xf79f,0xf79f,0xf79f, 0xf79f,0xf79f,0xf79f,0xf79f,0xf79 }; Uint16 img_check_1[125] = { // 11x11 0x2a01,0x000B,0x000B,0x0000,0xf7bf,0xf7bf,0xf7bf,0xf7bf,0xf7bf,0xf7bf, 0xf7bf,0xf7bf,0xf7bf,0xf7bf,0xe71e,0xf7bf,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x0000,0x0000,0xe71e,0xf7bf,0x0000,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0x24d6,0x0000,0xe71e,0xf7bf,0x0000,0xf7bf, 0xf7bf,0xf7bf,0xf7bf,0xf7bf,0x24d6,0x1b4f,0x0000,0xe71e,0xf7bf,0x0000, 0x24d6,0xf79f,0xf79f,0xf79f,0x24d6,0x1b4f,0x24d6,0x0000,0xe71e,0xf7bf, 0x0000,0x1b4f,0x24d6,0xef5e,0x24d6,0x1b4f,0x24d6,0xef5e,0x0000,0xe71e, 0xf7bf,0x0000,0x24d6,0x1b4f,0x24d6,0x1b4f,0x24d6,0xe71e,0xe71e,0x0000, 0xe71e,0xf7bf,0x0000,0xde9d,0x24d6,0x1b4f,0x24d6,0xde9d,0xde9d,0xde9d, 0x0000,0xe71e,0xf7bf,0x0000,0xcdfc,0xcdfc,0x24d6,0xcdfc,0xcdfc,0xcdfc, 0xcdfc,0x0000,0xe71e,0xf7bf,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0xe71e,0xe71e,0xe71e,0xe71e,0xe71e,0xe71e,0xe71e, 0xe71e,0xe71e,0xe71e,0xe71e,0xe71 }; t->img_check_0 = nSDL_LoadImage(img_check_0); SetColorKey(t->img_check_0); t->img_check_1 = nSDL_LoadImage(img_check_1); SetColorKey(t->img_check_1); Uint16 image_up[53] = { // 7x7 0x2a01,0x0007,0x0007,0x0000,0xf800,0xf800,0xf800,0x29eb,0xf800,0xf800, 0xf800,0xf800,0xf800,0x29eb,0x9edd,0x29eb,0xf800,0xf800,0xf800,0x29eb, 0x051d,0x29eb,0x9edd,0x29eb,0xf800,0x29eb,0x051d,0x29eb,0xffff,0x29eb, 0x9edd,0x29eb,0x29eb,0x051d,0x051d,0x9edd,0x9edd,0x9edd,0x29eb,0x29eb, 0x29eb,0x29eb,0x29eb,0x29eb,0x29eb,0x29eb,0xf800,0xf800,0xf800,0xf800, 0xf800,0xf800,0xf800 }; Uint16 image_down[53] = { // 7x7 0x2a01,0x0007,0x0007,0x0000,0xf800,0xf800,0xf800,0xf800,0xf800,0xf800, 0xf800,0x29eb,0x29eb,0x29eb,0x29eb,0x29eb,0x29eb,0x29eb,0x29eb,0x051d, 0x051d,0x9edd,0x9edd,0x9edd,0x29eb,0x29eb,0x051d,0x29eb,0xffff,0x29eb, 0x9edd,0x29eb,0xf800,0x29eb,0x051d,0x29eb,0x9edd,0x29eb,0xf800,0xf800, 0xf800,0x29eb,0x9edd,0x29eb,0xf800,0xf800,0xf800,0xf800,0xf800,0x29eb, 0xf800,0xf800,0xf800 }; Uint16 image_left[53] = { // 7x7 0x2a01,0x0007,0x0007,0x0000,0xf800,0xf800,0xf800,0x29cb,0x29cb,0x29cb, 0xf800,0xf800,0xf800,0x29cb,0x053d,0x053d,0x29cb,0xf800,0xf800,0x29cb, 0x053d,0x29cb,0x053d,0x29cb,0xf800,0x29cb,0x9efd,0x29cb,0xffff,0x9efd, 0x29cb,0xf800,0xf800,0x29cb,0x9efd,0x29cb,0x9efd,0x29cb,0xf800,0xf800, 0xf800,0x29cb,0x9efd,0x9efd,0x29cb,0xf800,0xf800,0xf800,0xf800,0x29cb, 0x29cb,0x29cb,0xf800 }; Uint16 image_right[53] = { // 7x7 0x2a01,0x0007,0x0007,0x0000,0xf800,0x29cb,0x29cb,0x29cb,0xf800,0xf800, 0xf800,0xf800,0x29cb,0x9efd,0x9efd,0x29cb,0xf800,0xf800,0xf800,0x29cb, 0x9efd,0x29cb,0x9efd,0x29cb,0xf800,0xf800,0x29cb,0x9efd,0xffff,0x29cb, 0x9efd,0x29cb,0xf800,0x29cb,0x053d,0x29cb,0x053d,0x29cb,0xf800,0xf800, 0x29cb,0x053d,0x053d,0x29cb,0xf800,0xf800,0xf800,0x29cb,0x29cb,0x29cb, 0xf800,0xf800,0xf800 }; t->img_scrollb_up = nSDL_LoadImage(image_up); SetColorKey(t->img_scrollb_up); t->img_scrollb_down = nSDL_LoadImage(image_down); SetColorKey(t->img_scrollb_down); t->img_scrollb_left = nSDL_LoadImage(image_left); SetColorKey(t->img_scrollb_left); t->img_scrollb_right = nSDL_LoadImage(image_right); SetColorKey(t->img_scrollb_right); t->tab_color2 = RGB(210, 230, 247); t->tab_color3 = RGB(49, 88, 100); t->tab_color4 = RGB(86, 41, 41); t->tab_f1 = nSDL_LoadFont(NSDL_FONT_TINYTYPE, 0, 0, 0); t->tab_f2 = nSDL_LoadFont(NSDL_FONT_TINYTYPE, 210, 230, 247); Uint16 image_tab_delete[] = { // 5x6 0x2a01,0x0005,0x0006,0x0000,0x8802,0xb8c1,0xf800,0xb8c1,0x8802,0xb8c1, 0x8802,0xb8c1,0x8802,0xb8c1,0xf800,0xb8c1,0x7002,0xb8c1,0xf800,0xf800, 0xb8c1,0x7002,0xb8c1,0xf800,0xb8c1,0x8802,0xb8c1,0x8802,0xb8c1,0x8802, 0xb8c1,0xf800,0xb8c1,0x8802 }; t->tab_delete = nSDL_LoadImage(image_tab_delete); SetColorKey(t->tab_delete); t->request_c1 = RGB(255,231,227); t->request_c2 = RGB(239,239,239); t->request_c3 = RGB(115,46,65); t->request_f1 = nSDL_LoadFont(NSDL_FONT_THIN, 41, 0, 8); t->request_f2 = nSDL_LoadFont(NSDL_FONT_TINYTYPE, 189, 107, 146); Uint16 image_request_left[] = { // 5x7 0x2a01,0x0005,0x0007,0x0000,0xf800,0xf800,0xf800,0x2270,0xf800,0xf800, 0xf800,0x2270,0x9579,0xf800,0xf800,0x2270,0x9579,0x2b8f,0xf800,0x2270, 0x9579,0x2b8f,0x9db9,0xf800,0xf800,0x2270,0x9579,0x2b8f,0xf800,0xf800, 0xf800,0x2270,0x9579,0xf800,0xf800,0xf800,0xf800,0x2270,0xf800 }; Uint16 image_request_right[] = { // 5x7 0x2a01,0x0005,0x0007,0x0000,0xf800,0x2270,0xf800,0xf800,0xf800,0xf800, 0x9579,0x2270,0xf800,0xf800,0xf800,0x2b8f,0x9579,0x2270,0xf800,0xf800, 0x9db9,0x2b8f,0x9579,0x2270,0xf800,0x2b8f,0x9579,0x2270,0xf800,0xf800, 0x9579,0x2270,0xf800,0xf800,0xf800,0x2270,0xf800,0xf800,0xf800 }; t->request_right = nSDL_LoadImage(image_request_right); t->request_left = nSDL_LoadImage(image_request_left); SetColorKey(t->request_right); SetColorKey(t->request_left); Uint16 image_menus_right[] = { // 5x7 0x2a01,0x0005,0x0007,0x0000,0xf800,0x2270,0xf800,0xf800,0xf800,0xf800, 0x9579,0x2270,0xf800,0xf800,0xf800,0x2b8f,0x9579,0x2270,0xf800,0xf800, 0x9db9,0x2b8f,0x9579,0x2270,0xf800,0x2b8f,0x9579,0x2270,0xf800,0xf800, 0x9579,0x2270,0xf800,0xf800,0xf800,0x2270,0xf800,0xf800,0xf800 }; t->menus_right = nSDL_LoadImage(image_menus_right); SetColorKey(t->menus_right); t->text_c1 = RGB(222,198,211); t->menus_title_c1 = RGB(0,0,0); t->menus_title_c2 = RGB(140,38,142); t->menus_title_font = nSDL_LoadFont(NSDL_FONT_TINYTYPE, 255, 231, 249); t->menus_font1 = nSDL_LoadFont(NSDL_FONT_VGA, 90, 82, 56); t->menus_c1 = RGB(247,223,222); t->menus_font2 = nSDL_LoadFont(NSDL_FONT_VGA, 156, 32, 33); t->map_c1 = RGB(255,255,206); Uint16 image_pbar_cursor[] = { // 9x9 0x2a01,0x0009,0x0009,0x0000,0xf800,0xf800,0xf800,0xf800,0x0000,0xf800, 0xf800,0xf800,0xf800,0xf800,0xf800,0xf800,0x0000,0x4a49,0x0000,0xf800, 0xf800,0xf800,0xf800,0xf800,0x0000,0x7bcf,0x4a49,0x7bcf,0x0000,0xf800, 0xf800,0xf800,0x0000,0xa514,0x7bcf,0x4a49,0x7bcf,0xa514,0x0000,0xf800, 0x0000,0xbdf7,0xa514,0x7bcf,0xef5d,0x7bcf,0xa514,0xbdf7,0x0000,0xf800, 0x0000,0xa514,0x7bcf,0x4a49,0x7bcf,0xa514,0x0000,0xf800,0xf800,0xf800, 0x0000,0x7bcf,0x4a49,0x7bcf,0x0000,0xf800,0xf800,0xf800,0xf800,0xf800, 0x0000,0x4a49,0x0000,0xf800,0xf800,0xf800,0xf800,0xf800,0xf800,0xf800, 0x0000,0xf800,0xf800,0xf800,0xf800 }; Uint16 image_pbar_cursor_v[] = { 0x2a01,0x0009,0x0009,0x0000,0xf800,0xf800,0xf800,0xf800,0x0000,0xf800, 0xf800,0xf800,0xf800,0xf800,0xf800,0xf800,0x0000,0xbdf7,0x0000,0xf800, 0xf800,0xf800,0xf800,0xf800,0x0000,0xa514,0xa514,0xa514,0x0000,0xf800, 0xf800,0xf800,0x0000,0x7bcf,0x7bcf,0x7bcf,0x7bcf,0x7bcf,0x0000,0xf800, 0x0000,0x4a49,0x4a49,0x4a49,0xef5d,0x4a49,0x4a49,0x4a49,0x0000,0xf800, 0x0000,0x7bcf,0x7bcf,0x7bcf,0x7bcf,0x7bcf,0x0000,0xf800,0xf800,0xf800, 0x0000,0xa514,0xa514,0xa514,0x0000,0xf800,0xf800,0xf800,0xf800,0xf800, 0x0000,0xbdf7,0x0000,0xf800,0xf800,0xf800,0xf800,0xf800,0xf800,0xf800, 0x0000,0xf800,0xf800,0xf800,0xf800 }; t->pbar_cursor = nSDL_LoadImage(image_pbar_cursor); t->pbar_cursor_v = nSDL_LoadImage(image_pbar_cursor_v); SetColorKey(t->pbar_cursor); SetColorKey(t->pbar_cursor_v); Uint16 image_window_icon[] = { 0x2a01,0x000B,0x000B,0x0000,0x9edd,0x9edd,0x9edd,0x9edd,0x9edd,0x9edd, 0x9edd,0x9edd,0x9edd,0x9edd,0x9edd,0x9edd,0xf800,0xf800,0xf800,0xf800, 0xf800,0xf800,0xf800,0xf800,0xf800,0x9edd,0x9edd,0xf800,0x6e5b,0x6e5b, 0x6e5b,0x6e5b,0x6e5b,0x6e5b,0x6e5b,0xf800,0x9edd,0x9edd,0xf800,0x6e5b, 0xf800,0xf800,0xf800,0xf800,0xf800,0x6e5b,0xf800,0x9edd,0x9edd,0xf800, 0x6e5b,0xf800,0x4dfb,0x4dfb,0x4dfb,0xf800,0x6e5b,0xf800,0x9edd,0x9edd, 0xf800,0x6e5b,0xf800,0x4dfb,0xf800,0x4dfb,0xf800,0x6e5b,0xf800,0x9edd, 0x9edd,0xf800,0x6e5b,0xf800,0x4dfb,0x4dfb,0x4dfb,0xf800,0x6e5b,0xf800, 0x9edd,0x9edd,0xf800,0x6e5b,0xf800,0xf800,0xf800,0xf800,0xf800,0x6e5b, 0xf800,0x9edd,0x9edd,0xf800,0x6e5b,0x6e5b,0x6e5b,0x6e5b,0x6e5b,0x6e5b, 0x6e5b,0xf800,0x9edd,0x9edd,0xf800,0xf800,0xf800,0xf800,0xf800,0xf800, 0xf800,0xf800,0xf800,0x9edd,0x9edd,0x9edd,0x9edd,0x9edd,0x9edd,0x9edd, 0x9edd,0x9edd,0x9edd,0x9edd,0x9edd }; t->window_icon = nSDL_LoadImage(image_window_icon); SetColorKey(t->window_icon); t->window_c1 = RGB(0,0,0); t->window_title_bg = wBackgroundColor(RGB(45,0,0), RGB(255,231,225), BACKG_HGRAD); t->window_title_font = nSDL_LoadFont(NSDL_FONT_TINYTYPE, 255, 230, 230); t->dialog_bg1 = wBackgroundColor(RGB(252,222,222), RGB(57,162,132), BACKG_HGRAD); t->dialog_bg2 = wBackgroundColor(RGB(252,222,222), RGB(148,73,82), BACKG_HGRAD); return t; }