Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve accessibility for the display of the active room's flags. #257

Merged
merged 1 commit into from
Dec 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions addons/io_hubs_addon/debugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,14 +563,16 @@ def draw(self, context):
row.label(text="Waiting for room...")

params_icons = {}
for key in PARAMS_TO_STRING.keys():
params_icons.update(
{key: hubs_icons["red-dot-small.png"].icon_id})
if isWebdriverAlive():
for key in PARAMS_TO_STRING.keys():
params_icons[key] = 'PANEL_CLOSE'
params = get_current_room_params()
for param in params:
if param in params_icons:
params_icons[param] = hubs_icons["green-dot-small.png"].icon_id
params_icons[param] = 'CHECKMARK'
else:
for key in PARAMS_TO_STRING.keys():
params_icons[key] = 'REMOVE'

box = self.layout.box()
row = box.row(align=True)
Expand All @@ -587,7 +589,7 @@ def draw(self, context):
key)
grid.label(text="Is Active?")
for key in PARAMS_TO_STRING.keys():
grid.label(icon_value=params_icons[key])
grid.label(icon=params_icons[key])

else:
row = main_box.row()
Expand Down
Binary file removed addons/io_hubs_addon/icons/green-dot-small.png
Binary file not shown.
Binary file removed addons/io_hubs_addon/icons/red-dot-small.png
Binary file not shown.