From 7fc0053c27e5e9ba3cc946898c7c11a8545f2777 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Tue, 2 Jun 2020 15:04:46 -0400 Subject: UI: Fix T77173: Report Background Colors for 2.83 Release This is a temporary solution for T77173 for the 2.83 release. D7203 provides a more long term solution for future releases. This adds theme colors for the three report backgrounds, setting them to the color used in 2.82. A separate commit in the addons repository will follow for changes to the bundled themes. Differential Revision: https://developer.blender.org/D7908 --- source/blender/blenloader/intern/versioning_userdef.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/blender/blenloader') diff --git a/source/blender/blenloader/intern/versioning_userdef.c b/source/blender/blenloader/intern/versioning_userdef.c index a426e49dd77..abc2e00e9e3 100644 --- a/source/blender/blenloader/intern/versioning_userdef.c +++ b/source/blender/blenloader/intern/versioning_userdef.c @@ -216,6 +216,12 @@ static void do_versions_theme(const UserDef *userdef, bTheme *btheme) btheme->tui.transparent_checker_size = U_theme_default.tui.transparent_checker_size; } + if (!USER_VERSION_ATLEAST(283, 18)) { + FROM_DEFAULT_V4_UCHAR(space_info.info_report_error); + FROM_DEFAULT_V4_UCHAR(space_info.info_report_warning); + FROM_DEFAULT_V4_UCHAR(space_info.info_report_info); + } + /** * Versioning code until next subversion bump goes here. * -- cgit v1.2.3