fix: 增加中文翻译,并调整中文布局

Description: 增加中文翻译,并调整中文布局

Log: 增加中文翻译,并调整中文布局
Change-Id: If9a025aa293b6358d588258c9e8faf83b7665e8b
This commit is contained in:
liuminghang
2021-06-28 14:38:32 +08:00
parent ba49aab3f4
commit 10093812cc
45 changed files with 1621 additions and 328 deletions

View File

@ -258,7 +258,7 @@ void MainWidget::loadingUi()
int x = this->width() - m_resultWidget->width() / 2;
int y = this->height() / 2 - 50;
m_loadingWidget->move(x, y);
m_loadingTip->move(x - 20, y + 24);
m_loadingTip->move(x - 17, y + 24);
}
if (m_pwidget) {
m_pwidget->setFixedSize(this->width(), this->height() - 48);
@ -518,6 +518,13 @@ void MainWidget::setIcons(DGuiApplicationHelper::ColorType themeType)
pal.setColor(QPalette::Background, QColor(255, 255, 255, 179));
setAutoFillBackground(true);
setPalette(pal);
//修复因为切换导致的颜色差
if (m_resultWidget) {
QPalette pal;
pal.setColor(QPalette::Background, QColor(255, 255, 255));
m_resultWidget->setAutoFillBackground(true);
m_resultWidget->setPalette(pal);
}
if (m_tipIconLabel) {
m_tipIconLabel->setPixmap(QPixmap(":/assets/tip_light.svg"));
m_tipIconLabel->setFixedSize(QSize(14, 14));