新增用于About和其他详细信息的%14颜色

This commit is contained in:
RigoLigoRLC
2021-07-22 19:56:18 +08:00
parent b3a9485bac
commit 2b2bb06d02
3 changed files with 11 additions and 2 deletions
+1
View File
@@ -35,6 +35,7 @@ SpkAbout::SpkAbout(QWidget *parent) : SpkDialog(parent)
"more Debian-based Linux OSes, and build a real community software repository " "more Debian-based Linux OSes, and build a real community software repository "
"for users around the world."; "for users around the world.";
mDescriptionText = new QLabel; mDescriptionText = new QLabel;
mDescriptionText->setObjectName("spk_about_desc");
mDescriptionText->setWordWrap(true); mDescriptionText->setWordWrap(true);
mDescriptionText->setText(description); mDescriptionText->setText(description);
+4 -2
View File
@@ -146,7 +146,8 @@ namespace SpkUi
0x6b6b6b, 0x656565, 0x606060, 0x404040, 0x383838, 0x6b6b6b, 0x656565, 0x606060, 0x404040, 0x383838,
ColorTextOnBackground(0x0070ff), ColorTextOnBackground(0x0070ff),
ColorTextOnBackground(0x282828), ColorTextOnBackground(0x282828),
ColorTextOnBackground(0x282828) ColorTextOnBackground(0x282828),
/* TODO: %14 lighter text */
}; };
CurrentStylesheet = StylesheetFromColors(LightColor); CurrentStylesheet = StylesheetFromColors(LightColor);
qApp->setStyleSheet(CurrentStylesheet); qApp->setStyleSheet(CurrentStylesheet);
@@ -159,7 +160,8 @@ namespace SpkUi
0x6b6b6b, 0x656565, 0x606060, 0x404040, 0x383838, 0x6b6b6b, 0x656565, 0x606060, 0x404040, 0x383838,
ColorTextOnBackground(0x0070ff), ColorTextOnBackground(0x0070ff),
ColorTextOnBackground(0x282828), ColorTextOnBackground(0x282828),
ColorTextOnBackground(0x282828) ColorTextOnBackground(0x282828),
0xd5d5d5
}; };
CurrentStylesheet = StylesheetFromColors(DarkColor); CurrentStylesheet = StylesheetFromColors(DarkColor);
CurrentColorSet = DarkColor; CurrentColorSet = DarkColor;
+6
View File
@@ -13,6 +13,7 @@
%11: Text on Selection/Activation %11: Text on Selection/Activation
%12: Text on Global background %12: Text on Global background
%13: Text on controls background %13: Text on controls background
%14: Text slightly lighter
*/ */
QWidget QWidget
@@ -155,3 +156,8 @@ QScrollBar::add-line, QScrollBar::sub-line
{ {
height:0px height:0px
} }
#spk_about_desc
{
color: %14
}