diff --git a/bleMD/__init__.py b/bleMD/__init__.py index 2036152..68a69e5 100644 --- a/bleMD/__init__.py +++ b/bleMD/__init__.py @@ -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" @@ -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 @@ -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) diff --git a/bleMD/resources/bleMD_black.png b/bleMD/resources/bleMD_black.png new file mode 100644 index 0000000..ebee7bb Binary files /dev/null and b/bleMD/resources/bleMD_black.png differ diff --git a/bleMD/resources/bleMD_white.png b/bleMD/resources/bleMD_white.png new file mode 100644 index 0000000..9cd3b72 Binary files /dev/null and b/bleMD/resources/bleMD_white.png differ