layout changes
glyphs in a box
This commit is contained in:
parent
56a8ffe114
commit
ec7d619bab
1 changed files with 4 additions and 2 deletions
|
@ -346,17 +346,19 @@ class ABC3D_PT_FontList(bpy.types.Panel):
|
||||||
n = 16
|
n = 16
|
||||||
n_rows = int(len(available_glyphs) / n)
|
n_rows = int(len(available_glyphs) / n)
|
||||||
box.row().label(text=f"Glyphs:")
|
box.row().label(text=f"Glyphs:")
|
||||||
|
subbox = box.box()
|
||||||
for i in range(0, n_rows + 1):
|
for i in range(0, n_rows + 1):
|
||||||
text = ''.join([f"{u}" for ui, u in enumerate(available_glyphs) if ui < (i+1) * n and ui >= i * n])
|
text = ''.join([f"{u}" for ui, u in enumerate(available_glyphs) if ui < (i+1) * n and ui >= i * n])
|
||||||
scale_y = 0.5
|
scale_y = 0.5
|
||||||
row = box.row(); row.scale_y = scale_y
|
row = subbox.row(); row.scale_y = scale_y; row.alignment = 'CENTER'
|
||||||
row.label(text=text)
|
row.label(text=text)
|
||||||
n_rows = int(len(loaded_glyphs) / n)
|
n_rows = int(len(loaded_glyphs) / n)
|
||||||
box.row().label(text=f"Loaded Glyphs:")
|
box.row().label(text=f"Loaded Glyphs:")
|
||||||
|
subbox = box.box()
|
||||||
for i in range(0, n_rows + 1):
|
for i in range(0, n_rows + 1):
|
||||||
text = ''.join([f"{u}" for ui, u in enumerate(loaded_glyphs) if ui < (i+1) * n and ui >= i * n])
|
text = ''.join([f"{u}" for ui, u in enumerate(loaded_glyphs) if ui < (i+1) * n and ui >= i * n])
|
||||||
scale_y = 0.5
|
scale_y = 0.5
|
||||||
row = box.row(); row.scale_y = scale_y
|
row = subbox.row(); row.scale_y = scale_y
|
||||||
row.label(text=text)
|
row.label(text=text)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue