diff options
author | Harley Acheson <harley.acheson@gmail.com> | 2020-03-14 21:05:09 +0300 |
---|---|---|
committer | Harley Acheson <harley.acheson@gmail.com> | 2020-03-14 21:05:09 +0300 |
commit | a210b8297f5afe6eaf2d001e57c1e8b7e8429c52 (patch) | |
tree | b7760da467e778d34768183ea99cce590acbedd0 /release/datafiles/alert_icons_update.py | |
parent | a816a067ede6c8df3fc3a32bba2370a0ef179061 (diff) |
UI: Larger Alert Icons
Adding a set of larger icons for use in informational dialogs.
Differential Revision: https://developer.blender.org/D6859
Reviewed by Campbell Barton
Diffstat (limited to 'release/datafiles/alert_icons_update.py')
-rw-r--r-- | release/datafiles/alert_icons_update.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/release/datafiles/alert_icons_update.py b/release/datafiles/alert_icons_update.py new file mode 100644 index 00000000000..dba96c2126a --- /dev/null +++ b/release/datafiles/alert_icons_update.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python3 + +# This script updates icons from the SVG file +import os +import subprocess +import sys + +BASEDIR = os.path.abspath(os.path.dirname(__file__)) + +inkscape_path = 'inkscape' + +if sys.platform == 'darwin': + inkscape_app_path = '/Applications/Inkscape.app/Contents/Resources/script' + if os.path.exists(inkscape_app_path): + inkscape_path = inkscape_app_path + +cmd = ( + inkscape_path, + os.path.join(BASEDIR, "alert_icons.svg"), + "--export-width=1280", + "--export-height=256", + "--without-gui", + "--export-png=" + os.path.join(BASEDIR, "alert_icons.png"), +) +subprocess.check_call(cmd) |