feat(eink): optimize color and layout for e-ink mode (#2887)

This commit is contained in:
Huang Xin
2026-01-08 17:29:33 +01:00
committed by GitHub
parent 93228c4b2a
commit 462ca46fee
47 changed files with 532 additions and 179 deletions
@@ -52,6 +52,7 @@ import {
declare global {
interface Window {
__READEST_UPDATER_DISABLED?: boolean;
__READEST_IS_EINK?: boolean;
}
}
@@ -367,6 +368,7 @@ export class NativeAppService extends BaseAppService {
override isLinuxApp = OS_TYPE === 'linux';
override isMobileApp = ['android', 'ios'].includes(OS_TYPE);
override isDesktopApp = ['macos', 'windows', 'linux'].includes(OS_TYPE);
override isEink = Boolean(window.__READEST_IS_EINK);
override hasTrafficLight = OS_TYPE === 'macos';
override hasWindow = !(OS_TYPE === 'ios' || OS_TYPE === 'android');
override hasWindowBar = !(OS_TYPE === 'ios' || OS_TYPE === 'android');