mirror of
https://github.com/logseq/logseq.git
synced 2026-05-05 03:16:37 +00:00
feat(ios): status bar style changes with logseq theme (#3947)
Co-authored-by: leizhe <leizhe@leizhedeMacBook-Air.local>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import path from 'path/path.js'
|
||||
import { StatusBar, Style } from '@capacitor/status-bar'
|
||||
|
||||
if (typeof window === 'undefined') {
|
||||
global.window = {}
|
||||
@@ -294,3 +295,19 @@ export const nodePath = Object.assign({}, path, {
|
||||
return path.extname(input)
|
||||
}
|
||||
})
|
||||
|
||||
export const setStatusBarStyleDark = async () => {
|
||||
await StatusBar.setStyle({ style: Style.Dark });
|
||||
};
|
||||
|
||||
export const setStatusBarStyleLight = async () => {
|
||||
await StatusBar.setStyle({ style: Style.Light });
|
||||
};
|
||||
|
||||
export const hideStatusBar = async () => {
|
||||
await StatusBar.hide();
|
||||
};
|
||||
|
||||
export const showStatusBar = async () => {
|
||||
await StatusBar.show();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user