config option for disabling smoke; remove debug print

This commit is contained in:
end-4
2024-04-03 22:11:08 +07:00
parent 1762f1cc61
commit 484d9bd940
2 changed files with 2 additions and 3 deletions
@@ -18,6 +18,7 @@ let configOptions = {
},
'appearance': {
'keyboardUseFlag': false, // Use flag emoji instead of abbreviation letters
'layerSmoke': true,
},
'apps': {
'bluetooth': "blueberry",
+1 -3
View File
@@ -23,9 +23,7 @@ export default (monitor = 0) => PopupWindow({
for (let i = 0; i < WINDOWS_NEED_CLICK2CLOSE.length; i++) {
// const testRegex = RegExp(`^${WINDOWS_NEED_CLICK2CLOSE[i]}\\d+$`);
const testRegex = /${WINDOWS_NEED_CLICK2CLOSE[i]}\\d+$/;
console.log(testRegex, testRegex.test(currentName));
if (testRegex.test(currentName) || WINDOWS_NEED_CLICK2CLOSE[i] == currentName) {
console.log(WINDOWS_NEED_CLICK2CLOSE[i]);
relevant = true;
break;
}
@@ -45,7 +43,7 @@ export default (monitor = 0) => PopupWindow({
}),
child: Widget.Box({
css: `
background-color: rgba(1,1,1,0.18);
${userOptions.appearance.layerSmoke ? 'background-color: rgba(1,1,1,0.18);' : ''}
min-height: ${SCREEN_HEIGHT}px;
min-width: ${SCREEN_WIDTH}px;
`