diff options
author | anekos | 2012-08-06 01:52:30 +0900 |
---|---|---|
committer | anekos | 2012-08-06 01:52:30 +0900 |
commit | 41d0ffe20fa05673232203769a66397f787fe519 (patch) | |
tree | 16261fa7e9d78b490bd50cb5a42226979f2eea27 /twittperator | |
parent | 163158bd4eeb1fd1df8fa7bcbe35846bfcf267e4 (diff) | |
download | vimperator-plugins-41d0ffe20fa05673232203769a66397f787fe519.tar.bz2 |
名前の部分だけ、色を変える
Diffstat (limited to 'twittperator')
-rw-r--r-- | twittperator/twsidebar.tw | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/twittperator/twsidebar.tw b/twittperator/twsidebar.tw index 13f5b06..09e3a65 100644 --- a/twittperator/twsidebar.tw +++ b/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> |