Use CSS style sheet.

Avoid confusing text behind default transparent popup.
This commit is contained in:
SET
2020-11-03 14:15:11 +01:00
parent 980b172c96
commit 0bb61b7119
7 changed files with 34 additions and 2 deletions

View File

@@ -31,6 +31,8 @@ void Uploader::Create() {
m_upload->setFileTextSize(10240); // Is really approximate
m_upload->setMultiple(false);
m_cwMain = static_cast<WContainerWidget*> (implementation());
// White in css file, like default background color.
m_cwMain->setStyleClass("popup");
WVBoxLayout * vblMain = new WVBoxLayout();
m_cwMain->setLayout(unique_ptr<WVBoxLayout> (vblMain));
vblMain->addWidget(unique_ptr<WFileUpload> (m_upload));