feat(settings): add an option to set auto screen brightness (#2297)

This commit is contained in:
Huang Xin
2025-10-23 00:45:51 +08:00
committed by GitHub
parent 5bdcd3124b
commit f890a9633b
31 changed files with 88 additions and 41 deletions
+7 -7
View File
@@ -172,13 +172,6 @@ export async function getScreenBrightness(): Promise<GetScreenBrightnessResponse
return result;
}
export async function getExternalSDCardPath(): Promise<GetExternalSDCardPathResponse> {
const result = await invoke<GetExternalSDCardPathResponse>(
'plugin:native-bridge|get_external_sdcard_path',
);
return result;
}
export async function setScreenBrightness(
request: SetScreenBrightnessRequest,
): Promise<SetScreenBrightnessResponse> {
@@ -190,3 +183,10 @@ export async function setScreenBrightness(
);
return result;
}
export async function getExternalSDCardPath(): Promise<GetExternalSDCardPathResponse> {
const result = await invoke<GetExternalSDCardPathResponse>(
'plugin:native-bridge|get_external_sdcard_path',
);
return result;
}