Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions src/mainwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@
#include <DTitlebar>
#include <DMessageManager>
#include <DToolButton>
#include <DFloatingWidget>

Check warning on line 30 in src/mainwidget.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <DFloatingWidget> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Check warning on line 30 in src/mainwidget.cpp

View workflow job for this annotation

GitHub Actions / static-check / static-check

Include file: <DFloatingWidget> not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <DAnchors>

Check warning on line 31 in src/mainwidget.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <DAnchors> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Check warning on line 31 in src/mainwidget.cpp

View workflow job for this annotation

GitHub Actions / static-check / static-check

Include file: <DAnchors> not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <DFontSizeManager>

Check warning on line 32 in src/mainwidget.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <DFontSizeManager> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Check warning on line 32 in src/mainwidget.cpp

View workflow job for this annotation

GitHub Actions / static-check / static-check

Include file: <DFontSizeManager> not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <DPalette>

Check warning on line 33 in src/mainwidget.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <DPalette> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Check warning on line 33 in src/mainwidget.cpp

View workflow job for this annotation

GitHub Actions / static-check / static-check

Include file: <DPalette> not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <DHiDPIHelper>

Check warning on line 34 in src/mainwidget.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <DHiDPIHelper> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Check warning on line 34 in src/mainwidget.cpp

View workflow job for this annotation

GitHub Actions / static-check / static-check

Include file: <DHiDPIHelper> not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <DDciIcon>

Check warning on line 35 in src/mainwidget.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <DDciIcon> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Check warning on line 35 in src/mainwidget.cpp

View workflow job for this annotation

GitHub Actions / static-check / static-check

Include file: <DDciIcon> not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <QSettings>

Check warning on line 36 in src/mainwidget.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <QSettings> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Check warning on line 36 in src/mainwidget.cpp

View workflow job for this annotation

GitHub Actions / static-check / static-check

Include file: <QSettings> not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <DStandardPaths>

#define App (static_cast<QApplication*>(QCoreApplication::instance()))
Expand Down Expand Up @@ -161,6 +162,14 @@

m_tiplabel = new DLabel(Widget);
m_tiplabel->setObjectName(QStringLiteral("tiplabel"));
// 提示文字使用 DTK 标准的辅助提示字号与颜色,随主题统一刷新
DFontSizeManager::instance()->bind(m_tiplabel, DFontSizeManager::T7);
{
DPalette dp = DGuiApplicationHelper::instance()->applicationPalette();
QPalette pe;
pe.setColor(QPalette::WindowText, dp.color(DPalette::TextTips));
m_tiplabel->setPalette(pe);
}

m_tipHorizontalLayout->setSpacing(4);
m_tipHorizontalLayout->addWidget(m_tiplabel);
Expand Down Expand Up @@ -720,8 +729,9 @@
m_frame->setPalette(pal);
}
if (m_tiplabel) {
DPalette dp = DGuiApplicationHelper::instance()->applicationPalette();
QPalette pe;
pe.setColor(QPalette::WindowText, QColor(109, 124, 136));
pe.setColor(QPalette::WindowText, dp.color(DPalette::TextTips));
m_tiplabel->setPalette(pe);
}
if (m_noResult) {
Expand Down Expand Up @@ -775,8 +785,9 @@
m_frame->setPalette(pal);
}
if (m_tiplabel) {
DPalette dp = DGuiApplicationHelper::instance()->applicationPalette();
QPalette pe;
pe.setColor(QPalette::WindowText, QColor(138, 161, 180));
pe.setColor(QPalette::WindowText, dp.color(DPalette::TextTips));
m_tiplabel->setPalette(pe);
}
if (m_noResult) {
Expand Down
Loading