~/.config/gtk-3.0/gtk.css
Gnome 3.18では、CSSを変更してすべてのウィンドウのタイトルバーの高さを変更できます。gnome 3 / gtk+ 3でタイトルバーの高さを下げる。
.header-bar.default-decoration {
padding-top: 0px;
padding-bottom: 0px;
}
.header-bar.default-decoration .button.titlebutton {
padding-top: 0px;
padding-bottom: 0px;
}
/* No line below the title bar */
.ssd .titlebar {
border-width: 0;
box-shadow: none;
}
Gnome 3.20では、Nautilus(ファイル)、設定、写真、連絡先などのタイトルバー/CSD(タイトルバーのgnome固有のボタン)があるウィンドウでは機能しなくなります。調整により、gnome-terminalやgVimなどの他のアプリケーションのタイトルバーの高さがまだ低下します。 gnomeプログラム(Gnome 3.20のNautilusなど)でタイトルバーの高さを減らすには?
修正する
私もそれが何であるかを試しました。このRedditスレッドで提案。どちらも試しましたが、サイコロはありませwindow.ssd
んでした。.ssd
動作します。詳しくは、投稿した回答をご覧ください。
window.ssd headerbar.titlebar {
padding-top: 1px;
padding-bottom: 1px;
min-height: 0;
}
window.ssd headerbar.titlebar button.titlebutton {
padding-top: 1px;
padding-bottom: 1px;
min-height: 0;
}
そして
/* shrink headebars */
headerbar {
min-height: 38px;
padding-left: 2px; /* same as childrens vertical margins for nicer proportions */
padding-right: 2px;
}
headerbar entry,
headerbar spinbutton,
headerbar button,
headerbar separator {
margin-top: 2px; /* same as headerbar side padding for nicer proportions */
margin-bottom: 2px;
}
/* shrink ssd titlebars */
.default-decoration {
min-height: 0; /* let the entry and button drive the titlebar size */
padding: 2px
}
.default-decoration .titlebutton {
min-height: 26px; /* tweak these two props to reduce button size */
min-width: 26px;
}
ベストアンサー1
- ~/.config/gtk-3.0/gtk.css ファイルの生成 (次の CSS 追加)
- その後、gnome-shellを再ロードして次のように入力する必要が
ALT + F2
あります。r
次のCSSを使用して、Gnome 3.20でアプリケーションのタイトルバーを折りたたむことができました。
headerbar entry,
headerbar spinbutton,
headerbar button,
headerbar separator {
margin-top: 0px; /* same as headerbar side padding for nicer proportions */
margin-bottom: 0px;
}
headerbar {
min-height: 24px;
padding-left: 2px; /* same as childrens vertical margins for nicer proportions */
padding-right: 2px;
margin: 0px; /* same as headerbar side padding for nicer proportions */
padding: 0px;
}