logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 20-09-2008 10:49:35

bjm
Membre
Distrib. : Wheezy 7.1
(G)UI : AWESOME ; Ratpoison
Inscription : 23-02-2008

Modifié un thème GTK2 (résolu)

Salut à tous smile
J'utilise fluxbox  et j'utilise les thèmes GTK2 pour la déco des applications .
J'ai trouvé un thème qui me plait à par une couleur (un mauve) que je veux changer.
Dans le répertoire du theme j'ai repéré un fichier gtkrc , je l'ai ouvert mais je sais pas ou ce trouve ce mauve.
Je voudrai savoir s'il éxiste un tuto expliquant comment modifié un thème GTK2.

[small][small][/small][/small]# Theme Name  : YattaBlues
# Author(s)   : Massimiliano (Yatta) Dal Cero < yattamax<at>gmail.com >
#
# Description :
# UserLinux GTK2 theme using the Smooth engine.

include "iconrc"
gtk-icon-sizes = "panel-menu=24,24:gtk-menu=16,16"

style "default" {
  GtkWidget::interior_focus = 5
  GtkButton::default_border = {0, 0, 0, 0}
  GtkButton::default_outside_border = {0, 0, 0, 0}

  GtkRange::trough_border = 0
  GtkWidget::focus_padding = 0

  GtkPaned::handle_size = 7
 
  GtkRange::slider_width = 15
  GtkRange::stepper_size = 15
  GtkScrollbar::min_slider_length = 30
  GtkCheckButton::indicator_size = 16
  GtkRadioButton::indicator_size = 12
  GtkMenuBar::internal-padding = 0

  GtkButton::child_displacement_x = 0
  GtkButton::child_displacement_y = 1

   GtkScrollbar::has_backward_stepper = 1
   GtkScrollbar::has_secondary_forward_stepper = 0

   GtkScrollbar::has_forward_stepper = 1
   GtkScrollbar::has_secondary_backward_stepper = 1
             

  GtkMenuItem::selected_shadow_type = GTK_SHADOW_OUT

  bg[NORMAL] = "#f7f7f7"
  bg[PRELIGHT] = "#f7f7f7"
  bg[SELECTED] = "#a0b1d7"
  bg[ACTIVE] = "#e7e7e7"
  bg[INSENSITIVE] = "#e7e7e7"

  fg[NORMAL] = "#000000"
  fg[PRELIGHT] = "#000000"
  fg[SELECTED] = "#ffffff"
  fg[ACTIVE] = "#000000"

  engine "smooth" {
    tab_style = round

    line {
      style = smooth
      thickness = 0
    }

    grip {
      #style = mac_buds_in
      style = none
      fill {
        style = shaded
        hdirection = vertical
        vdirection = horizontal
        shade1 = 1.3
        shade2 = 0.9
      }
    }

    trough {
      fill {
        style = smooth
      }
    }

    arrow {
      style = cleanice
      solid = TRUE
            etched = FALSE
    }

    check {
      style = clean
      motif = FALSE

      fill {
        style = shaded
        hdirection = fdiagonal
        vdirection = fdiagonal
        shade1 = 1.3
        shade2 = 0.9
      }
    }
  }

} widget_class "*" style "default"

style "tooltips" {
  bg[NORMAL] = "#ffff96"
  bg[PRELIGHT] = "#ffff96"
  bg[SELECTED] = "#ffff96"
  bg[ACTIVE] = "#ffff96"
  bg[INSENSITIVE] = "#ffff96"
}

style "paned" {
  bg[PRELIGHT] = "#a0b1d7"
 
  engine "smooth" {
    fill {
      style = shaeded
    }
    grip {
      style = mac_buds_in
    }
  }
}

style "progres" {
  bg[PRELIGHT] = "#5279d0"
 

  engine "smooth" {
    line {
      style=smooth
    }

    fill {
      style=shaded
      hdirection=vertical
      vdirection=horizontal
      shade1=1.195
      shade2=0.73
    }

  }
}

class "*Paned" style "paned"

style "handle" {
  #bg[NORMAL] = "#f7f7f7"

  engine "smooth" {
    line {
      style = smooth
      thickness = 0
    }

    grip {
      style = none
      fill {
        style = shaded
        hdirection = vertical
        vdirection = horizontal
        shade1 = 1.0
        shade2 = 0.95
      }
    }
  }
}

