From a210b8297f5afe6eaf2d001e57c1e8b7e8429c52 Mon Sep 17 00:00:00 2001 From: Harley Acheson Date: Sat, 14 Mar 2020 11:05:09 -0700 Subject: 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 --- release/datafiles/alert_icons.png | Bin 0 -> 38642 bytes release/datafiles/alert_icons.svg | 185 ++++++++++++++++++++++ release/datafiles/alert_icons_update.py | 25 +++ release/datafiles/userdef/userdef_default_theme.c | 2 +- 4 files changed, 211 insertions(+), 1 deletion(-) create mode 100644 release/datafiles/alert_icons.png create mode 100644 release/datafiles/alert_icons.svg create mode 100644 release/datafiles/alert_icons_update.py (limited to 'release') diff --git a/release/datafiles/alert_icons.png b/release/datafiles/alert_icons.png new file mode 100644 index 00000000000..5b6385b2325 Binary files /dev/null and b/release/datafiles/alert_icons.png differ diff --git a/release/datafiles/alert_icons.svg b/release/datafiles/alert_icons.svg new file mode 100644 index 00000000000..0f30b4ad47b --- /dev/null +++ b/release/datafiles/alert_icons.svg @@ -0,0 +1,185 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + 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) diff --git a/release/datafiles/userdef/userdef_default_theme.c b/release/datafiles/userdef/userdef_default_theme.c index 2c1e648d33d..f87e6e9d86d 100644 --- a/release/datafiles/userdef/userdef_default_theme.c +++ b/release/datafiles/userdef/userdef_default_theme.c @@ -483,7 +483,7 @@ const bTheme U_theme_default = { .info_selected_text = RGBA(0xffffffff), .info_error = RGBA(0xff613dff), .info_error_text = RGBA(0xffffffff), - .info_warning = RGBA(0xb36a00ff), + .info_warning = RGBA(0xf5bc41ff), .info_warning_text = RGBA(0xffffffff), .info_info = RGBA(0x1d4383ff), .info_info_text = RGBA(0xffffffff), -- cgit v1.2.3