summaryrefslogtreecommitdiff
path: root/src/theme.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-06-06 04:00:22 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-06-06 04:00:22 +0000
commit875e6dc0f9ada50de7810025897893d04731bea0 (patch)
tree17d85173cb2f514a374202fc66afb13db4dd5af1 /src/theme.h
parent7df9ce1731d122116b25fd2f89bc6e69ccee019f (diff)
downloadmetacity-875e6dc0f9ada50de7810025897893d04731bea0.tar.gz
metacity-875e6dc0f9ada50de7810025897893d04731bea0.tar.bz2
parse "shade/foo/factor" as a color (colorize_pixbuf): remove the unused
2002-06-05 Havoc Pennington <hp@pobox.com> * src/theme.c (meta_color_spec_new_from_string): parse "shade/foo/factor" as a color (colorize_pixbuf): remove the unused hsv_to_rgb and vice-versa stuff, add the gtk_style_shade stuff. (meta_color_spec_render): render the shaded color spec * src/theme.h (struct _MetaColorSpec): add "shade" mode to MetaColorSpec.
Diffstat (limited to 'src/theme.h')
-rw-r--r--src/theme.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/theme.h b/src/theme.h
index bcf8506..df946af 100644
--- a/src/theme.h
+++ b/src/theme.h
@@ -143,7 +143,8 @@ typedef enum
{
META_COLOR_SPEC_BASIC,
META_COLOR_SPEC_GTK,
- META_COLOR_SPEC_BLEND
+ META_COLOR_SPEC_BLEND,
+ META_COLOR_SPEC_SHADE
} MetaColorSpecType;
typedef enum
@@ -176,6 +177,10 @@ struct _MetaColorSpec
MetaColorSpec *background;
double alpha;
} blend;
+ struct {
+ MetaColorSpec *base;
+ double factor;
+ } shade;
} data;
};