From f4d944119cd5e7d364cf82d994ffe285029bed63 Mon Sep 17 00:00:00 2001 From: "FeRD (Frank Dana)" Date: Mon, 1 Jul 2024 14:42:36 -0400 Subject: [PATCH] Menu model example: Update diagram - Add licensing tags - Tweak spacing, colors, line thicknesses - Create light-mode version - Use `` tag to include appropriate version for each media color scheme. --- docs/reference/gio/gio.toml.in | 3 +- .../{menu-model.svg => menu-model-dark.svg} | 194 ++++---- docs/reference/gio/menu-model-light.svg | 453 ++++++++++++++++++ gio/gmenumodel.c | 5 +- 4 files changed, 549 insertions(+), 106 deletions(-) rename docs/reference/gio/{menu-model.svg => menu-model-dark.svg} (63%) create mode 100644 docs/reference/gio/menu-model-light.svg diff --git a/docs/reference/gio/gio.toml.in b/docs/reference/gio/gio.toml.in index 639bfd4c2..cd62a1691 100644 --- a/docs/reference/gio/gio.toml.in +++ b/docs/reference/gio/gio.toml.in @@ -67,5 +67,6 @@ content_files = [ content_images = [ "gvfs-overview.png", "menu-example.png", - "menu-model.svg", + "menu-model-dark.svg", + "menu-model-light.svg", ] diff --git a/docs/reference/gio/menu-model.svg b/docs/reference/gio/menu-model-dark.svg similarity index 63% rename from docs/reference/gio/menu-model.svg rename to docs/reference/gio/menu-model-dark.svg index 05c6970d0..b08ceea6b 100644 --- a/docs/reference/gio/menu-model.svg +++ b/docs/reference/gio/menu-model-dark.svg @@ -1,4 +1,10 @@ + + - - - + width="122.32765" + height="18.015102" + x="3.7895689" + y="4.1460066" /> + width="122.32765" + height="18.015102" + x="3.7895689" + y="66.008728" /> + width="122.32765" + height="18.015102" + x="3.7895689" + y="45.628914" /> + width="122.32765" + height="18.015102" + x="3.7895689" + y="24.918364" /> File Help View Edit + width="121.0194" + height="17.019403" + x="598.49023" + y="151.49031" /> + width="121.0194" + height="17.019402" + x="598.4903" + y="72.982552" /> + width="121.0194" + height="17.019402" + x="598.4903" + y="93.490295" /> + width="121.01934" + height="17.019402" + x="598.49036" + y="131.4903" /> Highlight Mode Vala Python asciidoc HTML Toolbar Fullscreen Statusbar Markup diff --git a/docs/reference/gio/menu-model-light.svg b/docs/reference/gio/menu-model-light.svg new file mode 100644 index 000000000..3200c02f9 --- /dev/null +++ b/docs/reference/gio/menu-model-light.svg @@ -0,0 +1,453 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + File + Help + View + Edit + + + + + + + + + + + + + + Highlight Mode + Vala + Python + asciidoc + HTML + Toolbar + Fullscreen + Statusbar + Markup + Sources + + + + + + + + + + + diff --git a/gio/gmenumodel.c b/gio/gmenumodel.c index 0669acef8..2dd5daa0f 100644 --- a/gio/gmenumodel.c +++ b/gio/gmenumodel.c @@ -69,7 +69,10 @@ * * ## A menu example * - * ![](menu-model.svg) + * + * + * menu model + * * * Notice that the separators visible in the [example](#an-example-menu) * appear nowhere in the [menu model](#a-menu-example). This is because