From 37c20740e4c7de8fadf406cb6448b1a501434ffa Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Tue, 17 Jan 2017 08:42:48 +0100 Subject: Structure picture of widgets. --- doc/theme3/specification.md | 4 + doc/theme3/structure.svg | 575 ++++++++++++++++++++++++++------------------ 2 files changed, 344 insertions(+), 235 deletions(-) diff --git a/doc/theme3/specification.md b/doc/theme3/specification.md index 2c528e0c..465271d1 100644 --- a/doc/theme3/specification.md +++ b/doc/theme3/specification.md @@ -324,6 +324,10 @@ The current widgets exist in **rofi**: * `#window.mainbox.message.textbox`: The message textbox. * `#window.mainbox.message.box`: The box containing the message. +Or in a graphical depiction: + +![Structure](structure.svg) + ### State State: State of widget diff --git a/doc/theme3/structure.svg b/doc/theme3/structure.svg index a9ee850f..eb875269 100644 --- a/doc/theme3/structure.svg +++ b/doc/theme3/structure.svg @@ -25,9 +25,9 @@ borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2" - inkscape:zoom="2.8447824" - inkscape:cx="290.55119" - inkscape:cy="872.64212" + inkscape:zoom="2.6218227" + inkscape:cx="328.70746" + inkscape:cy="811.46785" inkscape:document-units="px" inkscape:current-layer="layer1" showgrid="true" @@ -59,99 +59,44 @@ + width="460.62991" + height="389.76379" + x="35.433071" + y="60.236221" /> + width="425.19684" + height="53.149605" + x="53.149605" + y="77.952759" /> - prompt + width="426.23825" + height="53.072773" + x="52.108196" + y="379.21069" /> entry - case-indicator - button - - Element #window mainbox + #window mainbox listview #window mainbox inputbar #window mainbox sidebar - - - + + prompt + + + + entry + + + + case-indicator + + + width="194.88188" + height="28.346447" + x="70.866142" + y="396.8504" /> button - - Scrollbar - Element - - Element - + width="194.88191" + height="28.346447" + x="265.74802" + y="396.8504" /> + + Element + + + + + Scrollbar + Element - + id="tspan4445-2-7-2-7-6-2-6-6" + x="439.00262" + y="412.55084" + style="font-size:12.5px">+ Element + id="tspan4445-2-7-2-7-6-2-6-6-5" + x="241.00262" + y="414.09415" + style="font-size:12.5px">+ + style="fill:none;fill-opacity:1;stroke:#009500;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect4173-35" + width="425.19684" + height="53.149609" + x="53.149605" + y="148.81889" /> Element - + id="tspan4445-2-75-2" + x="60.171993" + y="162.72299" + style="font-size:12.5px">#window mainbox message + + textbox + + + + Element + + + + Element + + + + Element + + + + Element + + + + Element + + -- cgit v1.2.3