Author Topic: Editing Widget layout - Can't see how to edit certain values  (Read 4608 times)

helloindustries

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
Editing Widget layout - Can't see how to edit certain values
« on: February 11, 2011, 05:47:36 »
I'm using the widget layout; 'Insensitive, Song & Cover' and i notice that it has a limited width, and forces bold text:


(Red lines added by me to illustrate boundaries)

I've looked through the layout data as best i can, but can't identify/find any part that deals with the width limit, or the text formatting. Well, at least anything *I* can understand.

I already have the text set up via the preferences as so:


If anyone could point me to the correct lines of code, or otherwise instruct me on how to set a much wider limit (say, 800pix) and non-bold, i'd really appreciate it.

aboettger

  • Guest
Re:Editing Widget layout - Can't see how to edit certain values
« Reply #1 on: February 11, 2011, 13:50:26 »
You can use the option markup in the layout definition for "Insensitive, Song & Cover". The layout section is named as "[D_insens_song_cover]" (without quotes)

Code: [Select]
_Title(markup="%t")
More %-letters here: http://gmusicbrowser.org/dokuwiki/doku.php?id=customization:layouts:latest_version
More for markup: http://library.gnome.org/devel/pango/unstable/PangoMarkupFormat.html

helloindustries

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
Re:Editing Widget layout - Can't see how to edit certain values
« Reply #2 on: February 11, 2011, 14:05:18 »
You can use the option markup in the layout definition for "Insensitive, Song & Cover". The layout section is named as "[D_insens_song_cover]" (without quotes)

Code: [Select]
_Title(markup="%t")
More %-letters here: http://gmusicbrowser.org/dokuwiki/doku.php?id=customization:layouts:latest_version
More for markup: http://library.gnome.org/devel/pango/unstable/PangoMarkupFormat.html

Thanks, but code makes no sense to me at all.
May as well be in binary.

aboettger

  • Guest
Re:Editing Widget layout - Can't see how to edit certain values
« Reply #3 on: February 11, 2011, 15:14:04 »
Copy this in a new file and place the file in ~/.config/gmusicbrowser/layouts

Code: [Select]
[D_helloindustries_insens_song_cover]
Type= D
Name= _"helloindustries Insensitive, Song & Cover"
Window = insensitive=1,transparent=1
DefaultFontColor= white
HBTitle = _Title(markup="%t") LabelsIcons
HBArtist = _Artist(markup="%a")
HBAlbum = _Album(markup="%l") -Year
VBText = 2HBTitle 2HBArtist 2HBAlbum
VBmain = VBText _Cover(maxsize=0,xalign=0,yalign=0)

helloindustries

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
Re:Editing Widget layout - Can't see how to edit certain values
« Reply #4 on: February 11, 2011, 15:50:39 »
Copy this in a new file and place the file in ~/.config/gmusicbrowser/layouts

Code: [Select]
[D_helloindustries_insens_song_cover]
Type= D
Name= _"helloindustries Insensitive, Song & Cover"
Window = insensitive=1,transparent=1
DefaultFontColor= white
HBTitle = _Title(markup="%t") LabelsIcons
HBArtist = _Artist(markup="%a")
HBAlbum = _Album(markup="%l") -Year
VBText = 2HBTitle 2HBArtist 2HBAlbum
VBmain = VBText _Cover(maxsize=0,xalign=0,yalign=0)

Thanks :)

Works as expected, but i have to ask:
Is there any way to get it to show more characters?
I tend to have a lot of albums/tracks with long titles.

aboettger

  • Guest
Re:Editing Widget layout - Can't see how to edit certain values
« Reply #5 on: February 11, 2011, 16:43:50 »
Yes, change the values in the plugin configuration for "Minimum size". You probably still have the data for the size of the cover adapted to your layout.

helloindustries

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
Re:Editing Widget layout - Can't see how to edit certain values
« Reply #6 on: February 11, 2011, 17:06:21 »
Yes, change the values in the plugin configuration for "Minimum size". You probably still have the data for the size of the cover adapted to your layout.

Awesome, THANK YOU!