首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >哪个GTK为18.04

哪个GTK为18.04
EN

Ask Ubuntu用户
提问于 2019-11-17 03:10:22
回答 1查看 226关注 0票数 2

我试图编辑一个主题,以定制它,我喜欢。主要是换颜色。它有以下文件夹

GTK文件夹有gtk.cssgtk-dark.css。我应该编辑哪个gtk.css,以便使用18.04进行更改?与18.04有关的GTK是什么?还有其他我需要编辑的文件吗?主题是“马提亚”

https://github.com/nana-4/materia-theme

谢谢

更新1:

无法找到CSS类以更改边框底部颜色。

更新2:

gtk 3.22中的gtk.css - Google

https://drive.google.com/file/d/1ntA-mDEjFdyeT93Y62Lm9n-yPDi9qtLw/view?usp=sharing

更新3:

看起来我的代码是正确的,但是边框底部仍然是白色的:

代码语言:javascript
复制
:not(headerbar) .caja-pathbar button, .caja-pathbar :not(headerbar) button, :not(headerbar)
.path-bar button {
  border-image: radial-gradient(circle closest-corner at center calc(100% - 1px), #03a9f4 0%, transparent 0%) 0 0 0/0 0 0px;
  border-radius: 2px;
}

:not(headerbar) .caja-pathbar button:checked, .caja-pathbar :not(headerbar) button:checked, :not(headerbar)
.path-bar button:checked {
  border-image: radial-gradient(circle closest-corner at center calc(100% - 1px), #03a9f4 100%, transparent 0%) 0 0 2/0 0 2px;
}
EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2019-11-17 09:12:12

若要使用您提供的https://drive.google.com/file/d/1NgWdbxKmIbh38WJo9vFDI4wYEfXu1UTz/view?usp=sharing文件夹进行所需更改,请执行以下操作

导航到.../gtk-3.22/gtk.css,编辑文件,在第632行左右添加以下内容

代码语言:javascript
复制
.path-bar.linked:not(.vertical) > button:checked {
  border-image: radial-gradient(circle closest-corner at center calc(100% - 1px), #FF0000 100%, transparent 0%) 0 0 2/0 0 2px;
}

将颜色#FF0000改为您喜欢的颜色。

如果您没有遵循手动安装过程:

然后打开Materia主题的文件D6,并在631左右的行号上添加以下内容

代码语言:javascript
复制
.path-bar.linked:not(.vertical) > button:checked {
  border-image: radial-gradient(circle closest-corner at center calc(100% - 1px), #1A73E8 100%, transparent 0%) 0 0 2/0 0 2px;
}

https://github.com/nana-4/materia-theme#manual-installation

代码语言:javascript
复制
Manual Installation

Run the following commands in the terminal:

git clone --depth 1 https://github.com/nana-4/materia-theme
cd materia-theme
sudo ./install.sh

对于Materia主题:

打开gtk.css文件,在1566Col 83左右的行号上查找以下内容

代码语言:javascript
复制
.caja-pathbar button:checked,
.path-bar.linked:not(.vertical) > button:checked {
  border-image: radial-gradient(circle closest-corner at center calc(100% - 1px), #1A73E8 100%, transparent 0%) 0 0 2/0 0 2px;
}

根据你的喜好改变颜色#1A73E8。

例如:如果采用materia-compact主题,请在gtk.css文件中查找以下内容。

代码语言:javascript
复制
.caja-pathbar button:checked,
.path-bar.linked:not(.vertical) > button:checked {
  border-image: radial-gradient(circle closest-corner at center calc(100% - 1px), #00FF00 100%, transparent 0%) 0 0 2/0 0 2px;
}
票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1189444

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档