Skip to content

Commit bb3ba52

Browse files
committed
widget desc: Add dark_background attr
1 parent 088d2fa commit bb3ba52

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

orangecanvas/registry/description.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ def __init__(self, name, id, category=None, version=None,
361361
maintainer=None, maintainer_email=None,
362362
help=None, help_ref=None, url=None, keywords=None,
363363
priority=sys.maxsize,
364-
icon=None, background=None,
364+
icon=None, background=None, dark_background=None,
365365
replaces=None, short_name=None,
366366
):
367367
if inputs is None:
@@ -415,6 +415,7 @@ def __init__(self, name, id, category=None, version=None,
415415
self.priority = priority
416416
self.icon = icon
417417
self.background = background
418+
self.dark_background = dark_background
418419
self.replaces = list(replaces)
419420

420421
def __str__(self):

orangecanvas/registry/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ def widget_from_module_globals(module):
7373
priority = getattr(module, "PRIORITY", sys.maxsize)
7474
keywords = getattr(module, "KEYWORDS", None)
7575
background = getattr(module, "BACKGROUND", None)
76+
dark_background = getattr(module, "DARK_BACKGROUND", None)
7677
replaces = getattr(module, "REPLACES", None)
7778

7879
inputs = list(map(input_channel_from_args, inputs))
@@ -100,6 +101,7 @@ def widget_from_module_globals(module):
100101
priority=priority,
101102
icon=icon,
102103
background=background,
104+
dark_background=dark_background,
103105
replaces=replaces)
104106

105107

0 commit comments

Comments
 (0)