Improved rotatable label appearance with differing font renderers

This commit is contained in:
Nav
2023-05-08 14:58:45 +01:00
parent 5825b11d0b
commit 97d8a116fb
3 changed files with 3 additions and 3 deletions

View File

@@ -137,7 +137,7 @@ namespace Bloom
auto* targetRegisterButtonLayout = this->targetRegistersButton->findChild<QVBoxLayout*>(); auto* targetRegisterButtonLayout = this->targetRegistersButton->findChild<QVBoxLayout*>();
auto* registersBtnLabel = new RotatableLabel(270, "Registers", this->targetRegistersButton); auto* registersBtnLabel = new RotatableLabel(270, "Registers", this->targetRegistersButton);
registersBtnLabel->setObjectName("target-registers-btn-label"); registersBtnLabel->setObjectName("target-registers-btn-label");
registersBtnLabel->setContentsMargins(4, 4, 10, 0); registersBtnLabel->setContentsMargins(4, 4, 10, 2);
targetRegisterButtonLayout->insertWidget(0, registersBtnLabel, 0, Qt::AlignTop); targetRegisterButtonLayout->insertWidget(0, registersBtnLabel, 0, Qt::AlignTop);
this->bottomMenuBar = this->container->findChild<QWidget*>("bottom-menu-bar"); this->bottomMenuBar = this->container->findChild<QWidget*>("bottom-menu-bar");

View File

@@ -37,7 +37,7 @@ namespace Bloom::Widgets
} else if (this->angle % 90 == 0) { } else if (this->angle % 90 == 0) {
size.setHeight(textSize.width()); size.setHeight(textSize.width());
size.setWidth(textSize.height()); size.setWidth(this->width());
} else { } else {
auto angle = this->angle; auto angle = this->angle;

View File

@@ -88,7 +88,7 @@
} }
#target-memory-inspection-pane #rh-side-bar #manage-memory-snapshots-btn #label { #target-memory-inspection-pane #rh-side-bar #manage-memory-snapshots-btn #label {
qproperty-bottomMargin: 4; qproperty-bottomMargin: 2;
color: #999a9d; color: #999a9d;
} }