mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-03 14:55:46 +01:00
- fixed a bug in the icon chooser dialog that made the selected icon look
wrong if it had alpha blending. - fixed a bug in WMReparentWidget() - added WMReparentWidget() to WINGs.h
This commit is contained in:
13
src/dialog.c
13
src/dialog.c
@@ -370,7 +370,7 @@ drawIconProc(WMList *lPtr, int index, Drawable d, char *text,
|
||||
WMColor *whitecolor;
|
||||
WMSize size;
|
||||
WMScreen *wmscr = WMWidgetScreen(panel->win);
|
||||
RColor gray;
|
||||
RColor color;
|
||||
int width;
|
||||
|
||||
if(!panel->preview) return;
|
||||
@@ -385,9 +385,14 @@ drawIconProc(WMList *lPtr, int index, Drawable d, char *text,
|
||||
sprintf(file, "%s/%s", dirfile, text);
|
||||
wfree(dirfile);
|
||||
|
||||
gray.red = 0xae; gray.green = 0xaa;
|
||||
gray.blue = 0xae; gray.alpha = 0;
|
||||
pixmap = WMCreateBlendedPixmapFromFile(wmscr, file, &gray);
|
||||
if ((state & WLDSSelected) != 0) {
|
||||
color.red = color.green = color.blue = 0xff;
|
||||
color.alpha = 0;
|
||||
} else {
|
||||
color.red = color.blue = 0xae;
|
||||
color.green = 0xaa; color.alpha = 0;
|
||||
}
|
||||
pixmap = WMCreateBlendedPixmapFromFile(wmscr, file, &color);
|
||||
wfree(file);
|
||||
|
||||
if (!pixmap) {
|
||||
|
||||
Reference in New Issue
Block a user