Skip to content

Commit

Permalink
fixes night#1586
Browse files Browse the repository at this point in the history
  • Loading branch information
night committed Oct 10, 2016
1 parent 3bce190 commit 99a8149
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
35 changes: 35 additions & 0 deletions src/assets/icons/badge-prime.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/css/betterttv.css
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,12 @@ input.text:focus,select:focus,textarea:focus {
background-color: #0c6f20;
}

.badges .twitch-premium-1 {
cursor: pointer;
background: url("../assets/icons/badge-prime.svg");
background-size: 100%;
}

.line .bttvDeveloper, .ember-chat .badges .bttvDeveloper {
background: url("../../tags/badge-dev.svg");
background-size: 100%;
Expand Down
2 changes: 1 addition & 1 deletion src/js/chat/templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var tmi = require('./tmi'),
blacklistedEmoji = require('../helpers/emoji-blacklist.json');

var badge = exports.badge = function(type, name, description, action) {
var classes = type + '' + ((bttv.settings.get('alphaTags') && ['admin', 'global-moderator', 'staff', 'broadcaster', 'moderator', 'turbo', 'ign'].indexOf(type) !== -1) ? ' alpha' + (!bttv.settings.get('darkenedMode') ? ' invert' : '') : '') + ' badge';
var classes = type + '' + (bttv.settings.get('alphaTags') ? ' alpha' + (!bttv.settings.get('darkenedMode') ? ' invert' : '') : '') + ' badge';
return '<div class="' + classes + '" title="' + description + '"' + (action ? ' data-click-action="' + action + '"' : '') + '>' + name + '</div> ';
};

Expand Down

0 comments on commit 99a8149

Please sign in to comment.