gmusicbrowser Forum

Main board => Customization => Topic started by: helloindustries on February 11, 2011, 00:47:36

Title: Editing Widget layout - Can't see how to edit certain values
Post by: helloindustries on February 11, 2011, 00:47:36
I'm using the widget layout; 'Insensitive, Song & Cover' and i notice that it has a limited width, and forces bold text:

(http://i901.photobucket.com/albums/ac212/helloiamdene/general%20stuff/gmu1.png)
(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:
(http://i901.photobucket.com/albums/ac212/helloiamdene/general%20stuff/gmu2.png)

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.
Title: Re:Editing Widget layout - Can't see how to edit certain values
Post by: aboettger on February 11, 2011, 08: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)


_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
Title: Re:Editing Widget layout - Can't see how to edit certain values
Post by: helloindustries on February 11, 2011, 09:05:18
Quote from: aboettger on February 11, 2011, 08: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)


_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.
Title: Re:Editing Widget layout - Can't see how to edit certain values
Post by: aboettger on February 11, 2011, 10:14:04
Copy this in a new file and place the file in ~/.config/gmusicbrowser/layouts


[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)
Title: Re:Editing Widget layout - Can't see how to edit certain values
Post by: helloindustries on February 11, 2011, 10:50:39
Quote from: aboettger on February 11, 2011, 10:14:04
Copy this in a new file and place the file in ~/.config/gmusicbrowser/layouts


[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.
Title: Re:Editing Widget layout - Can't see how to edit certain values
Post by: aboettger on February 11, 2011, 11: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.
Title: Re:Editing Widget layout - Can't see how to edit certain values
Post by: helloindustries on February 11, 2011, 12:06:21
Quote from: aboettger on February 11, 2011, 11: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.

Awesome, THANK YOU!