fix(dashboard): choose todo style according to theme

pull/46/head
kostya.danovsky 9 years ago
parent 7ee5266329
commit 1a9329b86b

@ -9,8 +9,9 @@
.controller('DashboardTodoCtrl', DashboardTodoCtrl);
/** @ngInject */
function DashboardTodoCtrl($scope, layoutColors) {
function DashboardTodoCtrl($scope, layoutColors, layoutTheme) {
$scope.transparent = layoutTheme.blur;
var palette = layoutColors.bgColorPalette;
var colors = [];
for (var key in palette) {

@ -1,4 +1,4 @@
<div class="task-todo-container transparent">
<div class="task-todo-container" ng-class="{'transparent': transparent}">
<input type="text" value="" class="form-control task-todo" placeholder="Task to do.." ng-keyup="addToDoItem($event)" ng-model="newTodoText"/>
<i ng-click="addToDoItem('',true)" class="add-item-icon ion-plus-round"></i>
<div class="box-shadow-border"></div>

@ -163,7 +163,7 @@ label.todo-checkbox {
label.todo-checkbox > span {
&:before {
position: absolute;
color: white;
color: $default-text;
content: '\f10c';
float: none;
margin-right: 6px;
@ -173,11 +173,7 @@ label.todo-checkbox {
&.checked {
label.todo-checkbox > span {
&:before {
margin-right: 0;
position: absolute;
content: '';
background-size: contain;
background: url($images-root + "app/todo/check-icon.png") no-repeat;
content: '\f00c';
}
}
}

Loading…
Cancel
Save