From 4dc52b12686f3360dbe0d9a2ea09f64a8c89aa53 Mon Sep 17 00:00:00 2001 From: Clement Ducarteron Date: Thu, 16 Mar 2023 18:39:15 +0100 Subject: [PATCH] small UI improvement --- panels.py | 15 +++++++++------ properties.py | 2 +- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/panels.py b/panels.py index 5f6dc82..95cde34 100644 --- a/panels.py +++ b/panels.py @@ -36,19 +36,22 @@ class VSETB_PT_main(VSETB_main, Panel): if settings.toogle_prefs: box = col.box() - box.use_property_split = True - box.use_property_decorate = False + col = box.column(align=True) + col.use_property_split = True + col.use_property_decorate = False - box.prop(settings, 'project_name', text='Projects') + col.prop(settings, 'project_name', text='Projects') if project: if project.episodes: - box.prop(project, 'episode_name', text='Episodes') + col.prop(project, 'episode_name', text='Episodes') - box.prop(project, 'shot_template') - box.operator('vse_toolbox.new_episode', text='Add Episode', icon='IMPORT') + col.prop(project, 'shot_template') + col.separator() + col.operator('vse_toolbox.new_episode', text='Add Episode', icon='IMPORT') # TODO FAIRE DES VRAIS OPS + col = layout.column() row = col.row(align=True) row.operator('sequencer.import', text='Import', icon='IMPORT') row.operator('sequencer.export_csv', text='Export', icon='EXPORT') diff --git a/properties.py b/properties.py index 105272a..7f11ff5 100644 --- a/properties.py +++ b/properties.py @@ -111,7 +111,7 @@ class VSETB_PGT_settings(PropertyGroup): projects : CollectionProperty(type=Project) project_name : EnumProperty(items=get_project_items, update=update_episodes) tracker_name : EnumProperty(items=get_tracker_items) - toogle_prefs : BoolProperty(description='Toogle VSE ToolBox Preferences') + toogle_prefs : BoolProperty(description='Toogle VSE ToolBox Preferences', default=True) channel : EnumProperty( items=[