From 4cc21b93a5bd1a9e0abd329862473d88801a47a9 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Thu, 5 Jan 2017 18:22:34 +0100 Subject: Allow linking to top level properties. --- include/theme.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'include/theme.h') diff --git a/include/theme.h b/include/theme.h index 28550060..a0b55675 100644 --- a/include/theme.h +++ b/include/theme.h @@ -55,6 +55,8 @@ typedef enum { P_COLOR, /** Padding */ P_PADDING, + /** Link to global setting */ + P_LINK, } PropertyType; /** @@ -76,14 +78,14 @@ typedef struct * Padding */ typedef struct -{ + { Distance top; Distance right; Distance bottom; Distance left; } Padding; -typedef struct { +typedef struct Property { char *name; PropertyType type; union { @@ -93,6 +95,10 @@ typedef struct { int b; ThemeColor color; Padding padding; + struct { + char *name; + struct Property *ref; + } link; } value; } Property; /** -- cgit v1.2.3