@@ -106,7 +106,8 @@ def from_dict(cls, cfg_dict: dict):
106
106
cfg_dict ["ctrlMaxFontSize" ],
107
107
cfg_dict ["ctrlBkgndTransparency" ],
108
108
cfg_dict ["gridColumns" ],
109
- cfg_dict ["gridRows" ]
109
+ cfg_dict ["gridRows" ],
110
+ _get_color (cfg_dict .get ("ctrlUItapColor" , '' ))
110
111
)
111
112
return tmp_cls
112
113
@@ -140,6 +141,8 @@ class DeviceView(Control):
140
141
The num of grid columns on the edit view
141
142
num_grid_rows : int
142
143
The num of grid rows on the edit view
144
+ user_tappable_color : Color
145
+ The color of user table buttons on screen in controls
143
146
column_no : int, optional default is 1. Must be 1..3
144
147
The Dash App reports its screen size in columns. column_no allows you to specify which column no to load into.
145
148
Each control can store three configs that define how the device looks for Dash apps installed on single column
@@ -174,6 +177,7 @@ def __init__(
174
177
control_background_transparency = 0 ,
175
178
num_grid_columns = 22 ,
176
179
num_grid_rows = 32 ,
180
+ user_tappable_color = '' ,
177
181
column_no = 1
178
182
):
179
183
super ().__init__ ("DVVW" , control_id )
@@ -195,7 +199,8 @@ def __init__(
195
199
control_max_font_size ,
196
200
control_background_transparency ,
197
201
num_grid_columns ,
198
- num_grid_rows
202
+ num_grid_rows ,
203
+ user_tappable_color
199
204
)
200
205
)
201
206
self ._state_str = ""
@@ -231,6 +236,7 @@ def from_cfg_dict(cls, cfg_dict: dict, column_no=1):
231
236
cfg_dict ["ctrlBkgndTransparency" ],
232
237
cfg_dict ["gridColumns" ],
233
238
cfg_dict ["gridRows" ],
239
+ _get_color (cfg_dict .get ("ctrlUItapColor" , '' )),
234
240
column_no
235
241
)
236
242
0 commit comments