feat: support layershell close animation

This commit is contained in:
DreamMaoMao 2025-06-29 13:11:49 +08:00
parent 00dab4cdb0
commit 11eef5ea2d
3 changed files with 153 additions and 20 deletions

View file

@ -125,6 +125,7 @@ typedef struct {
typedef struct {
char *layer_name; // 布局名称
int noblur;
int noanim;
} ConfigLayerRule;
typedef struct {
@ -1294,6 +1295,7 @@ void parse_config_line(Config *config, const char *line) {
// 设置默认值
rule->layer_name = NULL;
rule->noblur = 0;
rule->noanim = 0;
char *token = strtok(value, ",");
while (token != NULL) {
@ -1310,6 +1312,8 @@ void parse_config_line(Config *config, const char *line) {
rule->layer_name = strdup(val);
} else if (strcmp(key, "noblur") == 0) {
rule->noblur = CLAMP_INT(atoi(val), 0, 1);
} else if (strcmp(key, "noanim") == 0) {
rule->noanim = CLAMP_INT(atoi(val), 0, 1);
}
}
token = strtok(NULL, ",");