summaryrefslogtreecommitdiff
path: root/lib/utils/svg_data.py
diff options
context:
space:
mode:
authorLex Neva <lexelby@users.noreply.github.com>2024-04-30 14:21:32 -0400
committerGitHub <noreply@github.com>2024-04-30 20:21:32 +0200
commit3f0f04abec4ef1d12c670bca866db76a5a7d4d6a (patch)
tree1a485e0a126d0a3d0619f2b7521081d9edcfe299 /lib/utils/svg_data.py
parent7af665806adc3194ff37393622b088043fec77c7 (diff)
simulator fixes (#2844)
* fix slide and control panel rendering bugs * clear marker lists when clearing stitch plan * switch simulator back to wx * remove unused function * fix off-by-one error in color bar * avoid overlapping command symbols of different types * don't maximize simulator * adjust alignment * remove unused API server * bugfix * focus entire simulator panel * rename simulator/realistic preview -> simulator * experimental: background color picker * set pagecolor to background color by default * satisfy macos * toggle jumps on drawing canvas * clear frog family --------- Co-authored-by: Kaalleen
Diffstat (limited to 'lib/utils/svg_data.py')
-rw-r--r--lib/utils/svg_data.py10
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