ludovic-gonthier / snowshoe

Github Pull Request dashboard to ease your Code Review across multiple projects
http://www.snowshoe.report/
41 stars 13 forks source link

Update style #3

Closed ludovic-gonthier closed 9 years ago

ludovic-gonthier commented 9 years ago

Themes: http://www.bootstrapcdn.com/?theme=3#bootswatch_tab Row with same height: http://stackoverflow.com/questions/19695784/how-can-i-make-bootstrap-columns-all-the-same-height

ludovic-gonthier commented 9 years ago

Calcul de la couleur en fonction de la couleur d'arrière plan.

$scope.getVisibleTextColor = function(bgcolor) {
      var r = parseInt(bgcolor.substr(0,2),16);
      var g = parseInt(bgcolor.substr(2,2),16);
      var b = parseInt(bgcolor.substr(4,2),16);
      var yiq = ((r*299)+(g*587)+(b*114))/1000;

      return yiq >= 128 ? '000' : 'fff';
    };
ludovic-gonthier commented 9 years ago

closed in v0.1.0