summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-09-08 18:38:52 +0000
committerDana Jansens <danakj@orodu.net>2003-09-08 18:38:52 +0000
commita72371b41f48a2d6a1e55099456d30d3b678b66c (patch)
treec9e514d8c353ac4137fd71f261a5bcca4e9fe2e2 /openbox
parente68e6c6a536a2132570ddf1d1d3759bb31ef781e (diff)
bigtime theme changes. bigtime.
Diffstat (limited to 'openbox')
-rw-r--r--openbox/frame.c44
-rw-r--r--openbox/framerender.c14
-rw-r--r--openbox/popup.c32
3 files changed, 45 insertions, 45 deletions
diff --git a/openbox/frame.c b/openbox/frame.c
index fe5ddc49..cbb6dfda 100644
--- a/openbox/frame.c
+++ b/openbox/frame.c
@@ -511,32 +511,32 @@ static void layout_title(ObFrame *self)
n = d = i = l = m = c = s = FALSE;
/* figure out whats being shown, and the width of the label */
- self->label_width = self->width - (ob_rr_theme->bevel + 1) * 2;
+ self->label_width = self->width - (ob_rr_theme->padding + 1) * 2;
for (lc = config_title_layout; *lc != '\0'; ++lc) {
switch (*lc) {
case 'N':
if (n) { *lc = ' '; break; } /* rm duplicates */
n = TRUE;
self->label_width -= (ob_rr_theme->button_size + 2 +
- ob_rr_theme->bevel + 1);
+ ob_rr_theme->padding + 1);
break;
case 'D':
if (d) { *lc = ' '; break; } /* rm duplicates */
d = TRUE;
self->label_width -= (ob_rr_theme->button_size +
- ob_rr_theme->bevel + 1);
+ ob_rr_theme->padding + 1);
break;
case 'S':
if (s) { *lc = ' '; break; } /* rm duplicates */
s = TRUE;
self->label_width -= (ob_rr_theme->button_size +
- ob_rr_theme->bevel + 1);
+ ob_rr_theme->padding + 1);
break;
case 'I':
if (i) { *lc = ' '; break; } /* rm duplicates */
i = TRUE;
self->label_width -= (ob_rr_theme->button_size +
- ob_rr_theme->bevel + 1);
+ ob_rr_theme->padding + 1);
break;
case 'L':
if (l) { *lc = ' '; break; } /* rm duplicates */
@@ -546,13 +546,13 @@ static void layout_title(ObFrame *self)
if (m) { *lc = ' '; break; } /* rm duplicates */
m = TRUE;
self->label_width -= (ob_rr_theme->button_size +
- ob_rr_theme->bevel + 1);
+ ob_rr_theme->padding + 1);
break;
case 'C':
if (c) { *lc = ' '; break; } /* rm duplicates */
c = TRUE;
self->label_width -= (ob_rr_theme->button_size +
- ob_rr_theme->bevel + 1);
+ ob_rr_theme->padding + 1);
break;
}
}
@@ -569,57 +569,57 @@ static void layout_title(ObFrame *self)
if (!m) XUnmapWindow(ob_display, self->max);
if (!c) XUnmapWindow(ob_display, self->close);
- x = ob_rr_theme->bevel + 1;
+ x = ob_rr_theme->padding + 1;
for (lc = config_title_layout; *lc != '\0'; ++lc) {
switch (*lc) {
case 'N':
if (!n) break;
self->icon_x = x;
XMapWindow(ob_display, self->icon);
- XMoveWindow(ob_display, self->icon, x, ob_rr_theme->bevel);
- x += ob_rr_theme->button_size + 2 + ob_rr_theme->bevel + 1;
+ XMoveWindow(ob_display, self->icon, x, ob_rr_theme->padding);
+ x += ob_rr_theme->button_size + 2 + ob_rr_theme->padding + 1;
break;
case 'D':
if (!d) break;
self->desk_x = x;
XMapWindow(ob_display, self->desk);
- XMoveWindow(ob_display, self->desk, x, ob_rr_theme->bevel + 1);
- x += ob_rr_theme->button_size + ob_rr_theme->bevel + 1;
+ XMoveWindow(ob_display, self->desk, x, ob_rr_theme->padding + 1);
+ x += ob_rr_theme->button_size + ob_rr_theme->padding + 1;
break;
case 'S':
if (!s) break;
self->shade_x = x;
XMapWindow(ob_display, self->shade);
- XMoveWindow(ob_display, self->shade, x, ob_rr_theme->bevel + 1);
- x += ob_rr_theme->button_size + ob_rr_theme->bevel + 1;
+ XMoveWindow(ob_display, self->shade, x, ob_rr_theme->padding + 1);
+ x += ob_rr_theme->button_size + ob_rr_theme->padding + 1;
break;
case 'I':
if (!i) break;
self->iconify_x = x;
XMapWindow(ob_display, self->iconify);
- XMoveWindow(ob_display, self->iconify, x, ob_rr_theme->bevel + 1);
- x += ob_rr_theme->button_size + ob_rr_theme->bevel + 1;
+ XMoveWindow(ob_display,self->iconify, x, ob_rr_theme->padding + 1);
+ x += ob_rr_theme->button_size + ob_rr_theme->padding + 1;
break;
case 'L':
if (!l) break;
self->label_x = x;
XMapWindow(ob_display, self->label);
- XMoveWindow(ob_display, self->label, x, ob_rr_theme->bevel);
- x += self->label_width + ob_rr_theme->bevel + 1;
+ XMoveWindow(ob_display, self->label, x, ob_rr_theme->padding);
+ x += self->label_width + ob_rr_theme->padding + 1;
break;
case 'M':
if (!m) break;
self->max_x = x;
XMapWindow(ob_display, self->max);
- XMoveWindow(ob_display, self->max, x, ob_rr_theme->bevel + 1);
- x += ob_rr_theme->button_size + ob_rr_theme->bevel + 1;
+ XMoveWindow(ob_display, self->max, x, ob_rr_theme->padding + 1);
+ x += ob_rr_theme->button_size + ob_rr_theme->padding + 1;
break;
case 'C':
if (!c) break;
self->close_x = x;
XMapWindow(ob_display, self->close);
- XMoveWindow(ob_display, self->close, x, ob_rr_theme->bevel + 1);
- x += ob_rr_theme->button_size + ob_rr_theme->bevel + 1;
+ XMoveWindow(ob_display, self->close, x, ob_rr_theme->padding + 1);
+ x += ob_rr_theme->button_size + ob_rr_theme->padding + 1;
break;
}
}
diff --git a/openbox/framerender.c b/openbox/framerender.c
index a9025b30..1f783a54 100644
--- a/openbox/framerender.c
+++ b/openbox/framerender.c
@@ -140,31 +140,31 @@ void framerender_frame(ObFrame *self)
/* set parents for any parent relative guys */
l->surface.parent = t;
l->surface.parentx = self->label_x;
- l->surface.parenty = ob_rr_theme->bevel;
+ l->surface.parenty = ob_rr_theme->padding;
m->surface.parent = t;
m->surface.parentx = self->max_x;
- m->surface.parenty = ob_rr_theme->bevel + 1;
+ m->surface.parenty = ob_rr_theme->padding + 1;
n->surface.parent = t;
n->surface.parentx = self->icon_x;
- n->surface.parenty = ob_rr_theme->bevel;
+ n->surface.parenty = ob_rr_theme->padding;
i->surface.parent = t;
i->surface.parentx = self->iconify_x;
- i->surface.parenty = ob_rr_theme->bevel + 1;
+ i->surface.parenty = ob_rr_theme->padding + 1;
d->surface.parent = t;
d->surface.parentx = self->desk_x;
- d->surface.parenty = ob_rr_theme->bevel + 1;
+ d->surface.parenty = ob_rr_theme->padding + 1;
s->surface.parent = t;
s->surface.parentx = self->shade_x;
- s->surface.parenty = ob_rr_theme->bevel + 1;
+ s->surface.parenty = ob_rr_theme->padding + 1;
c->surface.parent = t;
c->surface.parentx = self->close_x;
- c->surface.parenty = ob_rr_theme->bevel + 1;
+ c->surface.parenty = ob_rr_theme->padding + 1;
framerender_label(self, l);
framerender_max(self, m);
diff --git a/openbox/popup.c b/openbox/popup.c
index 8a3ec851..40757b5b 100644
--- a/openbox/popup.c
+++ b/openbox/popup.c
@@ -102,11 +102,11 @@ void popup_size_to_string(Popup *self, gchar *text)
self->a_text->texture[0].data.text.string = text;
RrMinsize(self->a_text, &textw, &texth);
/*XXX textw += ob_rr_theme->bevel * 2;*/
- texth += ob_rr_theme->bevel * 2;
+ texth += ob_rr_theme->padding * 2;
- self->h = texth + ob_rr_theme->bevel * 2;
+ self->h = texth + ob_rr_theme->padding * 2;
iconw = (self->hasicon ? texth : 0);
- self->w = textw + iconw + ob_rr_theme->bevel * (self->hasicon ? 3 : 2);
+ self->w = textw + iconw + ob_rr_theme->padding * (self->hasicon ? 3 : 2);
}
void popup_set_text_align(Popup *self, RrJustify align)
@@ -151,23 +151,23 @@ void popup_show(Popup *self, gchar *text, ObClientIcon *icon)
/* measure the shit out */
RrMinsize(self->a_text, &textw, &texth);
- /*XXX textw += ob_rr_theme->bevel * 2;*/
- texth += ob_rr_theme->bevel * 2;
+ /*XXX textw += ob_rr_theme->padding * 2;*/
+ texth += ob_rr_theme->padding * 2;
/* set the sizes up and reget the text sizes from the calculated
outer sizes */
if (self->h) {
h = self->h;
- texth = h - (t+b + ob_rr_theme->bevel * 2);
+ texth = h - (t+b + ob_rr_theme->padding * 2);
} else
- h = t+b + texth + ob_rr_theme->bevel * 2;
+ h = t+b + texth + ob_rr_theme->padding * 2;
iconw = (self->hasicon ? texth : 0);
if (self->w) {
w = self->w;
- textw = w - (l+r + iconw + ob_rr_theme->bevel *
+ textw = w - (l+r + iconw + ob_rr_theme->padding *
(self->hasicon ? 3 : 2));
} else
- w = l+r + textw + iconw + ob_rr_theme->bevel * (self->hasicon ? 3 : 2);
+ w = l+r + textw + iconw + ob_rr_theme->padding * (self->hasicon ? 3 : 2);
/* sanity checks to avoid crashes! */
if (w < 1) w = 1;
if (h < 1) h = 1;
@@ -209,19 +209,19 @@ void popup_show(Popup *self, gchar *text, ObClientIcon *icon)
self->a_text->surface.parent = self->a_bg;
self->a_text->surface.parentx = l + iconw +
- ob_rr_theme->bevel * (self->hasicon ? 2 : 1);
- self->a_text->surface.parenty = t + ob_rr_theme->bevel;
+ ob_rr_theme->padding * (self->hasicon ? 2 : 1);
+ self->a_text->surface.parenty = t + ob_rr_theme->padding;
XMoveResizeWindow(ob_display, self->text,
- l + iconw + ob_rr_theme->bevel * (self->hasicon ? 2 : 1),
- t + ob_rr_theme->bevel, textw, texth);
+ l + iconw + ob_rr_theme->padding * (self->hasicon ? 2 : 1),
+ t + ob_rr_theme->padding, textw, texth);
if (self->hasicon) {
if (iconw < 1) iconw = 1; /* sanity check for crashes */
self->a_icon->surface.parent = self->a_bg;
- self->a_icon->surface.parentx = l + ob_rr_theme->bevel;
- self->a_icon->surface.parenty = t + ob_rr_theme->bevel;
+ self->a_icon->surface.parentx = l + ob_rr_theme->padding;
+ self->a_icon->surface.parenty = t + ob_rr_theme->padding;
XMoveResizeWindow(ob_display, self->icon,
- l + ob_rr_theme->bevel, t + ob_rr_theme->bevel,
+ l + ob_rr_theme->padding, t + ob_rr_theme->padding,
iconw, texth);
}