forked from akai/readest
feat(eink): optimize color and layout for e-ink mode (#2887)
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user