Blender Git Loki

Git Commits -> Revision 7fc60bf

Revision 7fc60bf by William Reynish (master)
April 17, 2020, 15:00 (GMT)
UI: Layout changes for new checkbox layout possibilities

Follow-up to previous commit.

Some examples:
{F8473507} {F8473508} {F8473509} {F8473510}
For more screenshots, please see D7430.

We use column or row headings here to bring more structure, and to give
the eye visual anchors which aid eye-scanning. The left-aligned
checkboxes likewise help with this. And we keep the adherence to the
center line, so the alignment matches up between the various buttons and
controls.

* Changes the property split percentage from 50/50% to 40/60%. This is
needed to give enough space for the checkboxes. But in most cases this
looks better anyway - see Transform panel. In some cases it simply
fills out the available space more efficently.
* Fix various hacks where we previously used manually defined splits.
When we did this, the alignment was never quite right, and the layout
code was a mess.
* Adds column headings to many places where a list of checkboxes all
share a common purpose or leading text.
* Add checkbox + value configurations various places where a checkbox
only serves to enable the value slider
* Removes most uses of grid flow layout. The grid flow layouts combine
poorly with column headings, and also they would mess alignment up
badly. The grid flow layouts also often made buttons and controls jump
around on the screen if you would just resize editors slightly,
causing visual confusion, making users lose their place. The logic for
at what time the list of items would re-flow was often flawed, jumping
to multiple columns too fast or too late - and frankly, the grid flow
layouts would often just look bad.

Maniphest Task: https://developer.blender.org/T65965

Differential Revision: https://developer.blender.org/D7430

Reviewed by: Brecht Van Lommel, Pablo Vazquez.

Most work here by William Reynish, few changes by Julian Eisel.

Commit Details:

Full Hash: 7fc60bff14a6241c4a51cbc57b93774a90a0ea13
Parent Commit: 219049b
Committed By: Julian Eisel
Lines Changed: +492, -709

20 Modified Paths:

/intern/cycles/blender/addon/ui.py (+84, -151) (Diff)
/release/scripts/startup/bl_ui/properties_data_armature.py (+1, -6) (Diff)
/release/scripts/startup/bl_ui/properties_data_camera.py (+16, -28) (Diff)
/release/scripts/startup/bl_ui/properties_data_curve.py (+6, -6) (Diff)
/release/scripts/startup/bl_ui/properties_data_empty.py (+5, -3) (Diff)
/release/scripts/startup/bl_ui/properties_data_mesh.py (+18, -24) (Diff)
/release/scripts/startup/bl_ui/properties_object.py (+18, -48) (Diff)
/release/scripts/startup/bl_ui/properties_output.py (+14, -43) (Diff)
/release/scripts/startup/bl_ui/properties_paint_common.py (+18, -12) (Diff)
/release/scripts/startup/bl_ui/properties_physics_common.py (+22, -17) (Diff)
/release/scripts/startup/bl_ui/properties_render.py (+10, -23) (Diff)
/release/scripts/startup/bl_ui/properties_view_layer.py (+16, -37) (Diff)
/release/scripts/startup/bl_ui/space_sequencer.py (+26, -31) (Diff)
/release/scripts/startup/bl_ui/space_text.py (+12, -9) (Diff)
/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py (+3, -2) (Diff)
/release/scripts/startup/bl_ui/space_userpref.py (+153, -169) (Diff)
/release/scripts/startup/bl_ui/space_view3d.py (+18, -15) (Diff)
/release/scripts/startup/bl_ui/space_view3d_toolbar.py (+37, -80) (Diff)
/source/blender/editors/interface/interface_layout.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_scene.c (+14, -4) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021