Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2021-09-30 16:28:44 +0300
committerAntonio Vazquez <blendergit@gmail.com>2021-11-04 10:33:59 +0300
commit74ef424cb78c68b161a97ff6f5ebc100e8905dd4 (patch)
tree180c798a2977725713124822e627d8cf1c828b11
parent08c4f134d290be0229d4cc1cabcaa595efe93360 (diff)
Revert "GPencil: Change default template for better contrast in header"
This reverts commit 5d42ea036999a7e82dbc03947968f4ad61093d06.
-rw-r--r--release/scripts/startup/bl_app_templates_system/2D_Animation/__init__.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/release/scripts/startup/bl_app_templates_system/2D_Animation/__init__.py b/release/scripts/startup/bl_app_templates_system/2D_Animation/__init__.py
index f8b504b2e34..c8328f5ee42 100644
--- a/release/scripts/startup/bl_app_templates_system/2D_Animation/__init__.py
+++ b/release/scripts/startup/bl_app_templates_system/2D_Animation/__init__.py
@@ -54,26 +54,11 @@ def update_factory_startup_grease_pencils():
gpd.onion_keyframe_type = 'ALL'
-def update_factory_startup_theme():
- # To prevent saving over the current theme Preferences,
- # store the current state of use_preferences_save to use later.
- preferences = bpy.context.preferences
- save_preferences_state = preferences.use_preferences_save
-
- # Turn use_preferences_save off and set header background alpha.
- preferences.use_preferences_save = False
- preferences.themes['Default'].view_3d.space.header[3] = 0.8
-
- # Restore the original use_preferences_save status.
- preferences.use_preferences_save = save_preferences_state
-
-
@persistent
def load_handler(_):
update_factory_startup_screens()
update_factory_startup_scenes()
update_factory_startup_grease_pencils()
- update_factory_startup_theme()
def register():