mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-21 21:32:13 +01:00
default transparency to false
This commit is contained in:
parent
9df9c99fbd
commit
6727285695
@ -323,7 +323,7 @@ function createBrowserWindow(
|
|||||||
show: false,
|
show: false,
|
||||||
autoHideMenuBar: true,
|
autoHideMenuBar: true,
|
||||||
};
|
};
|
||||||
const isTransparent = settings?.window?.transparent ?? true;
|
const isTransparent = settings?.window?.transparent ?? false;
|
||||||
if (isTransparent) {
|
if (isTransparent) {
|
||||||
winOpts.transparent = true;
|
winOpts.transparent = true;
|
||||||
} else {
|
} else {
|
||||||
|
@ -204,7 +204,7 @@ function switchBlock(tabId: string, offsetX: number, offsetY: number) {
|
|||||||
function AppSettingsUpdater() {
|
function AppSettingsUpdater() {
|
||||||
const settings = jotai.useAtomValue(atoms.settingsConfigAtom);
|
const settings = jotai.useAtomValue(atoms.settingsConfigAtom);
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
let isTransparent = settings?.window?.transparent ?? true;
|
let isTransparent = settings?.window?.transparent ?? false;
|
||||||
let opacity = util.boundNumber(settings?.window?.opacity ?? 0.8, 0, 1);
|
let opacity = util.boundNumber(settings?.window?.opacity ?? 0.8, 0, 1);
|
||||||
let baseBgColor = settings?.window?.bgcolor;
|
let baseBgColor = settings?.window?.bgcolor;
|
||||||
console.log("window settings", settings.window);
|
console.log("window settings", settings.window);
|
||||||
|
Loading…
Reference in New Issue
Block a user