Skip to content

Builder Build panel: redraw the bond-order and geometry icons; a periodic table button #323

Closed

Description

@ohlincha

Seen: the Builder toolbar's bond-order chooser (single bond: two grey balls and a line) and geometry chooser (tetrahedral centre) use the original low-resolution bitmaps. They are small, blurry when scaled and drawn in a style the rest of the toolbar no longer has.

Builder toolbar, bond and shape choosers

Where: the bond icons (bond_single, bond_double, bond_triple, bond_aromatic, bond_metal and their _large forms) and the shape icons (linear, bent, trigonal planar, pyramidal, tetrahedral, square planar, trigonal bipyramidal, square pyramidal, octahedral, in 18/24/48 px) are XPMs in data/client/pixmaps, chosen in ShapeData::shapeToImage/shapeToSmallImage and the bond drop-down.

Proposal: redraw both sets as SVG and load them as wxBitmapBundle (the route the other redrawn icons use; tools/screenshots/icons.py renders them for review), so they are sharp at every display scale. Draw them in the viewer's own ball-and-stick style: shaded spheres, Jmol element colours (carbon centre, grey or white ligands), bond orders as one, two or three sticks, aromatic as a stick with a dashed partner, metal bond dashed. Same set used in the drop-down lists and on the toolbar button.

Activity

  1. changed the title [-]Builder: redraw the bond-order and geometry icons[/-] [+]Builder Build panel: redraw the bond-order and geometry icons; a periodic table button[/+] on Oct 14, 2026
  2. ohlincha commented on Oct 14, 2026

    @ohlincha
    CollaboratorAuthor

    Also: a periodic table button in the Build panel. The panel offers twelve common elements (H, C, N, O, F, Si, P, S, X, K, Ca, Mg) as buttons; any other element is reached only through the Organizer's Tools → Periodic Table or the element drop-down. Add a periodic-table icon button next to the element buttons (or next to Add H / Del H) that opens the Periodic Table; choosing an element there sets it as the Build element, as an element button does.

  3. ohlincha commented on Oct 21, 2026

    @ohlincha
    CollaboratorAuthor

    Done on main: bond-order and geometry icons redrawn, periodic-table button in the Build panel (57867ec).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions