欢迎找我内推微软

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;
}
posted @ 2018-12-26 17:50  zmj97  阅读(1899)  评论(0编辑  收藏  举报
欢迎找我内推微软