33 lines
1.5 KiB
Diff
33 lines
1.5 KiB
Diff
From cce9dba895a6169740f0ddce64ea2b69adae4c67 Mon Sep 17 00:00:00 2001
|
|
From: tanyulong2021 <tanyulong@kylinos.cn>
|
|
Date: Tue, 2 Aug 2022 11:06:57 +0800
|
|
Subject: [PATCH] Modify segment fault error
|
|
|
|
---
|
|
src/setFontColorPage.cpp | 8 ++++----
|
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/src/setFontColorPage.cpp b/src/setFontColorPage.cpp
|
|
index 0377c66..e8b2c05 100644
|
|
--- a/src/setFontColorPage.cpp
|
|
+++ b/src/setFontColorPage.cpp
|
|
@@ -86,11 +86,11 @@ void SetFontColor::setColor()
|
|
QString currentTheme = styleSettings->get(MODE_QT_KEY).toString();
|
|
if(currentTheme == "ukui-default" || currentTheme == "ukui-white"
|
|
|| currentTheme == "ukui-light" || currentTheme == "ukui"){
|
|
- color[9]="background:rgba(0,0,0,1);";
|
|
- list_page[9]->ui->label->setStyleSheet(color[9]+"border-radius:3px;");
|
|
+ color[8]="background:rgba(0,0,0,1);";
|
|
+ list_page[8]->ui->label->setStyleSheet(color[8]+"border-radius:3px;");
|
|
}else if(currentTheme == "ukui-dark" || currentTheme == "ukui-black"){
|
|
- color[9]="background:rgba(255,255,255,1);";
|
|
- list_page[9]->ui->label->setStyleSheet(color[9]+"border-radius:3px;");
|
|
+ color[8]="background:rgba(255,255,255,1);";
|
|
+ list_page[8]->ui->label->setStyleSheet(color[8]+"border-radius:3px;");
|
|
}
|
|
}
|
|
});
|
|
--
|
|
2.33.0
|
|
|