Changeset 16876 for lang/javascript/vimperator-plugins/trunk
- Timestamp:
- 07/30/08 18:41:54 (4 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/vimperator-plugins/trunk/ldr_unread_counter.js
r16874 r16876 3 3 * @name LDR unread counter 4 4 * @description Display unread count of LDR to statusbar 5 * @description-ja ���ơ������С���DR���������5 * @description-ja ステータスバーにLDRの未読件数を表示 6 6 * @version 0.1a 7 7 * @author teramako teramako@gmail.com 8 8 * ==/VimperatorPlugin== 9 9 * 10 * �ޤ��ǽ�10 * まず最初に 11 11 * let livedoor_id = "<livedoor ID>" 12 * �ȥ桼��ID��ꤷ�Ƥ��������12 * とユーザIDを設定してください。 13 13 */ 14 14 … … 46 46 return elm; 47 47 } 48 // FIXME: onclick ����DR���褦����48 // FIXME: onclick時にLDRを開くように要修正 49 49 statusPanel = createElement("statusbarpanel", { 50 50 id: "ldr_unread_count_panel", … … 56 56 statusPanel.appendChild(canvas); 57 57 58 // Icon ����ǽ���褬���Ƥ���58 // Iconだけ最初に描画がしておく 59 59 var ctx = canvas.getContext("2d"); 60 60 icon_image.onload=function(){ ctx.drawImage(icon_image,0,0); }; … … 78 78 ctx.save(); 79 79 80 // LDR Icon ����ctx.drawImage(icon_image,0,0); 80 // LDR Icon の描画 81 ctx.drawImage(icon_image,0,0); 81 82 82 83 var width = ctx.canvas.width; … … 84 85 var len = ctx.mozMeasureText(count); 85 86 86 // ̤�����طʤ������// XXX: ����ɤ������ 87 // 未読件数の背景を暗くする 88 // XXX: もっと良い色募集 87 89 ctx.save(); 88 90 ctx.fillStyle = "rgba(48,48,48,0.75)"; … … 90 92 ctx.restore(); 91 93 92 // ̤�������// XXX: ����ɤ������ 94 // 未読件数の描画 95 // XXX: もっと良い色募集 93 96 ctx.fillStyle = "Cyan"; 94 97 ctx.mozTextStyle = "12px sans-serif"; … … 105 108 ctx.drawImage(icon_image,0,0); 106 109 ctx.save(); 107 //�ػߥޡ�������ctx.strokeStyle = "Red"; 110 //禁止マークの描画 111 ctx.strokeStyle = "Red"; 108 112 ctx.lineWidth = "2"; 109 113 ctx.beginPath(); … … 172 176 if (!this.user_id) { 173 177 liberator.echoerr("LDR Unread Counter: Please :let "+ userIdName + " = <livedoor ID>"); 174 // FIXME: �ʤ��顼���Ф롣������ʬ����178 // FIXME: なんかエラーが出る。原因が良く分からん 175 179 //this.stop(); 176 180 return;
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)