summaryrefslogtreecommitdiffstats
path: root/include/theme.h
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-01-05 18:22:34 +0100
committerDave Davenport <qball@gmpclient.org>2017-01-05 18:22:34 +0100
commit4cc21b93a5bd1a9e0abd329862473d88801a47a9 (patch)
tree951bab877c413b6b860a9c38e13ddc251601ac39 /include/theme.h
parent50479057bcc33c4bcedf803d64ec5a860af442af (diff)
Allow linking to top level properties.
Diffstat (limited to 'include/theme.h')
-rw-r--r--include/theme.h10
1 files changed, 8 insertions, 2 deletions
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;
/**