fix: self drawn add button alignment and color (#6385)

This commit is contained in:
nerix
2025-08-24 12:26:16 +02:00
committed by GitHub
parent f3b0a48ae5
commit a9e99b3e8c
4 changed files with 23 additions and 9 deletions
+1 -1
View File
@@ -705,7 +705,7 @@ void Notebook::setShowAddButton(bool value)
void Notebook::resizeAddButton()
{
float h = (NOTEBOOK_TAB_HEIGHT - 1) * this->scale();
int h = static_cast<int>((NOTEBOOK_TAB_HEIGHT - 1) * this->scale());
this->addButton_->setFixedSize(h, h);
}