config option for fake screen round corners

This commit is contained in:
end-4
2024-04-14 22:12:44 +07:00
parent 69fdb53c9d
commit 77d5ad41dc
2 changed files with 10 additions and 7 deletions
+9 -7
View File
@@ -55,18 +55,20 @@ const Windows = () => [
forMonitors(Osk), forMonitors(Osk),
Session(), Session(),
// forMonitors(Bar), // forMonitors(Bar),
forMonitors((id) => Corner(id, 'top left')), ...(userOptions.appearance.fakeScreenRounding ? [
forMonitors((id) => Corner(id, 'top right')), forMonitors((id) => Corner(id, 'top left')),
forMonitors((id) => Corner(id, 'bottom left')), forMonitors((id) => Corner(id, 'top right')),
forMonitors((id) => Corner(id, 'bottom right')), forMonitors((id) => Corner(id, 'bottom left')),
forMonitors(BarCornerTopleft), forMonitors((id) => Corner(id, 'bottom right')),
forMonitors(BarCornerTopright), forMonitors(BarCornerTopleft),
forMonitors(BarCornerTopright),
] : []),
forMonitors(Click2Close), forMonitors(Click2Close),
]; ];
const CLOSE_ANIM_TIME = 210; // Longer than actual anim time to make sure widgets animate fully const CLOSE_ANIM_TIME = 210; // Longer than actual anim time to make sure widgets animate fully
const closeWindowDelays = {}; // For animations const closeWindowDelays = {}; // For animations
for(let i = 0; i < (Gdk.Display.get_default()?.get_n_monitors() || 1); i++) { for (let i = 0; i < (Gdk.Display.get_default()?.get_n_monitors() || 1); i++) {
closeWindowDelays[`osk${i}`] = CLOSE_ANIM_TIME; closeWindowDelays[`osk${i}`] = CLOSE_ANIM_TIME;
} }
@@ -21,6 +21,7 @@ let configOptions = {
'keyboardUseFlag': false, // Use flag emoji instead of abbreviation letters 'keyboardUseFlag': false, // Use flag emoji instead of abbreviation letters
'layerSmoke': false, 'layerSmoke': false,
'layerSmokeStrength': 0.2, 'layerSmokeStrength': 0.2,
'fakeScreenRounding': true,
}, },
'apps': { 'apps': {
'bluetooth': "blueberry", 'bluetooth': "blueberry",