修复UI细节问题

This commit is contained in:
maicss
2020-08-28 14:45:39 +08:00
parent 6578af935e
commit b82a821d01
6 changed files with 409 additions and 21 deletions

View File

@@ -24,9 +24,14 @@ void ProgressLoad::setValue(int v)
void ProgressLoad::setTheme(bool dark, QColor color)
{
if(dark){
m_progess->setStyleSheet("background-color:282828");
plt.setColor(QPalette::Background,QColor(28,28,28));
setAutoFillBackground(true);
setPalette(plt);
}else {
m_progess->setStyleSheet("background-color:FFFFFF");
plt.setColor(QPalette::Background,QColor(255,255,255));
setAutoFillBackground(true);
setPalette(plt);
}
setStyleSheet("background-color:"+color.name());
m_progess->setStyleSheet("background-color:"+color.name());
}