From f2ca3ffb5d406adb7fc40f7bc4d75807f0f732b5 Mon Sep 17 00:00:00 2001 From: liuxinhao Date: Wed, 3 Aug 2022 22:33:13 +0800 Subject: [PATCH] fix(screensaver): set screensaver font color white MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 设置屏保字体颜色为白色 Closes #I5H9OR --- src/screensaver/float-label.cpp | 2 +- src/screensaver/screensaver.ui | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/screensaver/float-label.cpp b/src/screensaver/float-label.cpp index 23729c3..224761e 100644 --- a/src/screensaver/float-label.cpp +++ b/src/screensaver/float-label.cpp @@ -30,7 +30,7 @@ FloatLabel::FloatLabel(QWidget *parent) layout->addWidget(m_labelPixmap,Qt::AlignHCenter); m_labelText = new QLabel(this); - m_labelText->setStyleSheet("QLabel{font-family:Noto Sans CJK SC Light; font-size:14px;}"); + m_labelText->setStyleSheet("QLabel{font-family:Noto Sans CJK SC Light; font-size:14px;color:#fefefe;}"); m_labelText->setAlignment(Qt::AlignCenter); layout->addWidget(m_labelText,Qt::AlignHCenter); diff --git a/src/screensaver/screensaver.ui b/src/screensaver/screensaver.ui index b03d424..d4c79e4 100644 --- a/src/screensaver/screensaver.ui +++ b/src/screensaver/screensaver.ui @@ -17,7 +17,16 @@ 0 - + + 0 + + + 0 + + + 0 + + 0 @@ -50,6 +59,7 @@ QLabel{ font-family: "Noto Sans CJK SC Light"; font-size: 100px; + color: #fefefe; } @@ -66,6 +76,7 @@ QLabel{ font-family: "Noto Sans CJK SC Light"; font-size: 24px; + color: #fefefe; } -- Gitee