Skip to content

Commit

Permalink
Merge pull request #6117 from borysiasty/manager_stars
Browse files Browse the repository at this point in the history
[Plugin manager] SVG voting stars
  • Loading branch information
borysiasty committed Jan 22, 2018
2 parents 282f240 + 0114927 commit 5016142
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions images/images.qrc
Expand Up @@ -517,8 +517,8 @@
<file>themes/default/repositoryConnected.png</file>
<file>themes/default/repositoryDisabled.png</file>
<file>themes/default/repositoryUnavailable.png</file>
<file>themes/default/stars_empty.png</file>
<file>themes/default/stars_full.png</file>
<file>themes/default/stars_empty.svg</file>
<file>themes/default/stars_full.svg</file>
<file>themes/default/styleicons/color.svg</file>
<file>themes/default/symbologyAdd.svg</file>
<file>themes/default/symbologyEdit.png</file>
Expand Down
Binary file removed images/themes/default/stars_empty.png
Binary file not shown.
1 change: 1 addition & 0 deletions images/themes/default/stars_empty.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/themes/default/stars_full.png
Binary file not shown.
1 change: 1 addition & 0 deletions images/themes/default/stars_full.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions src/app/pluginmanager/qgspluginmanager.cpp
Expand Up @@ -663,12 +663,14 @@ void QgsPluginManager::showPluginDetails( QStandardItem *item )
html += QString(
"<style>"
" div#stars_bg {"
" background-image: url('qrc:/images/themes/default/stars_empty.png');"
" background-image: url('qrc:/images/themes/default/stars_empty.svg');"
" background-size: 92px 16px;"
" width:92px;"
" height:16px;"
" }"
" div#stars {"
" background-image: url('qrc:/images/themes/default/stars_full.png');"
" background-image: url('qrc:/images/themes/default/stars_full.svg');"
" background-size: 92px 16px;" /*scale to the full width*/
" width:%1px;"
" height:16px;"
" }"
Expand Down

0 comments on commit 5016142

Please sign in to comment.