Added color "avatar" for mail labels

pull/91/head
Ludovic Marcotte 2015-04-28 15:25:59 -04:00 committed by Francis Lachapelle
parent affa6ba656
commit 4dbd796fd5
2 changed files with 2 additions and 1 deletions

View File

@ -692,6 +692,7 @@
<md-list>
<md-list-item ng-repeat="(key, value) in
preferences.defaults.SOGoMailLabelsColors">
<i class="md-avatar" ng-style="{'background-color': '{{value[1]}}'}"><!-- label color --></i>
<md-input-container>
<input type="text" ng-model="value[0]"/>
</md-input-container>

View File

@ -126,7 +126,7 @@
};
$scope.addMailLabel = function() {
$scope.preferences.defaults.SOGoMailLabelsColors["foo_bar"] = ["foo bar", "#FFFF00"];
$scope.preferences.defaults.SOGoMailLabelsColors["new_label"] = ["New label", "#aaa"];
};
$scope.removeMailLabel = function(key) {