mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Reorganized images in subfolders
As per @daenyth’s comment: https://github.com/Cockatrice/Cockatrice/pull/792#issuecomment-76593730
This commit is contained in:
parent
092b0eaed6
commit
f17dec29f6
65 changed files with 120 additions and 403 deletions
|
|
@ -16,7 +16,7 @@ QPixmap PhasePixmapGenerator::generatePixmap(int height, QString name)
|
|||
if (pmCache.contains(key))
|
||||
return pmCache.value(key);
|
||||
|
||||
QSvgRenderer svg(QString("theme:phases/icon_phase_" + name + ".svg"));
|
||||
QSvgRenderer svg(QString("theme:phases/" + name + ".svg"));
|
||||
|
||||
QPixmap pixmap(height, height);
|
||||
pixmap.fill(Qt::transparent);
|
||||
|
|
@ -175,7 +175,7 @@ QPixmap LockPixmapGenerator::generatePixmap(int height)
|
|||
if (pmCache.contains(key))
|
||||
return pmCache.value(key);
|
||||
|
||||
QSvgRenderer svg(QString("theme:lock.svg"));
|
||||
QSvgRenderer svg(QString("theme:icons/lock.svg"));
|
||||
int width = (int) round(height * (double) svg.defaultSize().width() / (double) svg.defaultSize().height());
|
||||
QPixmap pixmap(width, height);
|
||||
pixmap.fill(Qt::transparent);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue