From 688a8c69a255321fd8ffaf8f65fa0eb0fcda7e76 Mon Sep 17 00:00:00 2001 From: Scott K Logan Date: Mon, 26 Jan 2015 22:02:25 -0800 Subject: [PATCH] rqt_reconfigure: Fix background colors for dark themes Instead of specifically specifying the background color to make the colors alternate, modify the theme's set background color to be "lighter" and "darker". --- rqt_reconfigure/src/rqt_reconfigure/paramedit_widget.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rqt_reconfigure/src/rqt_reconfigure/paramedit_widget.py b/rqt_reconfigure/src/rqt_reconfigure/paramedit_widget.py index 46567238d0..aeb0c20112 100644 --- a/rqt_reconfigure/src/rqt_reconfigure/paramedit_widget.py +++ b/rqt_reconfigure/src/rqt_reconfigure/paramedit_widget.py @@ -110,7 +110,8 @@ def show_reconf(self, dynreconf_widget): # Add color to alternate the rim of the widget. LayoutUtil.alternate_color(self._dynreconf_clients.itervalues(), - [Qt.white, Qt.lightGray]) + [self.palette().background().color().lighter(125), + self.palette().background().color().darker(125)]) def close(self): for dc in self._dynreconf_clients: