Skip to content
Permalink
Browse files

[Plugin manager] Slightly polished style of the details view

  • Loading branch information
borysiasty committed Feb 22, 2018
1 parent 23951f3 commit 92becc43fdb190e93af692ffb95172dcf5e63dc3
Showing with 16 additions and 4 deletions.
  1. +16 −4 src/app/pluginmanager/qgspluginmanager.cpp
@@ -644,12 +644,23 @@ void QgsPluginManager::showPluginDetails( QStandardItem *item )
}

QString html = "<style>"
" body {"
" background-color:white;"
" }"
" body, table {"
" padding:0px;"
" margin:0px;"
" font-family:verdana;"
" font-family:Verdana, Sans-serif;"
" font-size: 10pt;"
" }"
" a {"
" color:#08c;"
" text-decoration:none;"
" }"
" a:hover,a:focus {"
" color:#005580;"
" text-decoration:underline;"
" }"
" div#votes {"
" width:360px;"
" margin-left:98px;"
@@ -893,11 +904,11 @@ void QgsPluginManager::showPluginDetails( QStandardItem *item )
}
if ( ! metadata->value( QStringLiteral( "tracker" ) ).isEmpty() )
{
html += QStringLiteral( "<a href='%1'>%2</a> &nbsp; " ).arg( metadata->value( QStringLiteral( "tracker" ) ), tr( "bug_tracker" ) );
html += QStringLiteral( "<a href='%1'>%2</a> &nbsp; " ).arg( metadata->value( QStringLiteral( "tracker" ) ), tr( "bug tracker" ) );
}
if ( ! metadata->value( QStringLiteral( "code_repository" ) ).isEmpty() )
{
html += QStringLiteral( "<a href='%1'>%2</a>" ).arg( metadata->value( QStringLiteral( "code_repository" ) ), tr( "code_repository" ) );
html += QStringLiteral( "<a href='%1'>%2</a>" ).arg( metadata->value( QStringLiteral( "code_repository" ) ), tr( "code repository" ) );
}
html += QLatin1String( "<br/>" );
}
@@ -1177,8 +1188,9 @@ void QgsPluginManager::setCurrentTab( int idx )
{
tabInfoHTML += "<style>"
" body, p {"
" background-color: white;"
" margin: 2px;"
" font-family: verdana;"
" font-family: Verdana, Sans-serif;"
" font-size: 10pt;"
" }"
"</style>";

0 comments on commit 92becc4

Please sign in to comment.
You can’t perform that action at this time.