fix: self drawn add button alignment and color (#6385)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user