disable layer smoke by default cuz weird blinking

This commit is contained in:
end-4
2024-04-03 22:16:17 +07:00
parent 0191ac0422
commit 9fdc7e0ac4
2 changed files with 5 additions and 2 deletions
@@ -18,7 +18,8 @@ let configOptions = {
},
'appearance': {
'keyboardUseFlag': false, // Use flag emoji instead of abbreviation letters
'layerSmoke': true,
'layerSmoke': false,
'layerSmokeStrength': 0.2,
},
'apps': {
'bluetooth': "blueberry",
+3 -1
View File
@@ -35,6 +35,8 @@ export default (monitor = 0) => PopupWindow({
onSecondaryClick: () => closeEverything(),
onMiddleClick: () => closeEverything(),
setup: (self) => self.hook(App, (self, currentName, visible) => {
if(currentName == 'click2close0') console.log(visible);
if(!self.attribute.checkWindowRelevance(currentName)) return;
range(Gdk.Display.get_default()?.get_n_monitors() || 1, 0).forEach(id => {
if(visible) App.openWindow(`click2close${id}`);
@@ -43,7 +45,7 @@ export default (monitor = 0) => PopupWindow({
}),
child: Widget.Box({
css: `
${userOptions.appearance.layerSmoke ? 'background-color: rgba(1,1,1,0.18);' : ''}
${userOptions.appearance.layerSmoke ? 'background-color: rgba(0,0,0,' + String(userOptions.appearance.layerSmokeStrength) + ');' : ''}
min-height: ${SCREEN_HEIGHT}px;
min-width: ${SCREEN_WIDTH}px;
`