mirror of
https://github.com/Linloir/SceneEditor.git
synced 2025-12-18 07:58:11 +08:00
[UI][FIX] Fix sidebar color stylesheet
- Include alpha value
This commit is contained in:
parent
0e1edcc588
commit
e6bab8a345
@ -15,7 +15,7 @@ SideBar::SideBar(QWidget* parent)
|
|||||||
|
|
||||||
// Create stylesheet
|
// Create stylesheet
|
||||||
setObjectName("sideBar");
|
setObjectName("sideBar");
|
||||||
QString sideBarStyleSheet = "QWidget#sideBar{background-color:" + _backgroundColor.name() + "; }";
|
QString sideBarStyleSheet = "QWidget#sideBar{background-color:" + _backgroundColor.name(QColor::HexArgb) + "; }";
|
||||||
setStyleSheet(sideBarStyleSheet);
|
setStyleSheet(sideBarStyleSheet);
|
||||||
|
|
||||||
// Create main layout
|
// Create main layout
|
||||||
@ -119,7 +119,7 @@ void SideBar::collapse() {
|
|||||||
|
|
||||||
void SideBar::setBackgroundColor(QColor color) {
|
void SideBar::setBackgroundColor(QColor color) {
|
||||||
_backgroundColor = color;
|
_backgroundColor = color;
|
||||||
QString sideBarStyleSheet = "QWidget#sideBar{background-color:" + _backgroundColor.name() + "; }";
|
QString sideBarStyleSheet = "QWidget#sideBar{background-color:" + _backgroundColor.name(QColor::HexArgb) + "; }";
|
||||||
setStyleSheet(sideBarStyleSheet);
|
setStyleSheet(sideBarStyleSheet);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user