GUI -- Icon service work:
- Changed color of check and xmark icons for dark and light themes.
- Only appends glyphs that don't have a "-" as the name.
- Wrote unit tests for new icons.
Change-Id: Ia21fa33673e3adcfd8717f899d226b0d24dfcc51
diff --git a/web/gui/src/main/webapp/app/directives.js b/web/gui/src/main/webapp/app/directives.js
index bdaded8..29e555d 100644
--- a/web/gui/src/main/webapp/app/directives.js
+++ b/web/gui/src/main/webapp/app/directives.js
@@ -61,10 +61,12 @@
return {
restrict: 'A',
scope: {
- iconId: '@'
+ iconId: '@',
+ iconSize: '@'
},
link: function (scope, element, attrs) {
- is.loadEmbeddedIcon(d3.select(element[0]), scope.iconId);
+ is.loadEmbeddedIcon(d3.select(element[0]),
+ scope.iconId, scope.iconSize);
}
};