diff options
author | Severin <eiseljulian@gmail.com> | 2019-01-04 23:40:16 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2019-01-05 00:18:23 +0300 |
commit | a77b63c56943ebd0046f738e6abbea4c85dc65b6 (patch) | |
tree | 173dddb28838298d2319f4f062586ba8985728c1 /source/blender/makesdna | |
parent | 4b486eaec9763108fd471b7705133c45116df966 (diff) |
UI: Preferences Redesign Part 2
(Part 1 was 00963afc14978b)
Does the following changes visible to users:
* Use panels and sub-panels for more structured & logical grouping
* Re-organized options more logically than before (see images in D4148)
* Use flow layout (single column by default).
* New layout uses horizontal margin if there's enough space.
* Change size of Preferences window to suit new layout.
* Move keymap related options from "Input" into own section.
* Own, left-bottom aligned region for Save Preferences button.
* Adjustments of names, tooltips & icons.
* Move buttons from header into the main region (except editor switch).
* Hide Preferences header when opened in temporary window.
* Use full area width for header.
* Don't use slider but regular number widget for UI scale.
* Gray out animation player path option if player isn't "Custom"
Internal changes:
* Rearrange RNA properties to match changed UI structure.
* Introduces new "EXECUTE" region type, see reasoning in D3982.
* Changes to panel layout and AZone code for dynamic panel region.
* Bumps subversion and does versioning for new regions.
RNA changes are documented in the release notes:
https://wiki.blender.org/wiki/Reference/Release_Notes/2.80/Python_API/Preferences_API
Design & implementation mostly done by @billreynish and myself.
I recommend checking out the screenshots posted by William:
https://developer.blender.org/D4148#93787
Reviewed By: brecht
Maniphest Tasks: T54115
Differential Revision: https://developer.blender.org/D4148
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_screen_types.h | 2 | ||||
-rw-r--r-- | source/blender/makesdna/DNA_userdef_types.h | 13 |
2 files changed, 9 insertions, 6 deletions
diff --git a/source/blender/makesdna/DNA_screen_types.h b/source/blender/makesdna/DNA_screen_types.h index a62e7bc5036..cdf67f1e11d 100644 --- a/source/blender/makesdna/DNA_screen_types.h +++ b/source/blender/makesdna/DNA_screen_types.h @@ -476,6 +476,8 @@ enum { RGN_TYPE_HUD = 8, /* Region to navigate the main region from (RGN_TYPE_WINDOW). */ RGN_TYPE_NAV_BAR = 9, + /* A place for buttons to trigger execution of somthing that was set up in other regions. */ + RGN_TYPE_EXECUTE = 10, }; /* use for function args */ #define RGN_TYPE_ANY -1 diff --git a/source/blender/makesdna/DNA_userdef_types.h b/source/blender/makesdna/DNA_userdef_types.h index 3f3fa6819ae..41b8308c8f8 100644 --- a/source/blender/makesdna/DNA_userdef_types.h +++ b/source/blender/makesdna/DNA_userdef_types.h @@ -236,7 +236,7 @@ typedef struct ThemeSpace { /* navigation bar regions */ char navigation_bar[4]; /* region background */ - int pad2; + char execution_buts[4]; /* region background */ /* float panel */ /* char panel[4]; unused */ @@ -687,14 +687,15 @@ typedef enum eUserPref_Section { USER_SECTION_INPUT = 5, USER_SECTION_ADDONS = 6, USER_SECTION_LIGHT = 7, + USER_SECTION_KEYMAP = 8, #ifdef WITH_USERDEF_WORKSPACES - USER_SECTION_WORKSPACE_CONFIG = 8, - USER_SECTION_WORKSPACE_ADDONS = 9, - USER_SECTION_WORKSPACE_KEYMAPS = 10, + USER_SECTION_WORKSPACE_CONFIG = 9, + USER_SECTION_WORKSPACE_ADDONS = 10, + USER_SECTION_WORKSPACE_KEYMAPS = 11, #endif #ifdef WITH_USERDEF_SYSTEM_SPLIT - USER_SECTION_SYSTEM_DISPLAY = 11, - USER_SECTION_SYSTEM_DEVICES = 12, + USER_SECTION_SYSTEM_DISPLAY = 12, + USER_SECTION_SYSTEM_DEVICES = 13, #endif } eUserPref_Section; |