Changeset View
Changeset View
Standalone View
Standalone View
paint_palette.py
| Show First 20 Lines • Show All 456 Lines • ▼ Show 20 Lines | |||||
| def color_palette_draw(self, context): | def color_palette_draw(self, context): | ||||
| palette_props = context.scene.palette_props | palette_props = context.scene.palette_props | ||||
| layout = self.layout | layout = self.layout | ||||
| row = layout.row(align=True) | row = layout.row(align=True) | ||||
| row.menu("PALETTE_MT_menu", text=PALETTE_MT_menu.bl_label) | row.menu("PALETTE_MT_menu", text=PALETTE_MT_menu.bl_label) | ||||
| row.operator("palette.preset_add", text="", icon="ZOOMIN").remove_active = False | row.operator("palette.preset_add", text="", icon='ADD').remove_active = False | ||||
| row.operator("palette.preset_add", text="", icon="ZOOMOUT").remove_active = True | row.operator("palette.preset_add", text="", icon='REMOVE').remove_active = True | ||||
| col = layout.column(align=True) | col = layout.column(align=True) | ||||
| row = col.row(align=True) | row = col.row(align=True) | ||||
| row.operator("palette_props.add_color", icon="ZOOMIN") | row.operator("palette_props.add_color", icon='ADD') | ||||
| row.prop(palette_props, "index") | row.prop(palette_props, "index") | ||||
| row.operator("palette_props.remove_color", icon="PANEL_CLOSE") | row.operator("palette_props.remove_color", icon="PANEL_CLOSE") | ||||
| row = col.row(align=True) | row = col.row(align=True) | ||||
| row.prop(palette_props, "columns") | row.prop(palette_props, "columns") | ||||
| if palette_props.colors.items(): | if palette_props.colors.items(): | ||||
| layout = col.box() | layout = col.box() | ||||
| row = layout.row(align=True) | row = layout.row(align=True) | ||||
| ▲ Show 20 Lines • Show All 420 Lines • Show Last 20 Lines | |||||