aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dw/widget.cc6
-rw-r--r--lout/debug.hh10
2 files changed, 15 insertions, 1 deletions
diff --git a/dw/widget.cc b/dw/widget.cc
index ccded039..18748c4f 100644
--- a/dw/widget.cc
+++ b/dw/widget.cc
@@ -1117,6 +1117,12 @@ void Widget::setStyle (style::Style *style)
DBG_OBJ_SET_NUM ("style.height (raw)", style->height);
DBG_OBJ_SET_NUM ("style.min-height (raw)", style->minHeight);
DBG_OBJ_SET_NUM ("style.max-height (raw)", style->maxHeight);
+
+ if (style->backgroundColor)
+ DBG_OBJ_SET_COL ("style.background-color",
+ style->backgroundColor->getColor ());
+ else
+ DBG_OBJ_SET_SYM ("style.background-color", "transparent");
}
/**
diff --git a/lout/debug.hh b/lout/debug.hh
index 896564cf..e2839196 100644
--- a/lout/debug.hh
+++ b/lout/debug.hh
@@ -245,13 +245,20 @@
fflush (stdout); \
} D_STMT_END
-#define DBG_OBJ_SET_BOOL_O(obj, var, val) \
+#define DBG_OBJ_SET_BOOL_O(obj, var, val) \
D_STMT_START { \
printf (RTFL_PREFIX_FMT "obj-set:%p:%s:%s\n", \
RTFL_PREFIX_ARGS, obj, var, val ? "true" : "false"); \
fflush (stdout); \
} D_STMT_END
+#define DBG_OBJ_SET_COL(var, val) \
+ D_STMT_START { \
+ printf (RTFL_PREFIX_FMT "obj-set:%p:%s:#%06x\n", \
+ RTFL_PREFIX_ARGS, this, var, val); \
+ fflush (stdout); \
+ } D_STMT_END
+
#define DBG_OBJ_ARRSET_NUM(var, ind, val) \
D_STMT_START { \
printf (RTFL_PREFIX_FMT "obj-set:%p:%s.%d:%d\n", \
@@ -361,6 +368,7 @@
#define DBG_OBJ_SET_PTR_O(obj, var, val) D_STMT_NOP
#define DBG_OBJ_SET_BOOL(var, val) D_STMT_NOP
#define DBG_OBJ_SET_BOOL_O(obj, var, val) D_STMT_NOP
+#define DBG_OBJ_SET_COL(var, val) D_STMT_NOP
#define DBG_OBJ_ARRSET_NUM(var, ind, val) D_STMT_NOP
#define DBG_OBJ_ARRSET_SYM(var, ind, val) D_STMT_NOP
#define DBG_OBJ_ARRSET_STR(var, ind, val) D_STMT_NOP