mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-18 00:12:15 -07:00
Fixed sizes for color identity symbols.
This commit is contained in:
parent
2b24b52cfc
commit
4afd574b48
1 changed files with 1 additions and 4 deletions
|
|
@ -12,14 +12,11 @@ VisualDatabaseDisplayColorFilterWidget::VisualDatabaseDisplayColorFilterWidget(Q
|
||||||
setLayout(layout);
|
setLayout(layout);
|
||||||
layout->setSpacing(5);
|
layout->setSpacing(5);
|
||||||
layout->setContentsMargins(0, 0, 0, 0);
|
layout->setContentsMargins(0, 0, 0, 0);
|
||||||
setMaximumHeight(50);
|
|
||||||
setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Minimum);
|
|
||||||
|
|
||||||
QString fullColorIdentity = "WUBRG";
|
QString fullColorIdentity = "WUBRG";
|
||||||
for (const QChar &color : fullColorIdentity) {
|
for (const QChar &color : fullColorIdentity) {
|
||||||
auto *manaSymbol = new ManaSymbolWidget(this, color, false, true);
|
auto *manaSymbol = new ManaSymbolWidget(this, color, false, true);
|
||||||
manaSymbol->setMaximumHeight(25);
|
manaSymbol->setFixedWidth(25);
|
||||||
manaSymbol->setMaximumWidth(25);
|
|
||||||
|
|
||||||
layout->addWidget(manaSymbol);
|
layout->addWidget(manaSymbol);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue