Skip to content

Commit

Permalink
feat: add 'scrollBarPolicy' and 'sizeMode' config
Browse files Browse the repository at this point in the history
滚动条策略和紧凑模式现在通过dconfig来设置

pms: Task-365811
  • Loading branch information
mhduiy committed Nov 26, 2024
1 parent a34a9ae commit d715bd5
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions configs/org.deepin.dtk.preference.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,28 @@
"description[zh_CN]": "配置启/禁用动画效果,注意需要重启应用生效配置。",
"permissions": "readwrite",
"visibility": "public"
},
"scrollBarPolicy": {
"value": 0,
"serial": 0,
"flags": [],
"name": "Scroll bar strategy for controlling dtk applications",
"name[zh_CN]": "控制 dtk 应用的滚动条策略",
"description": "Configure the scrollbar policy for the dtk application, with values following the behavior of Qt:: ScrollBarPolicy.",
"description[zh_CN]": "配置 dtk 应用的滚动条策略, 其值的行为遵循 Qt::ScrollBarPolicy",
"permissions": "readwrite",
"visibility": "public"
},
"sizeMode": {
"value": 0,
"serial": 0,
"flags": [],
"name": "Compact mode switch for controlling dtk applications",
"name[zh_CN]": "控制 dtk 应用的紧凑模式开关",
"description": "Configure whether to enable compact mode, 0 is disabled, 1 is enabled.",
"description[zh_CN]": "配置是否开启紧凑模式, 0为禁用, 1为启用",
"permissions": "readwrite",
"visibility": "public"
}
}
}

0 comments on commit d715bd5

Please sign in to comment.