* Fix incorrect handling of window properties on 64 bit arches.
* Fix pixelsize being the same as size for pango, now it is correct.
* Fix drawing of icons taller than wide, eg gimp.
- * Add a 'osx' gradient, like horizontal but mirrored in the center and
- 'split' which is like vertical but nonlinear in a fancy way.
+ * Add a 'mirrorhorizontal' gradient, like horizontal but mirrored in the
+ center and 'splitvertical' which is like vertical but nonlinear in a fancy
+ way.
* Translations for de, hr and zh_TW added.
* Add initial per-app settings support.
* Fix some outstanding issues with 64-bit support.
static void highlight(RrPixel32 *x, RrPixel32 *y, gboolean raised);
static void gradient_solid(RrAppearance *l, gint w, gint h);
-static void gradient_split(RrAppearance *a, gint w, gint h);
+static void gradient_splitvertical(RrAppearance *a, gint w, gint h);
static void gradient_vertical(RrSurface *sf, gint w, gint h);
static void gradient_horizontal(RrSurface *sf, gint w, gint h);
-static void gradient_osx(RrSurface *sf, gint w, gint h);
+static void gradient_mirrorhorizontal(RrSurface *sf, gint w, gint h);
static void gradient_diagonal(RrSurface *sf, gint w, gint h);
static void gradient_crossdiagonal(RrSurface *sf, gint w, gint h);
static void gradient_pyramid(RrSurface *sf, gint inw, gint inh);
case RR_SURFACE_SOLID:
gradient_solid(a, w, h);
break;
- case RR_SURFACE_SPLIT:
- gradient_split(a, w, h);
+ case RR_SURFACE_SPLIT_VERTICAL:
+ gradient_splitvertical(a, w, h);
break;
case RR_SURFACE_VERTICAL:
gradient_vertical(&a->surface, w, h);
case RR_SURFACE_HORIZONTAL:
gradient_horizontal(&a->surface, w, h);
break;
- case RR_SURFACE_OSX:
- gradient_osx(&a->surface, w, h);
+ case RR_SURFACE_MIRROR_HORIZONTAL:
+ gradient_mirrorhorizontal(&a->surface, w, h);
break;
case RR_SURFACE_DIAGONAL:
gradient_diagonal(&a->surface, w, h);
} \
}
-static void gradient_split(RrAppearance *a, gint w, gint h)
+static void gradient_splitvertical(RrAppearance *a, gint w, gint h)
{
gint x, y1, y3, r, g, b;
RrSurface *sf = &a->surface;
*(data + y * w) = current;
}
-static void gradient_osx(RrSurface *sf, gint w, gint h)
+static void gradient_mirrorhorizontal(RrSurface *sf, gint w, gint h)
{
gint x, y;
RrPixel32 *data = sf->pixel_data, *datav;
RR_SURFACE_NONE,
RR_SURFACE_PARENTREL,
RR_SURFACE_SOLID,
- RR_SURFACE_SPLIT,
+ RR_SURFACE_SPLIT_VERTICAL,
RR_SURFACE_HORIZONTAL,
RR_SURFACE_VERTICAL,
RR_SURFACE_DIAGONAL,
RR_SURFACE_CROSS_DIAGONAL,
RR_SURFACE_PYRAMID,
- RR_SURFACE_OSX
+ RR_SURFACE_MIRROR_HORIZONTAL,
} RrSurfaceColorType;
typedef enum {
*grad = RR_SURFACE_CROSS_DIAGONAL;
else if (strstr(tex, "pyramid") != NULL)
*grad = RR_SURFACE_PYRAMID;
- else if (strstr(tex, "osx") != NULL)
- *grad = RR_SURFACE_OSX;
+ else if (strstr(tex, "mirrorhorizontal") != NULL)
+ *grad = RR_SURFACE_MIRROR_HORIZONTAL;
else if (strstr(tex, "horizontal") != NULL)
*grad = RR_SURFACE_HORIZONTAL;
else if (strstr(tex, "vertical") != NULL)
*grad = RR_SURFACE_VERTICAL;
- else if (strstr(tex, "split") != NULL)
- *grad = RR_SURFACE_SPLIT;
+ else if (strstr(tex, "splitvertical") != NULL)
+ *grad = RR_SURFACE_SPLIT_VERTICAL;
else
*grad = RR_SURFACE_DIAGONAL;
} else {
*.text.justify: left
!! Menu
-menu.title.bg: flat gradient split
+menu.title.bg: flat gradient splitvertical
menu.title.bg.color: #5c4e45
menu.title.bg.colorTo: #51443e
menu.title.text.color: #ffffff
menu.items.text.color: #000000
menu.items.disabled.text.color: #737573
-menu.items.active.bg: flat gradient split
+menu.items.active.bg: flat gradient splitvertical
menu.items.active.bg.color: #5c4e45
menu.items.active.bg.colorTo:#51443e
menu.items.active.text.color: #f9f2ee
!! Active Windows
-window.active.title.bg: flat gradient split
+window.active.title.bg: flat gradient splitvertical
window.active.title.bg.color: #5c4e45
window.active.title.bg.colorTo: #51443e
window.active.*.bg.border.color: #000000
!!Active
-window.active.title.bg: flat border gradient osx
+window.active.title.bg: flat border gradient mirrorhorizontal
window.active.title.bg.color: #3465A4
window.active.title.bg.colorTo: #407CCA
window.active.title.bg.border.color: #699acd
!!Inactive
-window.inactive.title.bg: flat border gradient osx
+window.inactive.title.bg: flat border gradient mirrorhorizontal
window.inactive.title.bg.color: #dcdcdc
window.inactive.title.bg.colorTo: #eeeeec
window.inactive.title.bg.border.color: #efefef