self->shapewindow = createWindow(ob_root, mask, &attrib);
self->surface = RrSurfaceNew(ob_render_inst, RR_SURFACE_NONE,
self->window, 0);
- RrColorSet(&pri, 1, 0, 0, 0);
- RrColorSet(&sec, 1, 0, 1, 0);
+ RrColorSet(&pri, 1, 0, 0, 1.0);
+ RrColorSet(&sec, 1, 0, 1, 1.0);
mask = 0;
self->plate = createWindow(self->window, mask, &attrib);
fd->surface = RrSurfaceNewChild(RR_SURFACE_PLANAR, self->surface, 1);
RrPlanarSet(fd->surface, RR_PLANAR_HORIZONTAL, RR_RAISED_OUTER, &sec, &pri,
0, NULL);
- RrTextureSetText(fd->surface, 0, foont, RR_LEFT,
+ RrTextureSetText(fd->surface, 0, foont, RR_LEFT, &pri,
"OPENBOX SUCKS because of me.");
fd->window = RrSurfaceWindow(fd->surface);
XSelectInput(ob_display, fd->window, ELEMENT_EVENTMASK);
/* set texture data and size them mofos out */
if (self->label) {
- RrTextureSetText(self->s_title, 0, NULL, RR_CENTER,
+ struct RrColor c;
+ RrColorSet(&c, 0, 0, 0, 1.0);
+ RrTextureSetText(self->s_title, 0, NULL, RR_CENTER, &c,
self->label);
RrSurfaceMinSize(self->s_title, &self->title_min_w, &self->title_h);
self->title_min_w += theme_bevel * 2;
for (it = self->entries; it; it = it->next) {
MenuEntry *e = it->data;
+ struct RrColor c;
int h;
- RrTextureSetText(e->s_item, 0, NULL, RR_LEFT, e->label);
+ RrColorSet(&c, 0, 0, 0, 1.0);
+ RrTextureSetText(e->s_item, 0, NULL, RR_LEFT, &c, e->label);
RrSurfaceMinSize(e->s_item, &e->min_w, &self->item_h);
self->size.width = MAX(self->size.width, e->min_w);
- RrTextureSetText(e->s_disabled, 0, NULL, RR_LEFT, e->label);
+ RrTextureSetText(e->s_disabled, 0, NULL, RR_LEFT, &c, e->label);
RrSurfaceMinSize(e->s_disabled, &e->min_w, &h);
self->item_h = MAX(self->item_h, h);
self->size.width = MAX(self->size.width, e->min_w);
- RrTextureSetText(e->s_hilite, 0, NULL, RR_LEFT, e->label);
+ RrTextureSetText(e->s_hilite, 0, NULL, RR_LEFT, &c, e->label);
RrSurfaceMinSize(e->s_hilite, &e->min_w, &h);
self->item_h = MAX(self->item_h, h);
self->size.width = MAX(self->size.width, e->min_w);
/* XXX COPY THE APPEARANCES FROM THE THEME...... LIKE THIS SORTA!
self->a_text = appearance_copy(theme_app_hilite_label);
*/
- RrColorSet(&pri, 1, 0, 0, 0);
- RrColorSet(&sec, 0, 1, 0, 0);
+ RrColorSet(&pri, 1, 0, 0, 1.0);
+ RrColorSet(&sec, 0, 1, 0, 1.0);
RrPlanarSet(self->s_bg, RR_PLANAR_VERTICAL, RR_SUNKEN_INNER, &pri, &sec,
1, &pri);
- RrColorSet(&pri, 0, 0.5, 0, 0.7);
- RrColorSet(&sec, 0.5, 0, 0.5, 0.7);
+ RrColorSet(&pri, 0, 0.5, 0, 0.3);
+ RrColorSet(&sec, 0.5, 0, 0.5, 0.3);
RrPlanarSet(self->s_text, RR_PLANAR_HORIZONTAL, RR_BEVEL_NONE, &pri, &sec,
0, NULL);
if (self->s_icon) {
- RrColorSet(&pri, 0, 0, 1, 0.7);
- RrColorSet(&sec, 0.5, 0.5, 0, 0.7);
+ RrColorSet(&pri, 0, 0, 1, 0.3);
+ RrColorSet(&sec, 0.5, 0.5, 0, 0.3);
RrPlanarSet(self->s_icon, RR_PLANAR_HORIZONTAL, RR_BEVEL_NONE, &pri,
&sec, 0, NULL);
}
{
int textw, texth;
int iconw;
+ struct RrColor c;
- RrTextureSetText(self->s_text, 0, NULL, RR_LEFT, text);
+ RrColorSet(&c, 0, 0, 0, 1.0);
+ RrTextureSetText(self->s_text, 0, NULL, RR_LEFT, &c, text);
RrSurfaceMinSize(self->s_text, &textw, &texth);
textw += theme_bevel * 2;
texth += theme_bevel * 2;
int x, y, w, h;
int textw, texth;
int iconw;
+ struct RrColor c;
/* set up the textures */
- RrTextureSetText(self->s_text, 0, NULL, RR_LEFT, text);
+ RrColorSet(&c, 0, 0, 0, 1.0);
+ RrTextureSetText(self->s_text, 0, NULL, RR_LEFT, &c, text);
/* measure the shit out */
RrSurfaceMinSize(self->s_text, &textw, &texth);