Tuesday, April 15, 2008

Modify thunderbird display style.

Here is my userChrome.css to change the display style of thunderbird.


treechildren::-moz-tree-row(dummy) {
background-color: #96C0EF !important;
margin-bottom: 1px !important;
padding-left: 2px !important;
}

treechildren::-moz-tree-row(dummy, selected) {
background-color: -moz-Dialog !important;
}

treechildren::-moz-tree-row(dummy, selected, focus) {
background-color: Highlight !important;
}

treechildren::-moz-tree-cell-text(dummy) {
font-weight: bold !important;
font-size:12pt !important;
}


/* Label1 */
treechildren::-moz-tree-cell(lc-FFCCCC) { background-color: #DD0000 !important; }
treechildren::-moz-tree-cell(lc-FFCCCC, selected) { background-color: #DD0000 !important; }
treechildren::-moz-tree-cell-text(lc-FFCCCC) { color: #FFF0 !important; }
treechildren::-moz-tree-cell-text(lc-FFCCCC, selected) { color: #000 !important; }

/* Label2 */
treechildren::-moz-tree-cell(lc-CCCCFF) { background-color: #0000DD !important; }
treechildren::-moz-tree-cell(lc-CCCCFF, selected) { background-color: #0000DD !important; }
treechildren::-moz-tree-cell-text(lc-CCCCFF) { color: #FFF !important; }
treechildren::-moz-tree-cell-text(lc-CCCCFF, selected) { color: #000 !important; }

/* Label3 */
treechildren::-moz-tree-cell(lc-99FF99) { background-color: #00CC00 !important; }
treechildren::-moz-tree-cell(lc-99FF99, selected) { background-color: #99FF99 !important; }
treechildren::-moz-tree-cell-text(lc-99FF99) { color: #FFF !important; }
treechildren::-moz-tree-cell-text(lc-99FF99, selected) { color: #000 !important; }

/* Label4 */
treechildren::-moz-tree-cell(lc-FFFFCC) { background-color: #DDDD00 !important; }
treechildren::-moz-tree-cell(lc-FFFFCC, selected) { background-color: #DDDD00 !important; }
treechildren::-moz-tree-cell-text(lc-FFFFCC) { color: #FFF !important; }
treechildren::-moz-tree-cell-text(lc-FFFFCC, selected) { color: #000 !important; }

/* Label5 */
treechildren::-moz-tree-cell(lc-FFCCFF) { background-color: #CC33CC !important; }
treechildren::-moz-tree-cell(lc-FFCCFF, selected) { background-color: #CC33CC !important; }
treechildren::-moz-tree-cell-text(lc-FFCCFF) { color: #FFF !important; }
treechildren::-moz-tree-cell-text(lc-FFCCFF, selected) { color: #000 !important; }

/*
* Add vertical scrollbar for expanded header view
*/

#msgHeaderView {
max-height: 15em !important;
overflow: auto !important;
}

/*
* Limit height of attachment window
*/
#attachmentView {
-moz-appearance: none !important;
height: 74px !important;
overflow: auto !important;
}

Monday, April 07, 2008

vim tips about spell check

Spell checking is quite simplified after vim 7.0. I try to list some mostly used spell check functions. (Spellchecker is the integrated tool in vim 7.0, before that, script Spellchecker should be installed seperately.)

z= check the suggested word for the current marked wrong word

]s move to the next wrong word

zg add the word under cursor to the user dictionary