|
23 | 23 |
|
24 | 24 | </head> |
25 | 25 | <body ng-cloak class="gridLayout" ng-controller="folderPluginCtrl" data-back-img="{{backgroundImage}}"> |
26 | | -<style ng-if="data.design.colorType === 'C'"> |
| 26 | +<style ng-if="data.design.colorType === 'C'"> |
| 27 | + body.gridLayout { |
| 28 | + background-color: {{data.design.colors.backgroundColor}} !important; |
| 29 | + } |
| 30 | + |
27 | 31 | /* Show theme css only if on custom theme option */ |
28 | 32 | div.text-holder p, .launcher-plugin.layout7 .menu-links .menu-item p { |
29 | 33 | color: {{data.design.colors.bodyText}} !important; |
|
477 | 481 | dataLoadedHandler(result); |
478 | 482 | }); |
479 | 483 |
|
480 | | - $scope.cropImage = function (url, settings) { |
| 484 | + /*$scope.cropImage = function (url, settings) { |
481 | 485 | var options = {}; |
482 | 486 | if (!url) { |
483 | 487 | return ""; |
|
491 | 495 | } |
492 | 496 | return buildfire.imageLib.cropImage(url, options); |
493 | 497 | } |
494 | | - }; |
| 498 | + };*/ |
495 | 499 |
|
496 | 500 | $scope.resizeImage = function (url, settings) { |
497 | 501 | var options = {}; |
|
535 | 539 |
|
536 | 540 | function setBackgroundImage() { |
537 | 541 | var backgroundImages = $scope.data.design.backgroundImage; |
538 | | - var backgroundImage = undefined; |
539 | 542 |
|
540 | 543 | if (!backgroundImages) return; |
541 | 544 |
|
542 | 545 | if (typeof($scope.data.design.backgroundImage) === "string") { |
543 | | - backgroundImage = $scope.cropImage($scope.data.design.backgroundImage, {width: deviceWidth, height: deviceHeight}); |
| 546 | + $scope.backgroundImage = $scope.data.design.backgroundImage; |
544 | 547 | } |
545 | 548 | else { |
546 | 549 | if (!matchedBackgroundName) { |
|
551 | 554 | } |
552 | 555 | } |
553 | 556 | console.log('matchedBackgroundName: ', matchedBackgroundName); |
554 | | - |
555 | | - if(matchedBackgroundName){ |
556 | | - backgroundImage = $scope.cropImage(backgroundImages[matchedBackgroundName], { |
557 | | - width: deviceWidth, |
558 | | - height: deviceHeight |
559 | | - }); |
560 | | - } |
| 557 | + $scope.backgroundImage = backgroundImages[matchedBackgroundName]; |
561 | 558 | } |
562 | | - |
563 | | - $scope.backgroundImage = backgroundImage; |
564 | 559 | } |
565 | 560 |
|
566 | 561 | function getByMediaQuery(){ |
|
0 commit comments