native decorations toggle (#541)

* add native decorations toggle

* osname mac -> MacOS

* remove newlines
This commit is contained in:
fxd
2023-11-16 02:42:59 +03:00
committed by GitHub
parent eb6e7d1491
commit 3c2889714a
3 changed files with 28 additions and 2 deletions

View File

@@ -21,6 +21,7 @@ import JavaSelector from '@/components/ui/JavaSelector.vue'
import ModrinthLoginScreen from '@/components/ui/tutorial/ModrinthLoginScreen.vue'
import { mixpanel_opt_out_tracking, mixpanel_opt_in_tracking } from '@/helpers/mixpanel'
import { open } from '@tauri-apps/api/dialog'
import { getOS } from '@/helpers/utils.js'
const pageOptions = ['Home', 'Library']
@@ -242,6 +243,24 @@ async function refreshDir() {
"
/>
</div>
<div v-if="getOS() != 'MacOS'" class="adjacent-input">
<label for="native-decorations">
<span class="label__title">Native decorations</span>
<span class="label__description"
>Use system window frame (app restart required).</span
>
</label>
<Toggle
id="native-decorations"
:model-value="settings.native_decorations"
:checked="settings.native_decorations"
@update:model-value="
(e) => {
settings.native_decorations = e
}
"
/>
</div>
<div class="adjacent-input">
<label for="opening-page">
<span class="label__title">Default landing page</span>