diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2018-11-25 18:21:35 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2018-11-25 19:08:58 +0300 |
commit | b00963afc14978b2de7f2859525bf89612aa4aee (patch) | |
tree | f83ec02a96b84019735037528e31e827dcc0dbd6 /source/blender/makesdna/DNA_userdef_types.h | |
parent | 3135ed376bba357f3a41f7025db3fb79fd6c0f61 (diff) |
UI: Initial User-Preferences redesign
Implements the first changes for T54115:
* Rename "User Preferences" window to "Settings" in the UI.
We'll likely put workspace settings in there, separate from the global
user settings. System settings should become separate from user
settings in future to allow settings for specific hardware.
* Add sidebar region for navigation (scrolls independently).
Addresses space problems, so we can add more categories as needed now.
* Increase size of Settings window to compensate new navigation bar.
* Group sections into User Preferences and System.
Icons for section groups by Andrzej Ambroz. Thanks!
* Bumps subversion for file compatibility.
Screenshot: https://developer.blender.org/F5715337
I also added categories for future work, but commented them out.
We may also want to redesign contents of each section now.
Reviewers: brecht, campbellbarton
Differential Revision: https://developer.blender.org/D3088
Design Task: https://developer.blender.org/T54115
Diffstat (limited to 'source/blender/makesdna/DNA_userdef_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_userdef_types.h | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/source/blender/makesdna/DNA_userdef_types.h b/source/blender/makesdna/DNA_userdef_types.h index c9d16351635..0eed17cf1ff 100644 --- a/source/blender/makesdna/DNA_userdef_types.h +++ b/source/blender/makesdna/DNA_userdef_types.h @@ -677,16 +677,29 @@ extern UserDef U; /* from blenkernel blender.c */ /* ***************** USERDEF ****************** */ +/* Toggles for unfinished 2.8 UserPref design. */ +//#define WITH_USERDEF_WORKSPACES +//#define WITH_USERDEF_SYSTEM_SPLIT + /* UserDef.userpref (UI active_section) */ typedef enum eUserPref_Section { - USER_SECTION_INTERFACE = 0, - USER_SECTION_EDIT = 1, - USER_SECTION_FILE = 2, - USER_SECTION_SYSTEM = 3, - USER_SECTION_THEME = 4, - USER_SECTION_INPUT = 5, - USER_SECTION_ADDONS = 6, - USER_SECTION_LIGHT = 7, + USER_SECTION_INTERFACE = 0, + USER_SECTION_EDIT = 1, + USER_SECTION_SYSTEM_FILES = 2, + USER_SECTION_SYSTEM_GENERAL = 3, + USER_SECTION_THEME = 4, + USER_SECTION_INPUT = 5, + USER_SECTION_ADDONS = 6, + USER_SECTION_LIGHT = 7, +#ifdef WITH_USERDEF_WORKSPACES + USER_SECTION_WORKSPACE_CONFIG = 8, + USER_SECTION_WORKSPACE_ADDONS = 9, + USER_SECTION_WORKSPACE_KEYMAPS = 10, +#endif +#ifdef WITH_USERDEF_SYSTEM_SPLIT + USER_SECTION_SYSTEM_DISPLAY = 11, + USER_SECTION_SYSTEM_DEVICES = 12, +#endif } eUserPref_Section; /* UserDef.userpref_flag (State of the user preferences UI). */ |