Style tweaks to bitset widget on register inspection Insight window
This commit is contained in:
@@ -17,8 +17,8 @@ namespace Bloom::Widgets
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
static constexpr int WIDTH = 23;
|
||||
static constexpr int HEIGHT = 30;
|
||||
static constexpr int WIDTH = 19;
|
||||
static constexpr int HEIGHT = 28;
|
||||
|
||||
BitBodyWidget(
|
||||
int bitIndex,
|
||||
|
||||
@@ -29,19 +29,11 @@ namespace Bloom::Widgets
|
||||
this
|
||||
);
|
||||
|
||||
this->bitLabel = new Label("Bit", this);
|
||||
this->bitNumberLabel = new Label(QString::number(this->bitNumber), this);
|
||||
|
||||
this->bitLabel->setObjectName("register-bit-label");
|
||||
this->bitNumberLabel->setObjectName("register-bit-number-label");
|
||||
|
||||
this->bitLabel->setFixedHeight(BitWidget::LABEL_HEIGHT);
|
||||
this->bitNumberLabel->setFixedHeight(BitWidget::LABEL_HEIGHT);
|
||||
|
||||
this->bitLabel->setAlignment(Qt::AlignmentFlag::AlignCenter);
|
||||
this->bitNumberLabel->setAlignment(Qt::AlignmentFlag::AlignCenter);
|
||||
|
||||
layout->addWidget(this->bitLabel);
|
||||
layout->addWidget(this->bitNumberLabel);
|
||||
layout->addSpacing(BitWidget::VERTICAL_SPACING);
|
||||
layout->addWidget(this->body);
|
||||
|
||||
@@ -24,11 +24,10 @@ namespace Bloom::Widgets
|
||||
|
||||
public:
|
||||
static constexpr int LABEL_HEIGHT = 14;
|
||||
static constexpr int LABEL_COUNT = 2;
|
||||
static constexpr int WIDTH = BitBodyWidget::WIDTH;
|
||||
static constexpr int HEIGHT = BitBodyWidget::HEIGHT + (BitWidget::LABEL_HEIGHT * BitWidget::LABEL_COUNT)
|
||||
static constexpr int HEIGHT = BitBodyWidget::HEIGHT + BitWidget::LABEL_HEIGHT
|
||||
+ BitWidget::VERTICAL_SPACING;
|
||||
static constexpr int SPACING = 6;
|
||||
static constexpr int SPACING = 5;
|
||||
|
||||
BitWidget(
|
||||
int bitIndex,
|
||||
@@ -48,8 +47,6 @@ namespace Bloom::Widgets
|
||||
bool readOnly = true;
|
||||
|
||||
BitBodyWidget* body = nullptr;
|
||||
|
||||
Label* bitLabel = nullptr;
|
||||
Label* bitNumberLabel = nullptr;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -33,6 +33,11 @@
|
||||
border: 1px solid #454C52;
|
||||
}
|
||||
|
||||
/* BitsetWidget */
|
||||
#bitset-widget {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
#register-bit-number-label {
|
||||
font-size: 12px;
|
||||
color: #a6a7aa;
|
||||
@@ -43,11 +48,6 @@
|
||||
color: #8a8a8d;
|
||||
}
|
||||
|
||||
/* BitsetWidget */
|
||||
#bitset-widget {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
/* Actions */
|
||||
#actions {
|
||||
border-top: 1px solid #2F2F2D;
|
||||
|
||||
Reference in New Issue
Block a user