@marc2003
I'm trying to change the fonts and background from your excellent biography panel
this is what i have so far
function on_paint(gr) {
gr.FillSolidRect(0, 0, ww, wh, g_backcolor);
if(username.length == 0 || api_key.length != 32) {
gr.GdiDrawText("Last.fm username and/or API KEY is not set.", g_font, g_textcolor, 0, 0, ww, wh,DT_CENTER | DT_VCENTER | DT_CALCRECT | DT_NOPREFIX);
} else if(g_metadb) {
gr.GdiDrawText(g_text, g_font, g_textcolor, 6, offset + 65, ww-16, wh-offset,DT_WORDBREAK | DT_CALCRECT | DT_NOPREFIX);
gr.FillSolidRect(0, 0, ww, 56, g_backcolor);
gr.GdiDrawText(artist, gdi.Font("Calibri", 26, 1), g_textcolor_hl, 6, 5, ww-77, 32,DT_END_ELLIPSIS | DT_CALCRECT | DT_NOPREFIX);
gr.GdiDrawText(addCommas(listeners) + " listeners, " + addCommas(userplaycount) + " plays in your library.", gdi.Font("Calibri", 22, 0), g_textcolor_hl, 6, 33, ww-16, 28,DT_END_ELLIPSIS | DT_CALCRECT | DT_NOPREFIX);
gr.DrawImage(lfm_img, ww-60, 8, 50, 18, 0, 0, 50, 18);
gr.DrawLine(5, 35, ww-10, 35, 1, g_textcolor_hl);
} else {
gr.GdiDrawText("[no selection]", g_font, g_textcolor, 0, 0, ww, wh,DT_CENTER | DT_VCENTER | DT_CALCRECT | DT_NOPREFIX);
}
}
now i want to change the background color to black, all fonts to some kind of light grey and the size of the biography text font to let's say 18 or 20.
Help would be much appreciated.