title: ubuntu修改頂欄顏色
toc: false
date: 2018-09-29 19:14:01
categories:
- methods
tags:
- Ubuntu
編輯shell主題的css文件,比如我的shell主題是Vimix-Beryl
:
sudo gedit /usr/share/themes/Vimix-Beryl/gnome-shell/gnome-shell.css
打開之后搜索top bar
,會看到這樣一段:
/* TOP BAR */
#panel {
background-color: rgba(0, 0, 0, 0.6);
/* transition from solid to transparent */
transition-duration: 250ms;
font-weight: bold;
height: 32px;
}
按照自己的喜好修改background-color
即可_
補充:修改完可能並不能直接看到效果,可以在tweaks里先切換成別的主題再換成修改了的主題。
再補充:因為我是把透明度調到了大概0.2左右,導致使用hide top bar擴展時使用鼠標觸發top bar后幾乎看不清,可以往下找一下#panel.solid
,把background-color
改成這樣:
#panel.solid {
background-color: rgba(0, 0, 0, 0.5);;
/* transition from transparent to solid */
transition-duration: 250ms;
background-gradient-direction: none;
text-shadow: none;
}