Skip to content

Commit

Permalink
Add collapsible background icons
Browse files Browse the repository at this point in the history
  • Loading branch information
ucupumar committed Jun 24, 2024
1 parent 810789d commit 21d533d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file added icons/collapsed_background_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/uncollapsed_background_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1193,11 +1193,11 @@ def draw_layer_source(context, layout, layer, layer_tree, source, image, vcol, i
elif layer.type == 'BACKGROUND':
if len(layer.modifiers) > 0:
if lui.expand_content:
icon_value = lib.custom_icons["uncollapsed_texture"].icon_id
else: icon_value = lib.custom_icons["collapsed_texture"].icon_id
icon_value = lib.custom_icons["uncollapsed_background"].icon_id
else: icon_value = lib.custom_icons["collapsed_background"].icon_id
row.prop(lui, 'expand_content', text='', emboss=False, icon_value=icon_value)
else:
row.label(text='', icon_value=lib.get_icon('texture'))
row.label(text='', icon_value=lib.get_icon('background'))
row.label(text=layer.name)
elif layer.type == 'COLOR':
if lui.expand_content:
Expand Down

0 comments on commit 21d533d

Please sign in to comment.