1
0
mirror of https://github.com/konpa/devicon.git synced 2025-08-08 07:36:28 +02:00

Add checkerboard functionality

This commit is contained in:
Thomas Bui
2021-12-21 20:49:32 -08:00
parent 5ddbd262b9
commit be344b424c
4 changed files with 32 additions and 5 deletions

View File

@@ -1,5 +1,4 @@
var devicon = angular.module('devicon', ['ngSanitize', 'ngAnimate']);
// const DEFAULT_BACKGROUND = "#60be86";
/*
||==============================================================
@@ -45,6 +44,11 @@ devicon.controller('IconListCtrl', function($scope, $http, $compile) {
$scope.fontBackground = $scope.DEFAULT_BACKGROUND;
$scope.svgBackground = $scope.DEFAULT_BACKGROUND;
// whether to display the checkerboard img in the background
// for the font and svg respectively
$scope.fontDisplayChecker = false;
$scope.svgDisplayChecker = false;
// Loop through devicon.json
angular.forEach(data, function(devicon, key) {