mirror of
https://github.com/0PandaDEV/Qopy.git
synced 2025-04-21 13:14:04 +02:00
refactor: fix casing and spacing in settings.scss
refactor: improve keybind saving logic and error handling fix: update keybind references to settings in app and tray setup fix: back button not working on settings
This commit is contained in:
parent
b328b8fa9c
commit
25f7b116f6
3 changed files with 237 additions and 74 deletions
35
app.vue
35
app.vue
|
@ -1,25 +1,28 @@
|
|||
<template>
|
||||
<div style="pointer-events: auto;">
|
||||
<div style="pointer-events: auto">
|
||||
<NuxtPage />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { listen } from '@tauri-apps/api/event'
|
||||
import { app, window } from '@tauri-apps/api';
|
||||
import { onMounted } from 'vue'
|
||||
import { listen } from "@tauri-apps/api/event";
|
||||
import { app, window } from "@tauri-apps/api";
|
||||
import { onMounted } from "vue";
|
||||
|
||||
const keyboard = useKeyboard();
|
||||
|
||||
onMounted(async () => {
|
||||
await listen('settings', async () => {
|
||||
await navigateTo('/settings')
|
||||
await listen("settings", async () => {
|
||||
keyboard.unregisterAll();
|
||||
await navigateTo("/settings");
|
||||
await app.show();
|
||||
await window.getCurrentWindow().show();
|
||||
})
|
||||
});
|
||||
|
||||
await listen('main_route', async () => {
|
||||
await navigateTo('/')
|
||||
})
|
||||
})
|
||||
await listen("main_route", async () => {
|
||||
await navigateTo("/");
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
|
@ -51,7 +54,7 @@ onMounted(async () => {
|
|||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
color: #E5DFD5;
|
||||
color: #e5dfd5;
|
||||
text-decoration: none;
|
||||
font-family: SFRoundedRegular;
|
||||
scroll-behavior: smooth;
|
||||
|
@ -60,9 +63,9 @@ onMounted(async () => {
|
|||
position: relative;
|
||||
z-index: 1;
|
||||
|
||||
--os-handle-bg: #ADA9A1;
|
||||
--os-handle-bg-hover: #78756F;
|
||||
--os-handle-bg-active: #78756F;
|
||||
--os-handle-bg: #ada9a1;
|
||||
--os-handle-bg-hover: #78756f;
|
||||
--os-handle-bg-active: #78756f;
|
||||
}
|
||||
|
||||
html,
|
||||
|
@ -77,4 +80,4 @@ body {
|
|||
.os-scrollbar-horizontal {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue