Skip to content

Commit

Permalink
名前の部分だけ、色を変える
Browse files Browse the repository at this point in the history
  • Loading branch information
anekos committed Aug 5, 2012
1 parent 163158b commit 41d0ffe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions twittperator/twsidebar.tw
Expand Up @@ -126,8 +126,7 @@ liberator.modules.TWAnekoSB = ANekoSB = (function () {
let xml;
let sbWidth = getSidebarWindow().document.width;
let richlistitemClasses = [className('tweet-panel'), className('tweet-' + t.type)];
if (t.protected)
richlistitemClasses.push(className('tweet-protected'));
let nameClass = t.protected ? className('tweet-protected') : '';
xml =
<richlistitem
class={richlistitemClasses.join(' ')}
Expand All @@ -142,7 +141,7 @@ liberator.modules.TWAnekoSB = ANekoSB = (function () {
</vbox>
<vbox style={"width: " + (sbWidth - 48 - 35) + "px !important"}>
<hbox>
<label style="font-weight: bold">{escapeBreakers(t.name)}</label>
<label class={nameClass} style="font-weight: bold">{escapeBreakers(t.name)}</label>
<spacer flex="1"/>
<label>{t.sub || ''}</label>
</hbox>
Expand Down

0 comments on commit 41d0ffe

Please sign in to comment.