web-dev-qa-db-fra.com

Modification de la couleur de sélection dans les thèmes Ubuntu 18.10

J'utilise le thème Ant Dracula pour mon Ubuntu. Mais la couleur de sélection est la couleur rose que je souhaite changer de couleur.

Comment puis-je changer?

Le lien de thème est https://www.gnome-look.org/p/1099856/

Pink color on home

et sur firefox.

enter image description here

2
user23

nous devons éditer le fichier gtk.css

accéder au fichier par

Sudo -H nautilus /usr/share/themes/Ant-Dracula/gtk-3.20/gtk.css/ changez /usr/share/themes si vous avez enregistré votre fichier dans ~/.themes

trouvez la couleur #ff79c6 et changez-la en couleur de votre choix dans les premières lignes. il a un effet majeur sur les thèmes.

/* 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;

il y a 67 entrées avec la couleur # ff79c6, je les ai toutes remplacées par # 456789 en un seul coup. si vous voulez essayer chaque individu, vous devez faire des essais et des erreurs de ces 67 entrées.

enregistrer le fichier et fermer. Redémarrez pour voir le changement.

enter image description here

1
PRATAP