diff options
author | Hans Goudey <h.goudey@me.com> | 2020-09-07 22:22:29 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-09-07 22:22:29 +0300 |
commit | d4cca7b7b0d858a45c684fd0725344881e0c1c63 (patch) | |
tree | bde93fcd1006945cf073e86bc0b4d1ef3c4df404 /release/scripts/startup | |
parent | 5eb5978043c8e7036e15572ea43b083965140e77 (diff) |
UI: Changes to timeline playback popover
The current playback popover has some issues:
- Using labels instead of headers is inconsistent with
the rest of the interface
- Incomplete context and description for some properties
- Ugly large spacing
This commit fixes these problems by using headers.
Differential Revision: https://developer.blender.org/D8434
Diffstat (limited to 'release/scripts/startup')
-rw-r--r-- | release/scripts/startup/bl_ui/space_time.py | 43 |
1 files changed, 23 insertions, 20 deletions
diff --git a/release/scripts/startup/bl_ui/space_time.py b/release/scripts/startup/bl_ui/space_time.py index 1a9244a3051..68b5f8acd38 100644 --- a/release/scripts/startup/bl_ui/space_time.py +++ b/release/scripts/startup/bl_ui/space_time.py @@ -230,34 +230,37 @@ class TimelinePanelButtons: class TIME_PT_playback(TimelinePanelButtons, Panel): bl_label = "Playback" bl_region_type = 'HEADER' + bl_ui_units_x = 11 def draw(self, context): layout = self.layout + layout.use_property_split = True + layout.use_property_decorate = False screen = context.screen scene = context.scene - layout.prop(scene, "sync_mode", text="") - layout.prop(scene, "use_audio_scrub") - layout.prop(scene, "use_audio", text="Mute Audio") - - layout.prop(scene, "show_subframe", text="Subframes") - - layout.prop(scene, "lock_frame_selection_to_range", text="Limit Playback to Frame Range") - layout.prop(screen, "use_follow", text="Follow Current Frame") - - layout.separator() - col = layout.column() - col.label(text="Play Animation In:") - layout.prop(screen, "use_play_top_left_3d_editor", text="Active Editor Only") - layout.prop(screen, "use_play_3d_editors") - layout.prop(screen, "use_play_animation_editors") - layout.prop(screen, "use_play_properties_editors") - layout.prop(screen, "use_play_image_editors") - layout.prop(screen, "use_play_sequence_editors") - layout.prop(screen, "use_play_node_editors") - layout.prop(screen, "use_play_clip_editors") + col.prop(scene, "sync_mode", text="Audio") + col.prop(scene, "use_audio_scrub", text="Scrubbing") + col.prop(scene, "use_audio", text="Mute") + + col = layout.column(heading="Playback") + col.prop(scene, "lock_frame_selection_to_range", text="Limit to Frame Range") + col.prop(screen, "use_follow", text="Follow Current Frame") + + col = layout.column(heading="Play In") + col.prop(screen, "use_play_top_left_3d_editor", text="Active Editor") + col.prop(screen, "use_play_3d_editors", text="3D Viewport") + col.prop(screen, "use_play_animation_editors", text="Animation Editors") + col.prop(screen, "use_play_image_editors", text="Image Editor") + col.prop(screen, "use_play_properties_editors", text="Properties Editor") + col.prop(screen, "use_play_clip_editors", text="Movie Clip Editor") + col.prop(screen, "use_play_node_editors", text="Node Editors") + col.prop(screen, "use_play_sequence_editors", text="Video Sequencer") + + col = layout.column(heading="Show") + col.prop(scene, "show_subframe", text="Subframes") layout.separator() |