Skip to content

Commit

Permalink
adding blemd
Browse files Browse the repository at this point in the history
  • Loading branch information
bsrunnels committed Jan 4, 2024
1 parent 30f398e commit 9da23b9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bleMD/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def execute(self, context):


class OBJECT_PT_bleMDPanel(Panel):
bl_label = "OVITO Molecular Dynamics"
bl_label = "bleMD Molecular Dynamics"
bl_idname = "OBJECT_PT_bleMDPanel"
bl_space_type = "PROPERTIES"
bl_region_type = "WINDOW"
Expand All @@ -224,7 +224,7 @@ def execute(self, context):
return {'FINISHED'}

def draw_header(self, context):
self.layout.label(text="", icon_value=custom_icons["ovito"].icon_id)
self.layout.label(text="", icon_value=custom_icons["bleMD_white"].icon_id)

def draw(self, context):
layout = self.layout
Expand Down Expand Up @@ -400,6 +400,8 @@ def register():
## this will work for addons
icons_dir = os.path.join(os.path.dirname(__file__), "resources")
custom_icons.load("ovito", os.path.join(icons_dir, "ovito.png"), 'IMAGE')
custom_icons.load("bleMD_white", os.path.join(icons_dir, "bleMD_white.png"), 'IMAGE')
custom_icons.load("bleMD_black", os.path.join(icons_dir, "bleMD_black.png"), 'IMAGE')

# Add "Open MD File" to the "add" menu
bpy.types.VIEW3D_MT_add.append(bleMDOpenFileDialogOperator_menu)
Expand Down
Binary file added bleMD/resources/bleMD_black.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 bleMD/resources/bleMD_white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9da23b9

Please sign in to comment.