This commit is contained in:
恍兮惚兮 2024-05-01 01:03:42 +08:00
parent be4da21301
commit 46857e6221
2 changed files with 11 additions and 12 deletions

View File

@ -151,14 +151,11 @@ class ItemWidget(QWidget):
layout.addWidget(self._lb) layout.addWidget(self._lb)
self.setLayout(layout) self.setLayout(layout)
self.exe = exe self.exe = exe
if os.path.exists(exe):
self.maskshowfileexists.setStyleSheet(
"QLabel { background-color: rgba(255,255,255, 0); }"
)
else:
self.maskshowfileexists.setStyleSheet( self.maskshowfileexists.setStyleSheet(
"QLabel { background-color: " "QLabel { background-color: "
+ globalconfig["dialog_savegame_layout"]["onfilenoexistscolor"] + globalconfig["dialog_savegame_layout"][
("onfilenoexistscolor", "backcolor")[os.path.exists(exe)]
]
+ "; }" + "; }"
) )
@ -1244,6 +1241,7 @@ class dialog_syssetting(QDialog):
getspinbox(0, 1000, globalconfig["dialog_savegame_layout"], key), getspinbox(0, 1000, globalconfig["dialog_savegame_layout"], key),
) )
for key, name in [ for key, name in [
("backcolor", "颜色"),
("onselectcolor", "选中时颜色"), ("onselectcolor", "选中时颜色"),
("onfilenoexistscolor", "游戏不存在时颜色"), ("onfilenoexistscolor", "游戏不存在时颜色"),
]: ]:

View File

@ -193,8 +193,9 @@
"itemh": 350, "itemh": 350,
"margin":10, "margin":10,
"textH":50, "textH":50,
"onselectcolor": "rgba(0,100,200, 0.3)", "backcolor": "#c38282",
"onfilenoexistscolor": "rgba(25,25,25, 0.3)" "onselectcolor": "#007fff",
"onfilenoexistscolor": "#acacac"
}, },
"profiles_index": 0, "profiles_index": 0,
"ocrautobindwindow": true, "ocrautobindwindow": true,