Navigation Menu

Skip to content

Commit

Permalink
Better png arrow and + sign for GRASS
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@14617 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
brushtyler committed Nov 13, 2010
1 parent 1c99de4 commit 10e43de
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/plugins/grass/qgsgrassmodule.cpp
Expand Up @@ -1144,7 +1144,7 @@ QPixmap QgsGrassModule::pixmap( QString path, int height )
plusPixmap = QPixmap::fromImage( img );
}

int buffer = 10; // buffer around a sign
int buffer = height/3; // buffer around a sign
if ( pixmaps.size() > 1 ) width += arrowWidth + 2 * buffer; // ->
if ( pixmaps.size() > 2 ) width += plusWidth + 2 * buffer; // +

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/grass/qgsgrasstools.cpp
Expand Up @@ -291,7 +291,7 @@ void QgsGrassTools::addModules( QTreeWidgetItem *parent, QDomElement &element )

QString path = QgsApplication::pkgDataPath() + "/grass/modules/" + name;
QString label = QgsGrassModule::label( path );
QPixmap pixmap = QgsGrassModule::pixmap( path, 25 );
QPixmap pixmap = QgsGrassModule::pixmap( path, 32 );

item->setText( 0, name + " - " + label );
item->setIcon( 0, QIcon( pixmap ) );
Expand Down
Binary file modified src/plugins/grass/themes/gis/grass_arrow.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/plugins/grass/themes/gis/grass_plus.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 10e43de

Please sign in to comment.