-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added window state persistence & vsync toggle
- Loading branch information
Showing
11 changed files
with
250 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<template> | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 0 24 24" | ||
fill="currentColor" | ||
><path d="M 9.9765625 2.4355469 C 9.7984375 2.4734219 9.61525 2.6132031 9.46875 2.8457031 L 8.5117188 4.3691406 C 8.1697187 4.9131406 7.4110313 4.9989219 6.9570312 4.5449219 C 6.6720313 4.2599219 6.2894219 4.2703125 6.1074219 4.5703125 C 5.9254219 4.8703125 5.5836563 5.5205781 5.3476562 6.0175781 C 5.3476562 6.0175781 4.3238822 8.171992 4.0625 9.7714844 C 3.387728 11.033671 3.0019531 12.472386 3.0019531 14 C 3.0019531 17.54188 5.0654235 20.607636 8.046875 22.074219 C 8.058622 22.098449 8.0659731 22.122181 8.078125 22.146484 L 8.1972656 22.146484 C 9.3500749 22.68707 10.630367 22.998047 11.984375 22.998047 C 13.340319 22.998047 14.625721 22.686146 15.783203 22.144531 L 16.078125 22.144531 C 16.108584 22.083576 16.12536 22.026701 16.152344 21.966797 C 19.023588 20.460563 20.998047 17.457299 20.998047 14 C 20.998047 12.480189 20.612619 11.049722 19.941406 9.7929688 C 19.685806 8.1913485 18.652344 6.0175781 18.652344 6.0175781 C 18.416344 5.5205781 18.073578 4.8703125 17.892578 4.5703125 C 17.711578 4.2703125 17.328969 4.2599219 17.042969 4.5449219 C 16.588969 4.9989219 15.830281 4.9131406 15.488281 4.3691406 L 14.53125 2.8457031 C 14.23825 2.3797031 13.796828 2.2857187 13.548828 2.6367188 C 13.300828 2.9877187 13.095797 3.2782031 13.091797 3.2832031 L 13.087891 3.2890625 C 12.548891 4.0330625 11.450109 4.0330625 10.912109 3.2890625 L 10.908203 3.2832031 C 10.904203 3.2782031 10.699172 2.9867188 10.451172 2.6367188 C 10.327172 2.4617188 10.154687 2.3976719 9.9765625 2.4355469 z M 11.984375 6.9980469 C 15.852297 6.9980469 19.001953 10.125744 19.001953 14 C 19.001953 16.188332 17.997163 18.139037 16.425781 19.421875 C 16.334317 19.01204 16.198145 18.632806 16.064453 18.283203 C 15.935453 17.946203 15.530469 17.837109 15.230469 18.037109 C 14.377469 18.603109 13.306672 18.873156 12.138672 18.285156 C 11.110672 17.775156 10.585359 16.686797 10.318359 15.591797 C 10.210359 15.146797 9.661375 14.993891 9.359375 15.337891 C 8.6034369 16.197493 7.5965445 17.602309 7.4824219 19.359375 C 5.9621031 18.076955 4.9980469 16.156504 4.9980469 14 C 4.9980469 10.12092 8.1164528 6.9980469 11.984375 6.9980469 z" /></svg> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<script setup lang="ts"> | ||
import { useElectron, useState } from "@/amethyst"; | ||
import SettingsBinarySwitch from "@/components/settings/SettingsBinarySwitch.vue"; | ||
const state = useState(); | ||
</script> | ||
|
||
<template> | ||
<div> | ||
<settings-binary-switch | ||
v-model="state.settings.useVsync" | ||
text="VSync" | ||
@change="useElectron().ipc.invoke('set-vsync', [state.settings.useVsync])" | ||
/> | ||
</div> | ||
</template> | ||
|
||
<style scoped lang="postcss"> | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.