Skip to content

Commit 92becc4

Browse files
committed
[Plugin manager] Slightly polished style of the details view
1 parent 23951f3 commit 92becc4

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

src/app/pluginmanager/qgspluginmanager.cpp

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -644,12 +644,23 @@ void QgsPluginManager::showPluginDetails( QStandardItem *item )
644644
}
645645

646646
QString html = "<style>"
647+
" body {"
648+
" background-color:white;"
649+
" }"
647650
" body, table {"
648651
" padding:0px;"
649652
" margin:0px;"
650-
" font-family:verdana;"
653+
" font-family:Verdana, Sans-serif;"
651654
" font-size: 10pt;"
652655
" }"
656+
" a {"
657+
" color:#08c;"
658+
" text-decoration:none;"
659+
" }"
660+
" a:hover,a:focus {"
661+
" color:#005580;"
662+
" text-decoration:underline;"
663+
" }"
653664
" div#votes {"
654665
" width:360px;"
655666
" margin-left:98px;"
@@ -893,11 +904,11 @@ void QgsPluginManager::showPluginDetails( QStandardItem *item )
893904
}
894905
if ( ! metadata->value( QStringLiteral( "tracker" ) ).isEmpty() )
895906
{
896-
html += QStringLiteral( "<a href='%1'>%2</a> &nbsp; " ).arg( metadata->value( QStringLiteral( "tracker" ) ), tr( "bug_tracker" ) );
907+
html += QStringLiteral( "<a href='%1'>%2</a> &nbsp; " ).arg( metadata->value( QStringLiteral( "tracker" ) ), tr( "bug tracker" ) );
897908
}
898909
if ( ! metadata->value( QStringLiteral( "code_repository" ) ).isEmpty() )
899910
{
900-
html += QStringLiteral( "<a href='%1'>%2</a>" ).arg( metadata->value( QStringLiteral( "code_repository" ) ), tr( "code_repository" ) );
911+
html += QStringLiteral( "<a href='%1'>%2</a>" ).arg( metadata->value( QStringLiteral( "code_repository" ) ), tr( "code repository" ) );
901912
}
902913
html += QLatin1String( "<br/>" );
903914
}
@@ -1177,8 +1188,9 @@ void QgsPluginManager::setCurrentTab( int idx )
11771188
{
11781189
tabInfoHTML += "<style>"
11791190
" body, p {"
1191+
" background-color: white;"
11801192
" margin: 2px;"
1181-
" font-family: verdana;"
1193+
" font-family: Verdana, Sans-serif;"
11821194
" font-size: 10pt;"
11831195
" }"
11841196
"</style>";

0 commit comments

Comments
 (0)