Hatena::Groupvimperator

mizchiのvimp勉強日記 RSSフィード

2009-06-16

[]タブバーの表示・非表示 23:12 タブバーの表示・非表示 - mizchiのvimp勉強日記 を含むブックマーク はてなブックマーク - タブバーの表示・非表示 - mizchiのvimp勉強日記 タブバーの表示・非表示 - mizchiのvimp勉強日記 のブックマークコメント

だいぶご無沙汰していました

ツリー型タブの縦置き表示においては、set showtabline=0 が効きません。いや、タブは消えるのですが、タブバーが消えない。


で、そこはスタイルシートで消してやればいいのでは?と思い立ち、retletさんの助けを借りてこんなことをやってみました


表示 map [ <silent> :style -name hidetab chrome://* .tabbrowser-strip { display: none !important; }<CR>

非表示 map ] <silent> :style -name hidetab chrome://* .tabbrowser-strip { display: list-itme !important; }<CR>


問題点

■遅い

目的は達しているのだけど、この操作感はよろしくない

本来ならjsXULに対して操作を行うのがいいんだろうけど、僕自身jsとかxulに疎くなんともしがたい。

■ずれる

最後にgg(Macなら<M-Up>も可能か)を加えてtopに持ってくるとかもできるが、スマートじゃない


thx! id:retlet

http://twitter.com/retlet/status/2192037345

2009-05-11

color schemeをちょっと読んでみた 09:25 color schemeをちょっと読んでみた - mizchiのvimp勉強日記 を含むブックマーク はてなブックマーク - color schemeをちょっと読んでみた - mizchiのvimp勉強日記 color schemeをちょっと読んでみた - mizchiのvimp勉強日記 のブックマークコメント

元miz_kです。id:mizchiにアカウント取得し直したので、ちょっと書いてみようかと。

VoQnさんのレイアウトを、自分で少しいじってみました。とは言っても、VoQnさんの例から色を変えただけです。

最上段のタイトル部分はなんという要素なのかわからず、放置しました。


レイアウトを変更してるアドオンは「ツリー型タブ」です。


こんな感じです


sweets.vimp

" ==Vimperator_Color_Scheme==

" name: Sweets

" ==Sweets_Color_Scheme==

hi Hint font-family: monospace; font-size: 12px; font-weight: normal; color: lightyellow; background-color: black; border-color: ButtonShadow; border-width: 0px; border-style: solid; padding: 0px 5px;

hi HintElem background-color: slategray; color: wheat;

hi HintActive background-color: hotpink; color: white;

hi StatusLine color:orangered; background: lightgreen;font-size:13px;

hi Normal color: LightYellow; background: #333; font-size: 10pt;

hi InfoMsg color: LightYellow; background: #333; font-size: 10pt;

hi ModeMsg color: LightYellow; background: #333; font-size: 10pt;

hi MoreMsg color: LimeGreen; background: #333;

hi LineNr color: DeepPink; background: #333; font-size: 10pt;

hi Question color: Yellow; background: #333; font-size: 10pt;

hi WarningMsg color: DeepPink; background: #333; font-size: 10pt;

hi NonText background: #333;

hi Null color: CornflowerBlue;

hi Tag color: CornflowerBlue;

hi CompTitle color: magenta; background: #222; font-weight: bold;

hi CompItem[selected] color: DeepPink; background: Black;

hi CompDesc color: Pink;

hi GradientRight background-color: Black;

hi Title color: white;

hi Indicator color: DodgerBlue;

hi String color: Orchid;

hi Number color: Orchid;

hi Object color: Khaki;

hi Function color: SkyBlue;

hi URL color: black;

hi TabNumber color: gray; font-weight: bold; font-size: 10pt;

style -name tab chrome://* <<EOM</ppp>

#content { background-color: wheat; } /* tabbar */

.tabs-alltabs-button { padding: 0 !important; }

.tabs-container > stack { display: none; } /* remove tab selection menu */

/*.tabs-container .box-inherit.scrollbox-innerbox { border-bottom: 1px solid #404040; } /* tab bar position: top */

.tabs-container scrollbox {

background-color: lightgreen;

border-bottom: 0px solid #FFFFFF;

}

.tabbrowser-tab {

-moz-apperance: none !important;

margin: 0px 0px 1px 1px !important;

padding: 1px !important;

-moz-border-radius-topleft: 0 !important;

-moz-border-radius-topright: 0 !important;

-moz-border-radius-bottomright: 0 !important;

-moz-border-radius-bottomleft: 0 !important;

border-bottom: 1px solid #000 !important;

background-image: none !important;

background-color:midnightblue !important;

color:black !important;

text-align: left !important;

}

.tabbrowser-tab[selected=false] { background: mintcream !important; }

.tabbrowser-tab[selected=true] .tab-text { color: white !important; }

.tab-image-icon { margin-bottom: -4px; }

.tab-image-left,

.tab-image-middle,

.tab-image-right {

background-image: none !important;

}

EOM

hi TabText font-size:10px;

hi TabIcon ;

style -name statusbar chrome://* <<EOM</ppp>

#status-bar statusbarpanel { padding: 0 1px !important; }

statusbarpanel > * { margin: 0 !important; padding: 0 !important; }

EOM