diff options
author | Remy Raes <raes.remy@gmail.com> | 2022-09-23 18:19:39 +0200 |
---|---|---|
committer | Remy Raes <raes.remy@gmail.com> | 2022-09-23 18:19:39 +0200 |
commit | d3a14be58d2f980cb7a4d625d9ce479cfaa5af2f (patch) | |
tree | d17cb2b71bcd45d669147897faff6eaf660c1fad /src-vue/src/App.vue | |
parent | c92194127049904421646b0df84788d6f533a844 (diff) | |
download | FlightCore-d3a14be58d2f980cb7a4d625d9ce479cfaa5af2f.tar.gz FlightCore-d3a14be58d2f980cb7a4d625d9ce479cfaa5af2f.zip |
feat: window buttons can minimize and close it
Diffstat (limited to 'src-vue/src/App.vue')
-rw-r--r-- | src-vue/src/App.vue | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src-vue/src/App.vue b/src-vue/src/App.vue index e0f6741b..d179c462 100644 --- a/src-vue/src/App.vue +++ b/src-vue/src/App.vue @@ -1,5 +1,6 @@ <script setup lang="ts"> import PlayView from './views/PlayView.vue'; +import { appWindow } from '@tauri-apps/api/window'; </script> <template> @@ -11,8 +12,8 @@ import PlayView from './views/PlayView.vue'; <el-tab-pane label="Settings">Settings</el-tab-pane> </el-tabs> <div id="fc_window__controls"> - <el-button color="white" icon="SemiSelect" circle /> - <el-button color="white" icon="CloseBold" circle /> + <el-button color="white" icon="SemiSelect" @click="appWindow.minimize()" circle /> + <el-button color="white" icon="CloseBold" @click="appWindow.close()" circle /> </div> </template> @@ -74,7 +75,7 @@ import PlayView from './views/PlayView.vue'; } #fc_window__controls > button:last-of-type { - margin-right: 20px; + margin-right: 15px; } </style> |