1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-21 08:21:54 +02:00

* Another go at bio-font.

This commit is contained in:
Christian Muehlhaeuser 2014-08-29 00:18:31 +02:00
parent ece7943512
commit 24e7d9b069

View File

@ -375,12 +375,12 @@ ArtistInfoWidget::onBiographyLoaded()
QString html =
QString( "<html><head><style type=text/css>"
"body { margin: 0; padding: 0; color: black; text-decoration: none; font-size: %1pt; font-family: \"Roboto\"; font-weight: 200; }"
"a { color: black; text-decoration: none; font-weight: 300; }"
"a:hover { color: black; text-decoration: underline; font-weight: 300; }"
"body { margin: 0; padding: 0; color: #333333; text-decoration: none; font-size: %1pt; font-weight: 200; }"
"a { color: black; text-decoration: none; font-weight: 600; }"
"a:hover { color: black; text-decoration: underline; font-weight: 600; }"
"</style></head>"
"<body>%2</body></html>" )
.arg( TomahawkUtils::defaultFontSize() + 1 )
.arg( TomahawkUtils::defaultFontSize() + 2 )
.arg( m_artist->biography().trimmed().replace( '\n', "<br>" ) );
ui->biography->setHtml( html );