Permalink
Browse files

名前の部分だけ、色を変える

  • Loading branch information...
1 parent 163158b commit 41d0ffe20fa05673232203769a66397f787fe519 @anekos anekos committed Aug 5, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 twittperator/twsidebar.tw
@@ -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(' ')}
@@ -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>

0 comments on commit 41d0ffe

Please sign in to comment.