diff options
Diffstat (limited to 'lib/utils/svg_data.py')
| -rw-r--r-- | lib/utils/svg_data.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/utils/svg_data.py b/lib/utils/svg_data.py new file mode 100644 index 00000000..c3ef672a --- /dev/null +++ b/lib/utils/svg_data.py @@ -0,0 +1,10 @@ +# Authors: see git history +# +# Copyright (c) 2024 Authors +# Licensed under the GNU GPL version 3.0 or later. See the file LICENSE for details. + +def get_pagecolor(namedview, default_color='white'): + pagecolor = default_color + if namedview is not None: + pagecolor = namedview.get('pagecolor', pagecolor) + return pagecolor |
