From 17ebbdf1c17dab4872d2b3deea77a35524fe14b9 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Tue, 21 Jul 2020 11:13:18 -0400 Subject: UI: Use consistent layout for custom operator UI Operators are one of the last places in Blender to use older UI designs that don't fit in with recent style conventions. This commit updates these custom operator UI callbacks for consistency and clarity. Some of the code is also simplified a lot. Some of the older operator layouts were much more complex (in terms of code) than they needed to be. See the differential revision for a before and after screenshot of each operator. Differential Revision: https://developer.blender.org/D8326 --- source/blender/editors/sound/sound_ops.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/editors/sound') diff --git a/source/blender/editors/sound/sound_ops.c b/source/blender/editors/sound/sound_ops.c index 2e52f3aa8a8..050dca07c34 100644 --- a/source/blender/editors/sound/sound_ops.c +++ b/source/blender/editors/sound/sound_ops.c @@ -564,6 +564,9 @@ static void sound_mixdown_draw(bContext *C, wmOperator *op) PropertyRNA *prop_codec; PropertyRNA *prop_bitrate; + uiLayoutSetPropSep(layout, true); + uiLayoutSetPropDecorate(layout, false); + AUD_Container container = RNA_enum_get(op->ptr, "container"); AUD_Codec codec = RNA_enum_get(op->ptr, "codec"); -- cgit v1.2.3