Skip to content

Commit

Permalink
fixed #46 : simplified preferences GUI alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
L0Lock committed Aug 7, 2024
1 parent 33bf940 commit c99e24c
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions convert_Rotation_Mode/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,10 @@ class AddonPreferences(AddonPreferences):

def draw(self, context):
layout = self.layout
layout.use_property_split = True
layout.prop(self, "category", text="Tab Name")
layout.prop(self, "devMode", text="Dev Mode")

sub = layout.column()
split = sub.split(factor=0.15)
col_a = split.column()
col_b = split.column()
col_a.alignment = 'RIGHT'
col_b.alignment = 'LEFT'
col_a.label(text="Tab Category")
col_b.split(factor=0.5).prop(self, "category", text="")
col_a.label(text="Developer Mode")
col_b.prop(self, "devMode", text="")


if context.preferences.addons.find("copy_global_transform") == -1:
Expand Down

0 comments on commit c99e24c

Please sign in to comment.