Problèmes et questions concernant l'édition XFCE.
Répondre

documentation xfce-gtk3

#1Messageil y a 5 ans

bonjour à tou.te.s

j'ai installé xfce4-gtk3 et ça baigne
mais la "gestion des couleurs" me laisse perplexe,
je ne comprend pas tout, je ne parviens pas à faire ce que je veux
j'ai compris qu'on utilisait ~/.config/gtk-3.0/settings.ini

[Settings]
gtk-button-images=1
gtk-enable-tooltips=0
gtk-font-name=Hack
gtk-icon-theme-name=gnome
gtk-menu-images=1
gtk-theme-name=inuse
et ~/.config/gtk-3.0/gtk.css

* {
  background: #1a1a1a;
  background-color: #1a1a1a;
  color: #aaaaaa;
}
*:hover {
  background: #505050;
  background-color: #505050;
  border-color: #505050;
  color: #ff8000;
}
mais ( ben oui ! ), background-color est ineffectif, comment surligner la sélection d'un texte ? ...
il existe une doc quelque part ? je ne trouve rien
si vous pouviez m'aiguiller...

merci d'avance

documentation xfce-gtk3

#2Messageil y a 5 ans

Bonjour.
Il n'y a pas, ou du moins, je n'ai pas trouvé de doc sur la customisation des fichiers .css pour GTK3.
Par contre, j'ai trouvé ce fichier de démonstration qui permet une bonne base de départ.

* {
  padding: 1;
  -GtkButton-child-displacement-x: 1;
  -GtkButton-child-displacement-y: 1;
  -GtkCheckButton-indicator-size: 14;

  background-color: @bg_color;
  color: @fg_color;

  -Clearlooks-colorize-scrollbar: true;
  -Clearlooks-style: classic;
}

*:hover {
  background-color: shade (@bg_color, 1.02);
}

*:selected {
  background-color: @selected_bg_color;
  color: @selected_fg_color;
}

*:insensitive {
  color: shade (@bg_color, 0.7);
}

*:active {
  background-color: shade (@bg_color, 0.9);
}

.tooltip {
  padding: 4;

  background-color: @tooltip_bg_color;
  color: @tooltip_fg_color;
}

.button {
  padding: 3;
  background-color: shade (@bg_color, 1.04);
}

.button:hover {
  background-color: shade (@bg_color, 1.06);
}

.button:active {
  background-color: shade (@bg_color, 0.85);
}

.entry {
  padding: 3;

  background-color: @base_color;
  color: @text_color;
}

.entry:selected {
  background-color: mix (@selected_bg_color, @base_color, 0.4);
  -Clearlooks-focus-color: shade (0.65, @selected_bg_color)
}

/* The latter selector is an specification of the first,
   since any widget may use the same classes or names */
#window-name .button,
GtkWindow#window-name GtkButton.button {
  background-color: #fff;
}
Plus qu'a faire mumuse avec....

documentation xfce-gtk3

#3Messageil y a 5 ans

et bien merci
je vais regarder/tester/m'amuser avec ça
j'arriverais peut-être à ce que j'aimerais (?)
@+

documentation xfce-gtk3

#4Messageil y a 5 ans

:bjr:
tu peux aussi voir ce code source
je peux voir des :focus et selection-background-color , selected-color:saispas:

documentation xfce-gtk3

#5Messageil y a 5 ans

hélas : selection-background-color , selected-color sont refusés
dès le xfce4-panel -r
@+

documentation xfce-gtk3

#6Messageil y a 5 ans

finalement, à peu près ce que je voulais
settings.ini

[Settings]
gtk-application-prefer-dark-theme=true
gtk-button-images=1
gtk-enable-tooltips=0
gtk-font-name=Hack
gtk-icon-theme-name=gnome
gtk-menu-images=1
gtk-theme-name=inuse
gtk.css

GtkWindow {
    background-color: #1a1a1a;
  	color: #aaaaaa;
}
*:hover {
  	background: #505050;
  	color: #f0f000;
}
*:hover instead {
	background: #808080;
	color: #ff8000;
}
*:selected {
	background: #808080;
	background-color: #808080;
	color: #000040;
}
.input:selected {
	background: #555588;
	background-color: #555588;
}
des redondances et de l'inutile à affiner
merci à vous
@+
Répondre