ADD: Proper window handling (max, min)
This commit is contained in:
@@ -64,18 +64,20 @@
|
||||
</MenubarMenu>
|
||||
<div class="flex h-full">
|
||||
<button
|
||||
v-if="resizeable"
|
||||
class="grow flex justify-center items-center app-titlebar-button hover:text-white px-2">
|
||||
v-if="minimizable"
|
||||
class="grow flex justify-center items-center app-titlebar-button hover:text-white px-2"
|
||||
@click="electron.minimizeWindow">
|
||||
<Minus class="h-5 w-5" />
|
||||
</button>
|
||||
<button
|
||||
v-if="resizeable"
|
||||
class="grow flex justify-center items-center app-titlebar-button hover:text-white px-2">
|
||||
v-if="maximizable"
|
||||
class="grow flex justify-center items-center app-titlebar-button hover:text-white px-2"
|
||||
@click="electron.toggleMaximizeWindow">
|
||||
<Square class="h-3.5 w-3.5 mr-0.5" />
|
||||
</button>
|
||||
<button
|
||||
class="grow flex justify-center items-center app-titlebar-button hover:text-white px-2"
|
||||
@click="window.close">
|
||||
@click="electron.closeWindow">
|
||||
<X class="h-5 w-5 mr-0.5" />
|
||||
</button>
|
||||
</div>
|
||||
@@ -100,7 +102,10 @@ import { useStore } from '@/store'
|
||||
|
||||
const store = useStore()
|
||||
|
||||
const resizeable = ref(false)
|
||||
const minimizable = ref(true)
|
||||
const maximizable = ref(true)
|
||||
|
||||
const { electron } = window
|
||||
|
||||
</script>
|
||||
<style scoped>
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
<div v-else class="flex flex-col items-center text-center mix-blend-screen">
|
||||
<ScrambleText
|
||||
:text="offlineText"
|
||||
character-set="_()*=0011"
|
||||
scramble-on-mount
|
||||
:fill-interval="50"
|
||||
:replace-interval="50"
|
||||
@@ -93,7 +94,6 @@ const offlineTexts = [
|
||||
|
||||
let offlineTextIndex = 0
|
||||
const nextOfflineText = () => {
|
||||
console.log(offlineText.value)
|
||||
if (offlineText.value === '') {
|
||||
offlineText.value = offlineTexts[offlineTextIndex]
|
||||
offlineTextIndex = (offlineTextIndex + 1) % offlineTexts.length
|
||||
|
||||
Reference in New Issue
Block a user