style "menubar" {
  engine "smooth" {
    line {
      style = bevel
      thickness = 0
    }
  }
}

style "menu" {
  engine "smooth" {
    line {
      style = smooth
      thickness = 1
    }

    arrow {
      style = cleanice
      solid = TRUE
    }
  }
}

style "toolbar" {
  engine "smooth" {
    line {
      style = bevel
      thickness = 0
    }

    grip {
      #style = mac_buds_in
      style = none
      toolbar_overlap = TRUE
    }
  }
}

style "button" {
  fg[PRELIGHT] = "#ffffff"
  bg[PRELIGHT] = "#a0b1d7"

  engine "smooth" {
    fill {
      style = shaded
      hdirection = vertical
      vdirection = horizontal
      shade1 = 1.3
      shade2 = 0.9
    }

    line {
      style = smooth
      thickness = 1
    }

    check {
      style = clean
      motif = FALSE

      fill {
        style = shaded
        hdirection = fdiagonal
        vdirection = fdiagonal
        shade1 = 1.3
        shade2 = 0.9
      }
    }

    option {
      style = round
      motif = FALSE
      fill {
        style = shaded
        hdirection = fdiagonal
        vdirection = fdiagonal
        shade1 = 1.3
        shade2 = 0.9
      }
    }

    trough {
      fill {
        style = solid
      }
     
      line {
        style = none
      }
    }

    arrow {
      style = cleanice
      solid = TRUE
    }
  }
}

style "menu-item" {
  fg[PRELIGHT] = "#ffffff"
  bg[PRELIGHT] = "#a0b1d7"
  #bg[PRELIGHT] = "#000"

  engine "smooth" {
    fill {
      style = solid
      hdirection = vertical
      vdirection = horizontal
      #shade1 = 0
      #shade2 = 0
    }

    line {
      style = smooth
      thickness = 2
    }
   
    edge {
        line {
      style = flat
      thuckness = 1
        }
    }

    check {
      style = clean
      motif = FALSE
     
      #line {
      #    style = none
      #    thickness = 1
      #}
    }

    option {
      style = clean
      motif = FALSE
      fill {
        style = shaded
        hdirection = fdiagonal
        vdirection = fdiagonal
        shade1 = 1.3
        shade2 = 0.9
      }
    }

    arrow {
      style = xfce
      solid = TRUE
    }
  }
}

style "scrollbar" {
  bg[PRELIGHT] = "#a0b1d7"

  GtkRange::trough_border = 1
  GtkRange::slider_width = 15
  GtkRange::stepper_size = 15
  GtkRange::stepper_spacing = 0

  engine "smooth" {
    fill {
      style = shaded
      hdirection = vertical
      vdirection = horizontal
      shade1 = 1.3
      shade2 = 0.9
    }

    line {
      style = smooth
      thickness = 1
    }

    trough {
         xpadding = 0
         ypadding = 0
         show_value = TRUE

         line {
          style=smooth
          #thickness=2
         }

          fill {
               style = shaded
                    hdirection = vertical
                    vdirection =horizontal
                    shade1 = 0.90
                    shade2 = 1.06
          }
    }

#   trough {
#     fill {
#       style = solid
#     }
#     line {
#       style = none
#       thickness = 0
#     }
#   }

    grip {
      #style = mac_buds_in
      style = none
      #line {
      # style = smooth
      # thickness = 1
      #}
    }

    arrow {
      style = cleanice
      solid = TRUE
      xpadding = 1
      ypadding = 1
    }
  }
}

style "hscales"  {
  bg[PRELIGHT] = "#a0b1d7"

  GtkRange::trough_border = 0
  GtkRange::slider-width = 15
  GtkScale::slider-length = 10

  engine "smooth" {
    line {
      style = smooth
      thickness = 1
    }

    fill {
      style = shaded
      hdirection = vertical
      vdirection = horizontal
      shade1 = 1.3
      shade2 = 0.9
    }

    trough {
      xpadding = 2
      ypadding = 1
      show_value = TRUE
      fill {
        style = solid
      }
    }

    grip {
      #style = mac_buds_in
      style = none
    }

    real_sliders = FALSE
  }
}

