タイトルバー上にナビバーを重ねて表示 ― 2011/03/29 23:57
Firefoxを画面の上下いっぱいに表示していると、タブバーが一番上に表示されるのは勝手が悪い。
馴れればどうということはないかもと、Firefox 4.0βの時からずっとタブを上に表示していましたが、とうとうあきらめてしまいました。
そういうわけで、タイトルバー上にタブバーを表示するをいじってナビバーをタイトルバー上に表示することに。
/* タイトルバーにナビバーを重ねる */ #main-window[chromemargin][tabsontop="false"]:not([inFullscreen]) #navigator-toolbox:not([customizing]){ margin-top:-28px!important; } #main-window[chromemargin][tabsontop="false"]:not([hidechrome="true"]):not([inFullscreen]) #nav-bar, #main-window[chromemargin][tabsontop="false"]:not([inFullscreen]) #toolbar-menubar{ margin:0 103px 0 28px!important; padding-left:8px!important; } #main-window[chromemargin][tabsontop="false"] #appmenu-button{ background:transparent no-repeat center center url("moz-icon://file:///W:/Mozilla/icons/main-window.ico?size=24")!important; border:none!important; min-width:28px!important; max-width:28px!important; min-height:28px!important; max-height:28px!important; padding:0!important; margin:2px 0 0 0!important; -moz-box-shadow:none!important; } #main-window[chromemargin][tabsontop="false"]:not([inFullscreen]) #appmenu-button .button-text, #main-window[chromemargin][tabsontop="false"]:not([inFullscreen]) #appmenu-button .button-menu-dropmarker{ display:none!important; } #main-window[chromemargin][tabsontop="false"]:not([inFullscreen]) #appmenu-button-container > *{ position:relative!important; z-index:1!important; }
3/30 「:not([hidechrome="true"])」追加
3/31 「width:auto!important;height:auto!important;」は不要だったので削除
ナビバーの左(Firefoxボタンよけ)マージン28px
ナビバーの右(ウインドウクローズボタンなど)マージン103px
Firefoxボタンとナビバーの間の隙間8px(ウインドウを動かす時ここをマウスでドラッグする)
タブバーが細いのはタブバーを細くしてみたを参照
巫女狐はFirefox and Mozilla icon packs :: Anime Firefoxの「Install for Windows/Linux」を右クリック「名前を付けてリンク先を保存」で「anime-firefox-windows-linux.xpi」をダウンロード.xpiを.zipにリネームして解凍して「main-window.ico」を取り出しています。
あと、Firefox 4 UI Fixerでタブバーにアドオンをおいています。
ALTキーを押す↓
さらにFireGesturesでWindowsタイトルバーを隠す↓
その状態でALTキーを押すと↓
左端のFirefoxボタンがあるっぽいところをクリック↓
するとメニュー表示↓
ただ、Windowsタイトルバーを消すとFlashの文字が悲しいことになりますが……
さらに、このままではWindowsタイトルバーを隠したときにクローズボタンが押せませんので、「localstore.rdf」の「,window-controls」を「browser.xul#TabsToolbar」の最後に移動して、タブバーに表示させます。
コメント
トラックバック
このエントリのトラックバックURL: http://puppet.asablo.jp/blog/2011/03/29/5764305/tb
※なお、送られたトラックバックはブログの管理者が確認するまで公開されません。
コメントをどうぞ
※メールアドレスとURLの入力は必須ではありません。 入力されたメールアドレスは記事に反映されず、ブログの管理者のみが参照できます。
※投稿には管理者が設定した質問に答える必要があります。