diff --git a/data/common/icons16.png b/data/common/icons16.png index 4fe03c7b32..8d5eefdb66 100644 Binary files a/data/common/icons16.png and b/data/common/icons16.png differ diff --git a/programs/cmm/iconedit/iconedit.c b/programs/cmm/iconedit/iconedit.c index 4817b33ec5..b8393ca650 100644 --- a/programs/cmm/iconedit/iconedit.c +++ b/programs/cmm/iconedit/iconedit.c @@ -28,7 +28,7 @@ pipet aside color view // // //===================================================// -#define T_TITLE "Icon Editor 0.33" +#define T_TITLE "Icon Editor 0.35" #define TOOLBAR_H 24+8 #define PANEL_LEFT_W 16+5+5+3+3 @@ -37,10 +37,27 @@ pipet aside color view #define PAL_ITEMS_X_COUNT 13 #define COLSIZE 18 +#define RIGHT_BAR_W PAL_ITEMS_X_COUNT*COLSIZE -rect wrapper = { PANEL_LEFT_W, TOOLBAR_H, NULL, NULL }; -rect right_bar = { NULL, TOOLBAR_H, PAL_ITEMS_X_COUNT*COLSIZE+10, NULL }; -rect canvas = { NULL, NULL, NULL, NULL }; +struct block { + int x,y,w,h; + bool hovered(); +}; + +bool block::hovered() { + if ((mouse.x>x) && (mouse.y>y) + && (mouse.ycanvas.x) && (mouseY>canvas.y) - && (mouseYcanvas.x) && (mouseY>canvas.y) - && (mouseYcanvas.x) && (mouseY>canvas.y) - && (mouseY= BTNS_PALETTE_COLOR_MAS) && (btn <= BTNS_PALETTE_COLOR_MAS+PALLETE_SIZE) - { - if (mouse.lkm) EventSetActiveColor(1, default_palette[btn - BTNS_PALETTE_COLOR_MAS]); - if (mouse.pkm) EventSetActiveColor(2, default_palette[btn - BTNS_PALETTE_COLOR_MAS]); - } - if (btn >= BTNS_LAST_USED_COLORS) && (btn < sizeof(last_used_colors)*sizeof(dword)) - { - if (mouse.lkm) active_color_1 = last_used_colors[btn - BTNS_LAST_USED_COLORS]; - if (mouse.pkm) active_color_2 = last_used_colors[btn - BTNS_LAST_USED_COLORS]; - DrawActiveColor(NULL); } break; @@ -527,6 +536,7 @@ void draw_window() if (Form.height < 430) { MoveSize(OLD,OLD,OLD,430); return; } right_bar.x = Form.cwidth - right_bar.w; + b_color_gradient.x = b_last_colors.x = b_default_palette.x = right_bar.x; tx.n = 10-TB_ICON_PADDING; DrawToolbarButton(BTN_NEW, tx.inc(TB_ICON_PADDING), 2); //not implemented @@ -547,7 +557,7 @@ void draw_window() DrawEditArea(); DrawActiveColor(right_bar.y); - DrawColorPallets(right_bar.x, right_bar.y + 70); + DrawColorPallets(); DrawStatusBar(); } @@ -621,50 +631,45 @@ void DrawActiveColor(dword iny) sprintf(#param, "%A", active_color_2); EDI = system.color.work; WriteText(right_bar.x+110 + 30, outy + 3, 0xD0, system.color.work_text, #param+4); - DrawCurrentColorGradientByLightness(right_bar.x, outy+30); + DrawCurrentColorGradientByLightness(); } -void DrawCurrentColorGradientByLightness(int x, y) +void DrawCurrentColorGradientByLightness() { int i; int w = right_bar.w-10/2; - int h = 30; for (i=0; iskin.w-15) DrawBar(skin.w-1, 24, 1, list.item_h, theme.color_list_border); //Playing control buttons DefineHiddenButton(7, button_y, 38, 20, BUTTON_PLAYBACK_PREV); - DefineHiddenButton(47, button_y, 38, 20, BUTTON_PLAYBACK_PLAY_PAUSE); + DefineHiddenButton(48, button_y, 38, 20, BUTTON_PLAYBACK_PLAY_PAUSE); DefineHiddenButton(87, button_y, 38, 20, BUTTON_PLAYBACK_NEXT); //Window control buttons DefineHiddenButton(Form.width - 27, 1, 26, 15, BUTTON_WINDOW_CLOSE); DefineHiddenButton(Form.width - 55, 1, 26, 15, BUTTON_WINDOW_MINIMIZE); DefineHiddenButton(Form.width - 83, 1, 26, 15, BUTTON_WINDOW_REDUCE); //Other buttons - DefineHiddenButton(Form.width - 53, button_y, 22, 20, BUTTON_OPEN_DIALOG); - DefineHiddenButton(Form.width - 29, button_y, 22, 20, BUTTON_SHOW_VOLUME); - DefineHiddenButton(178, button_y+3, 17, 16, BUTTON_REPEAT); - DefineHiddenButton(197, button_y+3, 17, 16, BUTTON_SHUFFLE); + DefineHiddenButton(218, button_y+3, 17, 16, BUTTON_REPEAT); + DefineHiddenButton(237, button_y+3, 17, 16, BUTTON_SHUFFLE); + DefineHiddenButton(270, button_y+3, 17, 16, BUTTON_OPEN_DIALOG); + DefineHiddenButton(289, button_y+3, 17, 16, BUTTON_SHOW_VOLUME); } else if (window_mode == WINDOW_MODE_SMALL) { diff --git a/programs/cmm/pixie2/skin.png b/programs/cmm/pixie2/skin.png index d79959ac38..d125e8d427 100644 Binary files a/programs/cmm/pixie2/skin.png and b/programs/cmm/pixie2/skin.png differ