style "vscales"  {
  bg[PRELIGHT] = "#a0b1d7"

  GtkRange::trough_border = 0
  GtkRange::slider-width  = 15
  GtkScale::slider-length = 10

  engine "smooth" {
    line {
      style = smooth
      thickness = 1
    }

    fill {
      style = shaded
      hdirection = vertical
      vdirection = horizontal
      shade1 = 1.3
      shade2 = 0.9
    }

    trough {
      xpadding = 1
      ypadding = 2
      show_value = TRUE
      fill {
        style = solid
      }
    }

    grip {
      #style = mac_buds_in
      style = none
    }

    real_sliders = FALSE
  }
}

style "infobar" {
  bg[PRELIGHT] = "#a0b1d7"

  xthickness = 1
  ythickness = 2

  engine "smooth" {
    line {
      style = smooth
      thickness = 1
    }

    fill {
      style = shaded
      hdirection = vertical
      vdirection = horizontal
      shade1 = 1.3
      shade2 = 0.9
    }

    trough {
      fill {
        style = solid
      }
    }
  }
}

class "*Progress*" style "progres"
widget_class "*Progress*" style "progres"
class "*BonoboDockItem" style "handle"
class "*HandleBox" style "handle"
class "*Toolbar" style "toolbar"

class "GtkMenuBar" style "menubar"
widget_class "GtkMenuBar" style "menubar"
class "GtkMenu" style "menu"
class "*MenuItem*" style "menu-item"
widget_class "*MenuItem*" style "menu-item"
class "GtkStatusbar" style "menubar"

class "*Button*" style "button"
widget_class "*Button*" style "button"

class "*OptionMenu*" style "button"
widget_class "*OptionMenu*" style "button"

class "*Button*" style "button"
widget_class "*Button*" style "button"

class "*OptionMenu*" style "button"
widget_class "*OptionMenu*" style "button"
class "*RadioButton*" style "button"
widget_class "*RadioButton*" style "button"
class "*CheckButton*" style "button"
widget_class "*CheckButton*" style "button"

widget_class "*Scrollbar*" style "scrollbar"
class "*Scrollbar*" style "scrollbar"
widget_class "*HScale*" style "hscales"
class "*HScale*" style "hscales"
widget_class "*VScale*" style "vscales"
class "*VScale*" style "vscales"

class "*Paned" style "scrollbar"
widget_class "*Paned" style "scrollbar"

class "GtkTooltips" style "tooltips"
[small][small][/small][/small]

Dernière modification par bjm (20-09-2008 10:53:28)

Hors ligne

#2 20-09-2008 20:08:44

palmito
Administrateur
Lieu : Dans la boite de gâteau!
Distrib. : bah....
Noyau : heu...
(G)UI : gné?
Inscription : 28-05-2007

Re : Modifié un thème GTK2 (résolu)

Salut

C'est un thème d'origine? un thème que tu as installé toi même?

Hors ligne

#3 21-09-2008 11:14:14

bjm
Membre
Distrib. : Wheezy 7.1
(G)UI : AWESOME ; Ratpoison
Inscription : 23-02-2008

Re : Modifié un thème GTK2 (résolu)

C'est un thème que j'ai installé il ce situe dans mon home.

Hors ligne

#4 21-09-2008 11:44:16

palmito
Administrateur
Lieu : Dans la boite de gâteau!
Distrib. : bah....
Noyau : heu...
(G)UI : gné?
Inscription : 28-05-2007

Re : Modifié un thème GTK2 (résolu)

Dans ce cas dans ~/.fluxbox/styles/ton_thème, tu dois avoir un fichier thème.cfg.
C'est dedans que tu pourras normalement changer la couleur.

Au pire paste le si tu veux que j'y jette un oeil wink

Hors ligne

#5 21-09-2008 14:00:45

bjm
Membre
Distrib. : Wheezy 7.1
(G)UI : AWESOME ; Ratpoison
Inscription : 23-02-2008

Re : Modifié un thème GTK2 (résolu)

Je crois q'un c'est pas compris roll ce repertoire ~/.fluxbox/styles/ton_thème
et le repertoire ou se trouve les themes de fluxbox , et moi c'est le theme gtk que je veux modifié celui
des applications que l'on change avec:

$switch2
ou bien
gtk-chtheme

