We are still actively working on the spam issue.

Difference between revisions of "GTK Theming"

From InstallGentoo Wiki
Jump to: navigation, search
(Created page with "If you use a Desktop Environment, it's likely that it provides a tool for changing the GTK theme. Otherwise, you can edit the configuration files yourself. For GTK+ 2.x, ...")
 
m (category:howto)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
If you use a [[Desktop Environment]], it's likely that it provides a tool for changing the GTK theme. Otherwise, you can edit the configuration files yourself.
+
{{stub}}
  
For GTK+ 2.x, it is <code>~/.gtkrc-2.0</code>, <code>~</code> being your home directory. For system-wide configuration, <code>/etc/gtkrc</code>.
+
If you use a [[Desktop Environment]], it's likely that it provides a tool for changing the GTK theme, without needing a configuration file, and providing the ability to apply themes immediately without restarting applications.
  
<code>
+
Alternatively, you can use third-party GUI tools such as <code>lxappearance</code>, <code>gtk-theme-switch</code> or <code>gtk-chtheme</code> which just write to the configuration files.
 +
 
 +
Otherwise, you can manually edit the configuration files yourself. For GTK+ 2.x, it is <code>~/.gtkrc-2.0</code>, <code>~</code> being your home directory. For system-wide configuration, <code>/etc/gtkrc</code>.
 +
 
 +
<pre>
 
  gtk-font-name="Arimo 9"
 
  gtk-font-name="Arimo 9"
 
  gtk-theme-name="Adwaita"
 
  gtk-theme-name="Adwaita"
 
  gtk-icon-theme-name="Faenza"
 
  gtk-icon-theme-name="Faenza"
</code>
+
</pre>
  
 
For GTK+ 3.x, the file is located at <code>~/.config/gtk-3.0/settings.ini</code> or <code>/etc/gtk-3.0/settings.ini</code>. The syntax differs a little:
 
For GTK+ 3.x, the file is located at <code>~/.config/gtk-3.0/settings.ini</code> or <code>/etc/gtk-3.0/settings.ini</code>. The syntax differs a little:
  
<code>
+
<pre>
 
  [Settings]  
 
  [Settings]  
 
  gtk-font-name=Arimo 9
 
  gtk-font-name=Arimo 9
 
  gtk-theme-name=Adwaita
 
  gtk-theme-name=Adwaita
 
  gtk-icon-theme-name=Faenza
 
  gtk-icon-theme-name=Faenza
</code>
+
</pre>
  
 
[[Category:GNU/Linux]]
 
[[Category:GNU/Linux]]
 
[[Category:Ricing]]
 
[[Category:Ricing]]
 
[[Category:Tutorials]]
 
[[Category:Tutorials]]
 +
[[Category:HowTo]]

Latest revision as of 16:24, 24 February 2016

If you use a Desktop Environment, it's likely that it provides a tool for changing the GTK theme, without needing a configuration file, and providing the ability to apply themes immediately without restarting applications.

Alternatively, you can use third-party GUI tools such as lxappearance, gtk-theme-switch or gtk-chtheme which just write to the configuration files.

Otherwise, you can manually edit the configuration files yourself. For GTK+ 2.x, it is ~/.gtkrc-2.0, ~ being your home directory. For system-wide configuration, /etc/gtkrc.

 gtk-font-name="Arimo 9"
 gtk-theme-name="Adwaita"
 gtk-icon-theme-name="Faenza"

For GTK+ 3.x, the file is located at ~/.config/gtk-3.0/settings.ini or /etc/gtk-3.0/settings.ini. The syntax differs a little:

 [Settings] 
 gtk-font-name=Arimo 9
 gtk-theme-name=Adwaita
 gtk-icon-theme-name=Faenza