Font family for your text or symbol. Make sure the family is added to your page!
font_weight
-
eg. "900"
+
e.g. "900"
Font weight for your text or symbol.
icon_background
-
eg. "#9b4dca"
+
e.g. "#9b4dca"
Hex color value for the background of your icon.
icon_class
-
eg. "fas fa-address-card"
-
CSS class name of your symbol for the icon, the class will automatically try to finde
+
e.g. "fas fa-address-card"
+
CSS class name of your symbol for the icon, the class will automatically try to find
the corresponding unicode. If an unicode (parameter "icon_text") is set the class will be ignored.
icon_text
-
eg. "Test"
+
e.g. "Test"
The text or symbol which should be displayed on the icon. Will be preferred over the
parameter "icon_class" if set.
icon_width
-
eg. "300"
+
e.g. "300"
The width of your icon (in px), will also be the height of your icon.
odoo_version
-
["11.0", "12.0", "13.0", "14.0"]
+
["11.0", "12.0", "13.0", "14.0", "15.0"]
The odoo version for which the icon should be generated.
diff --git a/js/ibo_icon.js b/js/ibo_icon.js
index b908729..07f602a 100644
--- a/js/ibo_icon.js
+++ b/js/ibo_icon.js
@@ -100,6 +100,7 @@ class IBO_ICON {
case "12.0":
case "13.0":
case "14.0":
+ case "15.0":
this._ctx.moveTo(radius, 0);
this._ctx.lineTo(this.icon_width - radius, 0);
this._ctx.arcTo(this.icon_width, 0, this.icon_width, radius, radius);
@@ -273,6 +274,7 @@ class IBO_ICON {
case "12.0":
case "13.0":
case "14.0":
+ case "15.0":
this._ctx.shadowOffsetX = 0;
this._ctx.shadowOffsetY = this.icon_width * 0.02;
this._ctx.shadowBlur = 0;
@@ -304,6 +306,7 @@ class IBO_ICON {
case "12.0":
case "13.0":
case "14.0":
+ case "15.0":
let is_radius = this.icon_width * 0.047
let is_height = this.icon_width * 0.015
@@ -357,6 +360,7 @@ class IBO_ICON {
case "12.0":
case "13.0":
case "14.0":
+ case "15.0":
this._ctx.save();
this._ctx.globalAlpha = 0.2;
var gradient = this._ctx.createLinearGradient(