Skip to content

Commit

Permalink
fix(api/window): remove setTransparent as it isn't supported (#1322)
Browse files Browse the repository at this point in the history
  • Loading branch information
nklayman committed Mar 5, 2021
1 parent 1f5692e commit c6b7278
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
16 changes: 0 additions & 16 deletions api/src/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,21 +227,6 @@ class WindowManager {
})
}

/**
* Sets the window transparent flag.
*
* @param {boolean} transparent whether the the window should be transparent or not
*/
async setTransparent(transparent: boolean): Promise<void> {
return invoke({
__tauriModule: 'Window',
message: {
cmd: 'setTransparent',
transparent
}
})
}

/**
* Whether the window should have borders and bars.
*
Expand Down Expand Up @@ -446,7 +431,6 @@ export interface WindowOptions {
resizable?: boolean
title?: string
fullscreen?: boolean
transparent?: boolean
maximized?: boolean
visible?: boolean
decorations?: boolean
Expand Down
7 changes: 0 additions & 7 deletions tauri/examples/api/src/components/Window.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
unminimize,
show,
hide,
setTransparent,
setDecorations,
setAlwaysOnTop,
setWidth,
Expand All @@ -30,7 +29,6 @@
let urlValue = "https://tauri.studio";
let resizable = true
let maximized = false
let transparent = false
let decorations = false
let alwaysOnTop = false
let fullscreen = false
Expand Down Expand Up @@ -71,7 +69,6 @@
$: setResizable(resizable)
$: maximized ? maximize() : unmaximize()
$: setTransparent(transparent)
$: setDecorations(decorations)
$: setAlwaysOnTop(alwaysOnTop)
$: setFullscreen(fullscreen)
Expand Down Expand Up @@ -122,10 +119,6 @@
<button title="Visible again after 2 seconds" on:click={hide_}>
Hide
</button>
<label>
<input type="checkbox" bind:checked={transparent}>
Transparent
</label>
<label>
<input type="checkbox" bind:checked={decorations}>
Has decorations
Expand Down

0 comments on commit c6b7278

Please sign in to comment.