Skip to content

Tray icon looks a bit too much like a battery #139

@bammerlaan

Description

@bammerlaan

On Arch Linux, at least, the tray icon looks confusingly like a battery. Here's some code to make it look a bit more like the clipboard icon from https://iconsvg.xyz/:

def create_clipboard_icon(self):
        width, height = 64, 64  # Icon dimensions
        image = Image.new("RGBA", (width, height), (0, 0, 0, 0))
        draw = ImageDraw.Draw(image)

        fill_color = (220, 220, 220)
        outline_color = (255, 255, 255)

        board_coords = (12, 12, 52, 57)
        try:
            draw.rounded_rectangle(board_coords, radius=5, fill=None, outline=outline_color, width=3)
        except (AttributeError, TypeError):
            draw.rectangle(board_coords, fill=None, outline=outline_color)

        clip_coords = (22, 7, 42, 17)
        try:
            draw.rounded_rectangle(clip_coords, radius=3, fill=fill_color, outline=outline_color, width=3)
        except (AttributeError, TypeError):
            draw.rectangle(clip_coords, fill=fill_color, outline=outline_color)

        return image

Looks like this, now:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions