Considers contrast when setting task bg color

pull/6827/head
Hagen Schink 11 years ago
parent 781da7bc10
commit f5c81aa112
  1. 1
      app/assets/javascripts/backlogs/show_main.js
  2. 8
      app/assets/stylesheets/backlogs/taskboard.css.erb

@ -48,5 +48,6 @@ jQuery(function ($) {
defaultDialogColor = $('#work_package_').css('background-color');
}
$(this).parents('.ui-dialog').css('background-color', selected.attr('color') || defaultDialogColor);
$(this).parents('.ui-dialog').colorcontrast();
});
});

@ -320,6 +320,14 @@ See doc/COPYRIGHT.rdoc for more details.
border:none;
}
.dark #task_editor label {
color: #FFFFFF;
}
.light #task_editor label {
color: #000000;
}
/* item editor */
#task_editor label {
display:block;

Loading…
Cancel
Save