allow user to configure window decorations(CSD/SSD) (#1839)

* allow user to configure window decorations(CSD/SSD)

* rename piliplus.desktop
to com.example.piliplus.desktop

* update

---------

Co-authored-by: dom <githubaccount56556@proton.me>
This commit is contained in:
Just_A_Pony
2026-02-20 11:46:25 +08:00
committed by GitHub
parent b1c0eca328
commit dcb3a02da8
7 changed files with 97 additions and 46 deletions

View File

@@ -56,6 +56,16 @@ List<SettingsModel> get styleSettings => [
needReboot: true,
),
],
if (Platform.isLinux)
const SwitchModel(
title: '使用SSDServer-Side Decoration',
subtitle: 'Linux强制使用Server-Side Decoration',
leading: Icon(Icons.web_asset),
setKey: SettingBoxKey.useSSD,
defaultVal: false,
needReboot: true,
onChanged: GStorage.syncToDisk,
),
SwitchModel(
title: '横屏适配',
subtitle: '启用横屏布局与逻辑,平板、折叠屏等可开启;建议全屏方向设为【不改变当前方向】',