mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-23 11:44:00 -04:00
fix(mango): keep layer animations off dms surfaces
- Stops Mango tweening the dot and island when layer_animations is on
Port 2.0
(cherry picked from commit ba7b3620a8)
This commit is contained in:
@@ -6,3 +6,7 @@ gap_inner_vertical=5
|
||||
gap_outer_horizontal=5
|
||||
gap_outer_vertical=5
|
||||
border_px=2
|
||||
|
||||
# layer_animations would tween every DMS layer move; override with no_animation:0 rules after the source lines.
|
||||
layer_rule=no_animation:1,layer_name:^(quickshell)$
|
||||
layer_rule=no_animation:1,layer_name:^dms:.*
|
||||
|
||||
@@ -633,9 +633,12 @@ Singleton {
|
||||
const gapsOut = (gapsOverride >= 0 && SettingsData.mangoLayoutGapsOutOverride >= 0) ? SettingsData.mangoLayoutGapsOutOverride : gapsIn;
|
||||
const borderSize = (typeof SettingsData !== "undefined" && SettingsData.mangoLayoutBorderSize >= 0) ? SettingsData.mangoLayoutBorderSize : defaultBorderSize;
|
||||
|
||||
// layer_animations would tween the dot lift and the island sheet
|
||||
let content = `# Auto-generated by DMS - do not edit manually
|
||||
border_radius=${cornerRadius}
|
||||
border_px=${borderSize}
|
||||
layer_rule=no_animation:1,layer_name:^(quickshell)$
|
||||
layer_rule=no_animation:1,layer_name:^dms:.*
|
||||
`;
|
||||
|
||||
if (manageGaps)
|
||||
@@ -738,11 +741,11 @@ cursor_size=${size}`;
|
||||
const flag = value => value ? 1 : 0;
|
||||
const profile = name => name === "flat" ? 1 : name === "adaptive" ? 2 : -1;
|
||||
const scrollMethod = name => ({
|
||||
"no-scroll": 0,
|
||||
"two-finger": 1,
|
||||
"edge": 2,
|
||||
"on-button-down": 4
|
||||
})[name] ?? -1;
|
||||
"no-scroll": 0,
|
||||
"two-finger": 1,
|
||||
"edge": 2,
|
||||
"on-button-down": 4
|
||||
})[name] ?? -1;
|
||||
const clickMethod = name => name === "button-areas" ? 1 : name === "clickfinger" ? 2 : -1;
|
||||
const lines = [];
|
||||
// -1 is a "default" choice: the key stays out so Mango's own default applies
|
||||
|
||||
Reference in New Issue
Block a user