Blender Git Loki
Git Commits -> Revision 93544b6
Revision 93544b6 by Pablo Vazquez (master) October 17, 2021, 16:31 (GMT) |
UI: Visual style update to panels Back in Blender 2.30, the GUI project brought panels into Blender among other important visual updates. For the first time it was possible to move the wall of buttons around. Providing a clear separation between sections (it even allowed the grouping of panels in tabs!) During the 2.5 redesign, the separation between panels became a line on top of each panel, and panels received theme settings for background and header colors. The default theme used the same color for both. In 2.8 the background color of panels was different from headers in the default theme, so the separator line was removed. While the separator line wasn't elegant (only on top, non-themeable, hard-coded emboss effect), it provided a sort of separation between panels. This patch solves the panels-separation by simply adding a margin space around them (not visible in default theme yet). Even though the margin reduces the width of the working area slightly, it makes room for the upcoming always-visible scrollbars. Other adjustments: * Use arrow icon instead of triangle to collapse/expand * Use rounded corners to match the rest of the UI (editor corners, nodes, etc). {F10953929, size=full} Margin on panels makes use of the `style->panelouter` property that hasn't been used in a while. Also slight tweaks to `boxspace` and `templatespace` style properties so they are multiples of 2 and operations on them round better. There is technically no need to update the themes for them to work, so no theme changes are included in this patch. {F10953931, size=full} {F10953933, size=full} {F10953934, size=full} {F10954003, size=full} ---- A new theme setting under Style controls the roundness of all panels (added it to Style instead of ThemeSpace because I think controlling the panel roundness per editor is a bit overkill): {F11091561, size=full, autoplay, loop} Reviewed By: HooglyBoogly Differential Revision: https://developer.blender.org/D12814 |
Commit Details:
Full Hash: 93544b641bd6687c9b0af3e203a4069977116a78
Parent Commit: 19740b2
Lines Changed: +98, -136
19 Modified Paths:
/release/datafiles/userdef/userdef_default_theme.c (+1, -0) (Diff)
/release/scripts/presets/interface_theme/blender_light.xml (+1, -0) (Diff)
/release/scripts/startup/bl_ui/properties_constraint.py (+1, -2) (Diff)
/release/scripts/startup/bl_ui/space_userpref.py (+1, -0) (Diff)
/source/blender/blenkernel/BKE_blender_version.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_screen.h (+0, -2) (Diff)
/source/blender/blenloader/intern/versioning_userdef.c (+4, -0) (Diff)
/source/blender/editors/animation/fmodifier_ui.c (+2, -2) (Diff)
/source/blender/editors/include/UI_interface.h (+2, -1) (Diff)
/source/blender/editors/interface/interface_intern.h (+1, -1) (Diff)
/source/blender/editors/interface/interface_panel.c (+62, -114) (Diff)
/source/blender/editors/screen/area.c (+4, -5) (Diff)
/source/blender/editors/space_spreadsheet/spreadsheet_row_filter_ui.cc (+1, -1) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencil_ui_common.c (+2, -2) (Diff)
/source/blender/makesdna/DNA_userdef_types.h (+4, -0) (Diff)
/source/blender/makesrna/intern/rna_ui.c (+0, -1) (Diff)
/source/blender/makesrna/intern/rna_userdef.c (+7, -0) (Diff)
/source/blender/modifiers/intern/MOD_ui_common.c (+2, -2) (Diff)
/source/blender/shader_fx/intern/FX_ui_common.c (+2, -2) (Diff)
/release/scripts/presets/interface_theme/blender_light.xml (+1, -0) (Diff)
/release/scripts/startup/bl_ui/properties_constraint.py (+1, -2) (Diff)
/release/scripts/startup/bl_ui/space_userpref.py (+1, -0) (Diff)
/source/blender/blenkernel/BKE_blender_version.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_screen.h (+0, -2) (Diff)
/source/blender/blenloader/intern/versioning_userdef.c (+4, -0) (Diff)
/source/blender/editors/animation/fmodifier_ui.c (+2, -2) (Diff)
/source/blender/editors/include/UI_interface.h (+2, -1) (Diff)
/source/blender/editors/interface/interface_intern.h (+1, -1) (Diff)
/source/blender/editors/interface/interface_panel.c (+62, -114) (Diff)
/source/blender/editors/screen/area.c (+4, -5) (Diff)
/source/blender/editors/space_spreadsheet/spreadsheet_row_filter_ui.cc (+1, -1) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpencil_ui_common.c (+2, -2) (Diff)
/source/blender/makesdna/DNA_userdef_types.h (+4, -0) (Diff)
/source/blender/makesrna/intern/rna_ui.c (+0, -1) (Diff)
/source/blender/makesrna/intern/rna_userdef.c (+7, -0) (Diff)
/source/blender/modifiers/intern/MOD_ui_common.c (+2, -2) (Diff)
/source/blender/shader_fx/intern/FX_ui_common.c (+2, -2) (Diff)