Blender Git Commits

Blender Git "temp-checkbox-layout-tweaks" branch commits.

April 17, 2020, 11:03 (GMT)
Merge branch 'temp-checkbox-layout-tweaks-apply' into temp-checkbox-layout-tweaks
April 17, 2020, 11:02 (GMT)
Merge branch 'temp-checkbox-layout-tweaks-patch' into temp-checkbox-layout-tweaks-apply
April 17, 2020, 10:49 (GMT)
Don't compare decorator button against itself
April 17, 2020, 10:46 (GMT)
Merge branch 'temp-checkbox-layout-tweaks-patch' into temp-checkbox-layout-tweaks-apply
April 17, 2020, 10:46 (GMT)
Merge branch 'temp-checkbox-layout-tweaks-patch' into temp-checkbox-layout-tweaks
April 17, 2020, 10:45 (GMT)
Fix inconsistent checkbox text padding with different DPIs
April 16, 2020, 19:27 (GMT)
Fix expanded enums using columns within split layout
April 16, 2020, 19:26 (GMT)
Fix expanded enums using columns within split layout
April 16, 2020, 19:03 (GMT)
Merge branch 'temp-checkbox-layout-tweaks-patch' into temp-checkbox-layout-tweaks-apply
April 16, 2020, 19:02 (GMT)
Merge branch 'temp-checkbox-layout-tweaks-patch' into temp-checkbox-layout-tweaks
April 16, 2020, 19:02 (GMT)
Merge branch 'master' into temp-checkbox-layout-tweaks-patch
April 14, 2020, 17:24 (GMT)
UI: Layout changes for new checkbox layout possibilities

Follow-up to D7427.

Screenshots:
[TODO]

Main changes:
* Changes the split percentage from 50/50% to 40/60%.
* ... [TODO]

Most changes here are by @billreynish.

Maniphest Tasks: T65965

Differential Revision: https://developer.blender.org/D7430
April 14, 2020, 16:56 (GMT)
UI: Better split layout support for checkboxes

Makes these kinds of layouts possible:

Best test this in the `temp-checkbox-changes` branch which contains layout
tweaks all over to make good use of the changes here. These will be submitted
separately.
Patch on top of D7409.

Main changes:
* Add support for row and column headers (i.e.
`uiLayout.column(heading="Foo")`, `uiLayout.row(heading="Bar")). If the
first property added to this layout doesn't insert anything into the label
split column, the heading is inserted there. Otherwise, it's inserted as own
item.
* Add support for manually inserting decorators for an existing item
(`uiLayout.prop_decorator()`). That way layout creators can manually insert
this, which was the only way I saw to support these layouts:
* Autogenerated layouts for operator properties look bad if there are only
checkboxes (which only use half the region width). So before creating the
layout, we iterate over visible properties and disable split layout if all
are booleans. I think this is fine, if needed we could also add layout hints
to operators.
* `uiTemplateOperatorPropertyButs()` now handles macros itself, the caller
used to be responsible for this. Code that didn't handle these so far never
used macros I think, so this change should be visible.
* Remove manual property split layout from autogenerated operator properties
layout.
* Padding of checkboxes is tweaked to make their label visually more connected
to the checkboxes.
* Support split layout for menus (should work for `uiLayout.menu()`,
`.operator_menu_enum()`, `.prop_menu_enum()`, maybe more)
* Add `uiLayout.`

Maniphest Task: T65965

Reviewers: brecht pablovazquez billreynish
April 14, 2020, 15:32 (GMT)
Cleanup: PEP8 for python changes
April 14, 2020, 15:27 (GMT)
Merge branch 'master' into temp-node-socket-buttons
April 14, 2020, 15:26 (GMT)
Cleanup: PEP8 for python changes
April 14, 2020, 14:32 (GMT)
Merge branch 'master' into temp-checkbox-layout-tweaks
April 14, 2020, 12:39 (GMT)
Don't use split layout for operator properties if all are checkboxes

Having a split layout looks broken if all items are checkboxes and there
is no heading text, because it only uses half the width then.
So this checks if all visible properties are booleans and if so,
disables the split layout. A bit hacky but this should generally work.
If needed we can add more control in future (e.g. default layout hints
for operators).
April 13, 2020, 16:22 (GMT)
Support using property split for menu items & use for output FPS setting

We could add an extra parameter for the label string, for now we can
just use the headings. So if a layout heading is available (set and not
already added) use that to enable the split layout.
April 13, 2020, 15:36 (GMT)
Merge branch 'temp-node-socket-buttons' into temp-checkbox-layout-tweaks
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021