Skip to content

Docs: Replace Gio.MenuModel diagram with SVG

FeRD (Frank Dana) requested to merge ferdnyc/glib:menu-model-diagram into main

I noticed that the "menu model" diagram in the Gio.MenuModel example wasn't showing up very well against the dark background. I started recoloring the PNG's black lines to white, then I realized how dumb that was. So I did this, instead:

Recreate the menu-model.png diagram in SVG, with box outlines and connectors recolored from black to white. This will allow the diagram to show up better in the dark documentation theme.

Before

image

After

image

The spacing of some of the boxes could possibly use a bit of tweaking; they look fine full-size but it seems that scaling the image down can run them together. (See Vala & Python in the last column, for example.) If anyone cares that much, let me know and I'll take another pass at them.

The font used is DejaVu Sans Mono, which seemed like a reasonable choice.

Merge request reports