![제목 표시줄 높이를 줄이는 방법은 무엇입니까?](https://linux55.com/image/81918/%EC%A0%9C%EB%AA%A9%20%ED%91%9C%EC%8B%9C%EC%A4%84%20%EB%86%92%EC%9D%B4%EB%A5%BC%20%EC%A4%84%EC%9D%B4%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C%3F.png)
실행 중인데 GNOME 3.18
제목 표시줄의 높이를 낮추고 싶습니다.
어떻게 해야 하나요?
답변1
Gnome 3.20 이후에는 .header-bar.default-decoration
작동하지 않습니다.
다음 내용을 넣을 수 있습니다 ~/.config/gtk-3.0/gtk.css
.
/* shrink headerbars (don't forget semicolons after each property) */
headerbar {
min-height: 0px;
padding-left: 2px; /* same as childrens vertical margins for nicer proportions */
padding-right: 2px;
background-color: #2d2d2d;
}
headerbar entry,
headerbar spinbutton,
headerbar button,
headerbar separator {
margin-top: 0px; /* same as headerbar side padding for nicer proportions */
margin-bottom: 0px;
}
/* shrink ssd titlebars */
.default-decoration {
min-height: 0; /* let the entry and button drive the titlebar size */
padding: 0px;
background-color: #2d2d2d;
}
.default-decoration .titlebutton {
min-height: 0px; /* tweak these two props to reduce button size */
min-width: 0px;
}
window.ssd headerbar.titlebar {
padding-top: 3px;
padding-bottom: 3px;
min-height: 0;
}
window.ssd headerbar.titlebar button.titlebutton {
padding-top: 3px;
padding-bottom:3px;
min-height: 0;
}
답변2
제목 표시줄 크기를 줄이려면 css
이 위치에 파일을 만들고 ~/.config/gtk-3.0/gtk.css
다음 코드를 복사하여 붙여넣으면 제목 표시줄의 크기가 조정됩니다.
.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;
}
ALT+를 누르고 나타나는 상자에 입력한 다음 클릭하여 F2그놈 쉘을 다시 로드하십시오.rEnter
가셔도 좋습니다 :)