Hors ligne

#6 21-09-2008 17:51:44

palmito
Administrateur
Lieu : Dans la boite de gâteau!
Distrib. : bah....
Noyau : heu...
(G)UI : gné?
Inscription : 28-05-2007

Re : Modifié un thème GTK2 (résolu)

Ok...alors je n'ai jamais modifié les thèmes gtk2...
Une petite recherche avec le nom de ton thème (locate, whereis...) nous dira sûrement ou il se trouve et ainsi accéder a son fichier perso de conf? (~/.themes ??)

Hors ligne

#7 23-09-2008 15:34:56

bjm
Membre
Distrib. : Wheezy 7.1
(G)UI : AWESOME ; Ratpoison
Inscription : 23-02-2008

Re : Modifié un thème GTK2 (résolu)

J'ai réussi à modifié la couleur en copiant le code HTML
par exemple celui de cette ligne

    bg[NORMAL] = "f7f7f7"


Le code à copier

f7f7f7


Dans the gimp pour repérer la couleur;
puis dans the gimp j'ai choisi ma couleur  copier le code HTML  que j'ai collé  dans le fichier gtkrc .
J'aurai aimé trouvé un tuto , pour voir les possibilités de personalisation.

Dernière modification par bjm (23-09-2008 15:36:40)

Hors ligne

#8 23-09-2008 18:35:35

freddec
homo-informaticus du genre linuxo-debianicum
Lieu : Saint Jean d'Y (17)
Distrib. : Branche Stable (BullsEye en 2022)
Noyau : Ca depend !
(G)UI : XFCE (+/- Mate, Cinnamon, Gnome, LXDE)
Inscription : 09-01-2008

Re : Modifié un thème GTK2 (résolu)

salut
Sinon tu as ça, moins pointu que Gimp, mais plus rapide
http://pagesperso-orange.fr/jmpetit/dos … rshexa.htm

Desktop: Debian BullsEye (Core I5 - 16Go - SSD + 2HDD et NAS Netgear)
Laptop 1: BullsEye (PackardBell TS 44, Core I5, 4Go, SSD), Laptop 2: BullsEye (Lenovo, Core I5, 8Go, SSD)
EeePC : Debian Jessie (Atom N450, 2 Go)
Raspberry Pi B+: Raspbian (Stretch)

Hors ligne

#9 23-09-2008 18:59:46

bjm
Membre
Distrib. : Wheezy 7.1
(G)UI : AWESOME ; Ratpoison
Inscription : 23-02-2008

Re : Modifié un thème GTK2 (résolu)

J'ai trouvé aussi
http://fr.wikipedia.org/wiki/Liste_des_couleurs
Avec gimp je fais un copier coller de la valeur qui est dans le fichier  et il me donne de suite la couleur , peu t'être qu'il existe un site qui offre cette possibilité.

Hors ligne

#10 23-09-2008 19:51:58

palmito
Administrateur
Lieu : Dans la boite de gâteau!
Distrib. : bah....
Noyau : heu...
(G)UI : gné?
Inscription : 28-05-2007

Re : Modifié un thème GTK2 (résolu)

Bonsoir

Oui, dès ton premier post j'avais controlé toutes les couleurs qui se trouvaient dans ton gtkrc et comme je n'ai pas trouvé de mauve dedans je me suis dit que ca devait surement être un autre fichier....

As tu réussi à changer la couleur mauve qui te déplaisait?

Bonne soirée

Hors ligne

#11 23-09-2008 20:42:23

bjm
Membre
Distrib. : Wheezy 7.1
(G)UI : AWESOME ; Ratpoison
Inscription : 23-02-2008

Re : Modifié un thème GTK2 (résolu)

la couleur donc je parlais c'est celle là:
http://fr.wikipedia.org/wiki/Lavande_(couleur)
Un mauve bleauté celui là

a0b1d7


J'ai réussit a le changé.

Hors ligne

#12 23-09-2008 22:20:57

palmito
Administrateur
Lieu : Dans la boite de gâteau!
Distrib. : bah....
Noyau : heu...
(G)UI : gné?
Inscription : 28-05-2007

Re : Modifié un thème GTK2 (résolu)

D'accord...je comprend pourquoi je ne trouvais pas de mauve lol

Hors ligne

Pied de page des forums