mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-09 15:54:47 -07:00
Themes: remove all hardcoded extensions
This commit is contained in:
parent
226a8cc017
commit
00e3e63f41
27 changed files with 348 additions and 419 deletions
|
|
@ -625,7 +625,7 @@ void CardInfo::loadPixmap(QPixmap &pixmap)
|
|||
pixmap = QPixmap();
|
||||
|
||||
if (getName().isEmpty()) {
|
||||
pixmap = themeManager->getCardBackPixmap();
|
||||
pixmap = QPixmap("theme:cardback");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -656,7 +656,7 @@ void CardInfo::getPixmap(QSize size, QPixmap &pixmap)
|
|||
loadPixmap(bigPixmap);
|
||||
if (bigPixmap.isNull()) {
|
||||
if (getName().isEmpty()) {
|
||||
pixmap = themeManager->getCardBackPixmap();
|
||||
pixmap = pixmap = QPixmap("theme:cardback");
|
||||
} else {
|
||||
pixmap = QPixmap(); // null
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue