我用蚂蚁德古拉Ubuntu 的主题。但选择颜色粉色的颜色,我想将其改为不同的颜色。
我该如何改变?
主题链接是https://www.gnome-look.org/p/1099856/
以及 Firefox。
答案1
我们需要编辑文件 gtk.css
通过以下方式访问文件
sudo -H nautilus /usr/share/themes/Ant-Dracula/gtk-3.20/gtk.css/
如果/usr/share/themes
您将文件存储在~/.themes
#ff79c6
在初始行中找到颜色并将其更改为您喜欢的颜色。它对主题有重大影响。
/* GTK NAMED COLORS
----------------
use responsibly! */
/* widget text/foreground color */
@define-color theme_fg_color #f8f8f2;
/* text color for entries, views and content in general */
@define-color theme_text_color #f8f8f2;
/* widget base background color */
@define-color theme_bg_color #1e1f29;
/* text widgets and the like base background color */
@define-color theme_base_color #282a36;
/* base background color of selections */
@define-color theme_selected_bg_color #ff79c6;
/* text/foreground color of selections */
@define-color theme_selected_fg_color #f8f8f2;
/* base background color of disabled widgets */
@define-color insensitive_bg_color #22232e;
/* text foreground color of disabled widgets */
@define-color insensitive_fg_color #8b8c8e;
/* disabled text widgets and the like base background color */
@define-color insensitive_base_color #282a36;
/* widget text/foreground color on backdrop windows */
@define-color theme_unfocused_fg_color #8b8c8e;
/* text color for entries, views and content in general on backdrop windows */
@define-color theme_unfocused_text_color #f8f8f2;
/* widget base background color on backdrop windows */
@define-color theme_unfocused_bg_color #1e1f29;
/* text widgets and the like base background color on backdrop windows */
@define-color theme_unfocused_base_color #2a2c39;
/* base background color of selections on backdrop windows */
@define-color theme_unfocused_selected_bg_color #ff79c6;
/* text/foreground color of selections on backdrop windows */
@define-color theme_unfocused_selected_fg_color #f8f8f2;
/* widgets main borders color */
@define-color borders rgba(25, 26, 34, 0.9);
/* widgets main borders color on backdrop windows */
@define-color unfocused_borders rgba(26, 27, 35, 0.91);
/* these are pretty self explicative */
@define-color warning_color #ff9f39;
@define-color error_color #ff3c3c;
@define-color success_color #4caec3;
有 67 个条目的颜色为 #ff79c6,我一次性将它们全部替换为 #456789。如果您想尝试每一个,则必须对这 67 个条目进行反复试验。
保存文件并关闭。重新启动即可看到更改。