mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dtcalc: increase highlight thickness to match Solaris CDE
This patch was manually added via a diff supplied from a user on the CDE mailing list: Michele Ghisolfo <ghisolfo.m@gmail.com>
This commit is contained in:
parent
ad94f2089d
commit
fd3cffcb37
1 changed files with 15 additions and 11 deletions
|
@ -72,6 +72,9 @@ static char sccsid[] = "@(#)select.c 1.24 95/02/21 Copyr 1994 Sun Microsystems,
|
||||||
|
|
||||||
static void select_weekhotbox();
|
static void select_weekhotbox();
|
||||||
|
|
||||||
|
/* Highlight thickness - mghis */
|
||||||
|
#define STDTTT 3 /* default */
|
||||||
|
#define WEEKLTTT 2 /* of hour slots in week glance view */
|
||||||
|
|
||||||
extern int
|
extern int
|
||||||
selection_active (Selection *s)
|
selection_active (Selection *s)
|
||||||
|
@ -202,11 +205,12 @@ weekchart_select(Calendar *c)
|
||||||
+ w->chart_x, (j * w->chart_hour_height)
|
+ w->chart_x, (j * w->chart_hour_height)
|
||||||
+ (j * w->add_pixels) + w->chart_y,
|
+ (j * w->add_pixels) + w->chart_y,
|
||||||
w->chart_day_width, w->chart_hour_height
|
w->chart_day_width, w->chart_hour_height
|
||||||
+ w->add_pixels, 1, background_pixel, cms);
|
+ w->add_pixels, WEEKLTTT, background_pixel,
|
||||||
|
cms);
|
||||||
|
|
||||||
/* Select weekday letter over chart */
|
/* Select weekday letter over chart */
|
||||||
gr_draw_rgb_box(c->xcontext, chart_x, chart_y - 6,
|
gr_draw_rgb_box(c->xcontext, chart_x, chart_y - 6,
|
||||||
w->chart_day_width, char_height + 6, 1,
|
w->chart_day_width, char_height + 6, WEEKLTTT,
|
||||||
background_pixel, cms);
|
background_pixel, cms);
|
||||||
}
|
}
|
||||||
sel->nunits = 1;
|
sel->nunits = 1;
|
||||||
|
@ -248,7 +252,7 @@ select_weekday(Calendar *c, Boolean select)
|
||||||
|
|
||||||
XtVaGetValues(c->canvas, XmNcolormap, &cms, NULL);
|
XtVaGetValues(c->canvas, XmNcolormap, &cms, NULL);
|
||||||
gr_draw_rgb_box(xc, x - 2, y - 2, w->day_width,
|
gr_draw_rgb_box(xc, x - 2, y - 2, w->day_width,
|
||||||
w->day_height - w->label_height, 1,
|
w->day_height - w->label_height, STDTTT,
|
||||||
foreground_pixel, cms);
|
foreground_pixel, cms);
|
||||||
}
|
}
|
||||||
weekchart_select(c);
|
weekchart_select(c);
|
||||||
|
@ -311,7 +315,7 @@ calendar_select (Calendar *c, Selection_unit unit, caddr_t ref)
|
||||||
+margin,
|
+margin,
|
||||||
(sel->row*boxh)+topoff+
|
(sel->row*boxh)+topoff+
|
||||||
dayname_height, boxw,
|
dayname_height, boxw,
|
||||||
boxh, 1,
|
boxh, STDTTT,
|
||||||
foreground_pixel, cms);
|
foreground_pixel, cms);
|
||||||
}
|
}
|
||||||
activate_selection (sel);
|
activate_selection (sel);
|
||||||
|
@ -333,7 +337,7 @@ calendar_select (Calendar *c, Selection_unit unit, caddr_t ref)
|
||||||
else {
|
else {
|
||||||
gr_draw_rgb_box(xc, i*boxw+margin+2,
|
gr_draw_rgb_box(xc, i*boxw+margin+2,
|
||||||
(int)ref*boxh+margin+topoff+2,
|
(int)ref*boxh+margin+topoff+2,
|
||||||
boxw-4, boxh-4, 1,
|
boxw-4, boxh-4, STDTTT,
|
||||||
foreground_pixel, cms);
|
foreground_pixel, cms);
|
||||||
gr_draw_rgb_box(xc, i*boxw+margin+1,
|
gr_draw_rgb_box(xc, i*boxw+margin+1,
|
||||||
(int)ref*boxh+margin+topoff+1,
|
(int)ref*boxh+margin+topoff+1,
|
||||||
|
@ -371,7 +375,7 @@ calendar_select (Calendar *c, Selection_unit unit, caddr_t ref)
|
||||||
foreground_pixel, cms);
|
foreground_pixel, cms);
|
||||||
*/
|
*/
|
||||||
gr_draw_rgb_box(xc, xpos,
|
gr_draw_rgb_box(xc, xpos,
|
||||||
j*boxh+topoff+10, boxw-56, boxh+2, 1,
|
j*boxh+topoff+10, boxw-56, boxh+2, STDTTT,
|
||||||
foreground_pixel, cms);
|
foreground_pixel, cms);
|
||||||
}
|
}
|
||||||
sel->row=j;
|
sel->row=j;
|
||||||
|
@ -394,7 +398,7 @@ calendar_select (Calendar *c, Selection_unit unit, caddr_t ref)
|
||||||
j*boxh+topoff,
|
j*boxh+topoff,
|
||||||
c->view->boxw - 2,
|
c->view->boxw - 2,
|
||||||
c->view->boxh,
|
c->view->boxh,
|
||||||
1,
|
STDTTT,
|
||||||
foreground_pixel, cms);
|
foreground_pixel, cms);
|
||||||
}
|
}
|
||||||
sel->row=j;
|
sel->row=j;
|
||||||
|
@ -661,11 +665,11 @@ browser_select(Calendar *c, Browser *b, pr_pos *xy)
|
||||||
XtVaGetValues(b->canvas, XmNcolormap, &cms, NULL);
|
XtVaGetValues(b->canvas, XmNcolormap, &cms, NULL);
|
||||||
gr_draw_rgb_box(b->xcontext, (i * b->boxw) +
|
gr_draw_rgb_box(b->xcontext, (i * b->boxw) +
|
||||||
b->chart_x + 2, (j * b->boxh) + b->chart_y
|
b->chart_x + 2, (j * b->boxh) + b->chart_y
|
||||||
+ 2, b->boxw - 4, b->boxh - 4, 1,
|
+ 2, b->boxw - 4, b->boxh - 4, STDTTT,
|
||||||
pixel, cms);
|
pixel, cms);
|
||||||
gr_draw_rgb_box(b->xcontext, (i * b->boxw) +
|
gr_draw_rgb_box(b->xcontext, (i * b->boxw) +
|
||||||
b->chart_x + 1, (j * b->boxh) + b->chart_y
|
b->chart_x + 1, (j * b->boxh) + b->chart_y
|
||||||
+ 1, b->boxw - 2, b->boxh - 2, 1,
|
+ 1, b->boxw - 2, b->boxh - 2, STDTTT,
|
||||||
pixel, cms);
|
pixel, cms);
|
||||||
}
|
}
|
||||||
sel->row = j;
|
sel->row = j;
|
||||||
|
@ -708,10 +712,10 @@ select_weekhotbox(Calendar *c)
|
||||||
gr_draw_box(xc, x, y, w->day_width - 4, w->label_height - 4, NULL);
|
gr_draw_box(xc, x, y, w->day_width - 4, w->label_height - 4, NULL);
|
||||||
else {
|
else {
|
||||||
gr_draw_rgb_box(xc, x, y,
|
gr_draw_rgb_box(xc, x, y,
|
||||||
w->day_width - 4, w->label_height - 4, 1,
|
w->day_width - 4, w->label_height - 4, STDTTT,
|
||||||
background_pixel, cms);
|
background_pixel, cms);
|
||||||
gr_draw_rgb_box(xc, x-1, y-1,
|
gr_draw_rgb_box(xc, x-1, y-1,
|
||||||
w->day_width-2, w->label_height - 2, 1,
|
w->day_width-2, w->label_height - 2, STDTTT,
|
||||||
background_pixel, cms);
|
background_pixel, cms);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue