aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: [Resolved] Possibility of change Amule GUI fonts  (Read 3378 times)

Capitán Hispania

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
[Resolved] Possibility of change Amule GUI fonts
« on: December 02, 2008, 07:59:33 AM »

I'd like to have the possibility of change Amule predeterminated font and then change the amule transfer window font to a narrower one.


Gooooood job Amule Team.

Saludos/Greetz
« Last Edit: December 05, 2008, 02:14:10 PM by Capitán Hispania »
Logged

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: Posibility of change Amule GUI fonts
« Reply #1 on: December 03, 2008, 02:17:18 AM »

I think aMule does not specify its font, it should be somehow specified by your GTK settings.

Regards.
Logged

Capitán Hispania

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Re: Posibility of change Amule GUI fonts
« Reply #2 on: December 05, 2008, 06:45:10 AM »

You are right skolnick , and this is the feature I wish Developers put in the gui but I'm not a programmer and don't know if it's possible to change dinamically via aMule GUI the window GTK2 properties.

But I've Googled a little and I've found a solution althogh a little hacky :)

The GTK theme can be passed to a single application via environment variable, first you have to make a file like 'mytheme.gtkrc' with this:

#To set the Gtk theme
               # To set the theme
      #include "/home/yourname/.themes/exampletheme/theme1"

      #To set the icon theme
      #gtk-icon-theme-name = "Dropline Neu!"

      #To set the font
      style "Sans"
      {
      font_name = "Liberation Sans"
      }
      widget_class "*" style "Sans"
      gtk-font-name = "Liberation Sans B"

In this example I have only changed the font to a narrower and bold one all the other options are commented.

Then you save this file in your/home/yourname/.aMule directory for instance, make it executable, and if you want to make a launcher you should put this in the command line:

sh -c 'GTK2_RC_FILES=/home/yourname/.aMule/mytheme.gtkrc amule'

and your aMule should start with narrower fonts.

Saludos/Greetz


« Last Edit: December 28, 2008, 08:21:36 PM by Capitán Hispania »
Logged