@@ -377,59 +377,84 @@ <h1 class="title">Web Iconify Proxy</h1>
377
377
< p > < strong > Table of contents</ strong > </ p >
378
378
< div class ="contents local topic " id ="contents ">
379
379
< ul class ="simple ">
380
- < li > < a class ="reference internal " href ="#usage " id ="toc-entry-1 "> Usage</ a > </ li >
381
- < li > < a class ="reference internal " href ="#changelog " id ="toc-entry-2 "> Changelog</ a > < ul >
382
- < li > < a class ="reference internal " href ="#section-1 " id ="toc-entry-3 "> 18.0.1.0.0 (2025-02-23)</ a > </ li >
380
+ < li > < a class ="reference internal " href ="#usage " id ="toc-entry-1 "> Usage</ a > < ul >
381
+ < li > < a class ="reference internal " href ="#svg-icon-parameters " id ="toc-entry-2 "> SVG Icon Parameters</ a > </ li >
383
382
</ ul >
384
383
</ li >
385
- < li > < a class ="reference internal " href ="#bug-tracker " id ="toc-entry-4 "> Bug Tracker</ a > </ li >
386
- < li > < a class ="reference internal " href ="#credits " id ="toc-entry-5 "> Credits</ a > < ul >
387
- < li > < a class ="reference internal " href ="#authors " id ="toc-entry-6 "> Authors</ a > </ li >
388
- < li > < a class ="reference internal " href ="#contributors " id ="toc-entry-7 "> Contributors</ a > </ li >
389
- < li > < a class ="reference internal " href ="#maintainers " id ="toc-entry-8 "> Maintainers</ a > </ li >
384
+ < li > < a class ="reference internal " href ="#changelog " id ="toc-entry-3 "> Changelog</ a > < ul >
385
+ < li > < a class ="reference internal " href ="#section-1 " id ="toc-entry-4 "> 18.0.1.0.0 (2025-02-23)</ a > </ li >
386
+ </ ul >
387
+ </ li >
388
+ < li > < a class ="reference internal " href ="#bug-tracker " id ="toc-entry-5 "> Bug Tracker</ a > </ li >
389
+ < li > < a class ="reference internal " href ="#credits " id ="toc-entry-6 "> Credits</ a > < ul >
390
+ < li > < a class ="reference internal " href ="#authors " id ="toc-entry-7 "> Authors</ a > </ li >
391
+ < li > < a class ="reference internal " href ="#contributors " id ="toc-entry-8 "> Contributors</ a > </ li >
392
+ < li > < a class ="reference internal " href ="#maintainers " id ="toc-entry-9 "> Maintainers</ a > </ li >
390
393
</ ul >
391
394
</ li >
392
395
</ ul >
393
396
</ div >
394
397
< div class ="section " id ="usage ">
395
398
< h1 > < a class ="toc-backref " href ="#toc-entry-1 "> Usage</ a > </ h1 >
396
399
< p > This module works in conjunction with web_iconify. Once installed, icons
397
- will be served through the proxy and cached locally. No specific usage
398
- instructions are required.</ p >
400
+ will be served through the proxy and cached locally.</ p >
401
+ < div class ="section " id ="svg-icon-parameters ">
402
+ < h2 > < a class ="toc-backref " href ="#toc-entry-2 "> SVG Icon Parameters</ a > </ h2 >
403
+ < p > You can customize SVG icons by adding query parameters to the URL. The
404
+ format is:</ p >
405
+ < p > < tt class ="docutils literal "> < span class ="pre "> /web_iconify_proxy/<prefix>/<icon>.svg?param1=value1&param2=value2...</ span > </ tt > </ p >
406
+ < p > Available parameters:</ p >
407
+ < ul class ="simple ">
408
+ < li > < strong > color</ strong > : Icon color (e.g., < tt class ="docutils literal "> color=red</ tt > , < tt class ="docutils literal "> < span class ="pre "> color=%23ff0000</ span > </ tt > ).</ li >
409
+ < li > < strong > width</ strong > : Icon width (e.g., < tt class ="docutils literal "> width=50</ tt > , < tt class ="docutils literal "> width=50px</ tt > ).</ li >
410
+ < li > < strong > height</ strong > : Icon height (e.g., < tt class ="docutils literal "> height=50</ tt > , < tt class ="docutils literal "> height=50px</ tt > ). If
411
+ only one dimension is specified, the other will be calculated
412
+ automatically to maintain aspect ratio.</ li >
413
+ < li > < strong > flip</ strong > : Flip the icon. Possible values: < tt class ="docutils literal "> horizontal</ tt > ,
414
+ < tt class ="docutils literal "> vertical</ tt > , or both (e.g., < tt class ="docutils literal "> flip=horizontal</ tt > , < tt class ="docutils literal "> flip=vertical</ tt > ,
415
+ < tt class ="docutils literal "> flip=horizontal,vertical</ tt > ).</ li >
416
+ < li > < strong > rotate</ strong > : Rotate the icon by 90, 180, or 270 degrees (e.g.,
417
+ < tt class ="docutils literal "> rotate=90</ tt > , < tt class ="docutils literal "> rotate=180</ tt > ).</ li >
418
+ < li > < strong > box</ strong > : Set to < tt class ="docutils literal "> true</ tt > to add an empty rectangle to the SVG that
419
+ matches the viewBox (e.g., < tt class ="docutils literal "> box=true</ tt > ).</ li >
420
+ </ ul >
421
+ < p > Example:</ p >
422
+ < p > < tt class ="docutils literal "> < span class ="pre "> /web_iconify_proxy/mdi/home.svg?color=blue&width=64&flip=horizontal</ span > </ tt > </ p >
423
+ </ div >
399
424
</ div >
400
425
< div class ="section " id ="changelog ">
401
- < h1 > < a class ="toc-backref " href ="#toc-entry-2 "> Changelog</ a > </ h1 >
426
+ < h1 > < a class ="toc-backref " href ="#toc-entry-3 "> Changelog</ a > </ h1 >
402
427
< div class ="section " id ="section-1 ">
403
- < h2 > < a class ="toc-backref " href ="#toc-entry-3 "> 18.0.1.0.0 (2025-02-23)</ a > </ h2 >
428
+ < h2 > < a class ="toc-backref " href ="#toc-entry-4 "> 18.0.1.0.0 (2025-02-23)</ a > </ h2 >
404
429
< ul class ="simple ">
405
430
< li > Initial version.</ li >
406
431
</ ul >
407
432
</ div >
408
433
</ div >
409
434
< div class ="section " id ="bug-tracker ">
410
- < h1 > < a class ="toc-backref " href ="#toc-entry-4 "> Bug Tracker</ a > </ h1 >
435
+ < h1 > < a class ="toc-backref " href ="#toc-entry-5 "> Bug Tracker</ a > </ h1 >
411
436
< p > Bugs are tracked on < a class ="reference external " href ="https://github.com/OCA/web/issues "> GitHub Issues</ a > .
412
437
In case of trouble, please check there if your issue has already been reported.
413
438
If you spotted it first, help us to smash it by providing a detailed and welcomed
414
439
< a class ="reference external " href ="https://github.com/OCA/web/issues/new?body=module:%20web_iconify_proxy%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior** "> feedback</ a > .</ p >
415
440
< p > Do not contact contributors directly about support or help with technical issues.</ p >
416
441
</ div >
417
442
< div class ="section " id ="credits ">
418
- < h1 > < a class ="toc-backref " href ="#toc-entry-5 "> Credits</ a > </ h1 >
443
+ < h1 > < a class ="toc-backref " href ="#toc-entry-6 "> Credits</ a > </ h1 >
419
444
< div class ="section " id ="authors ">
420
- < h2 > < a class ="toc-backref " href ="#toc-entry-6 "> Authors</ a > </ h2 >
445
+ < h2 > < a class ="toc-backref " href ="#toc-entry-7 "> Authors</ a > </ h2 >
421
446
< ul class ="simple ">
422
447
< li > jaco.tech</ li >
423
448
</ ul >
424
449
</ div >
425
450
< div class ="section " id ="contributors ">
426
- < h2 > < a class ="toc-backref " href ="#toc-entry-7 "> Contributors</ a > </ h2 >
451
+ < h2 > < a class ="toc-backref " href ="#toc-entry-8 "> Contributors</ a > </ h2 >
427
452
< ul class ="simple ">
428
453
< li > Jaco Waes << a class ="reference external " href ="mailto:jaco@jaco.tech "> jaco@jaco.tech</ a > ></ li >
429
454
</ ul >
430
455
</ div >
431
456
< div class ="section " id ="maintainers ">
432
- < h2 > < a class ="toc-backref " href ="#toc-entry-8 "> Maintainers</ a > </ h2 >
457
+ < h2 > < a class ="toc-backref " href ="#toc-entry-9 "> Maintainers</ a > </ h2 >
433
458
< p > This module is maintained by the OCA.</ p >
434
459
< a class ="reference external image-reference " href ="https://odoo-community.org ">
435
460
< img alt ="Odoo Community Association " src ="https://odoo-community.org/logo.png " />
0 commit comments