-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
91 additions
and
115 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "ytmdesktop2", | ||
"version": "0.14.2", | ||
"version": "0.14.3", | ||
"private": false, | ||
"author": "Venipa <[email protected]>", | ||
"main": "./out/main/index.js", | ||
|
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
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 |
---|---|---|
@@ -1,54 +1,39 @@ | ||
<template> | ||
<div class="flex flex-col gap-4 mt-4"> | ||
<div class="px-3 flex flex-col gap-4"> | ||
<settings-checkbox ref="customCssToggle" config-key="customcss.enabled"> | ||
Enable Custom CSS | ||
</settings-checkbox> | ||
<settings-checkbox ref="customCssToggle" | ||
config-key="customcss.enabled"> Enable Custom CSS </settings-checkbox> | ||
<ease-transition> | ||
<div v-if="customCssToggle && customCssToggle.value" class="flex flex-col gap-4"> | ||
<settings-input | ||
ref="customCssPathInput" | ||
config-key="customcss.scssFile" | ||
type="file" | ||
accept=".scss,.sass" | ||
> | ||
<div v-if="customCssToggle && customCssToggle.value" | ||
class="flex flex-col gap-4"> | ||
<settings-input ref="customCssPathInput" | ||
config-key="customcss.scssFile" | ||
type="file" | ||
accept=".scss,.sass"> | ||
<template #label> SCSS File </template> | ||
</settings-input> | ||
<settings-checkbox config-key="customcss.scssFileWatch" @change="scssWatch"> | ||
Update on Changes | ||
</settings-checkbox> | ||
<button class="btn btn-primary" @click="reloadCSS">Reload</button> | ||
<settings-checkbox config-key="customcss.scssFileWatch" | ||
@change="scssWatch"> Update on Changes </settings-checkbox> | ||
<button class="btn btn-primary" | ||
@click="reloadCSS">Reload</button> | ||
</div> | ||
</ease-transition> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
<script lang="ts" setup> | ||
import EaseTransition from "@renderer/components/EaseTransition.vue"; | ||
import SettingsCheckbox from "@renderer/components/SettingsCheckbox.vue"; | ||
import SettingsInput from "@renderer/components/SettingsInput.vue"; | ||
import { defineComponent, ref } from "vue"; | ||
import { ref } from "vue"; | ||
export default defineComponent({ | ||
components: { SettingsCheckbox, SettingsInput, EaseTransition }, | ||
setup() { | ||
const customCssToggle = ref(null), | ||
customCssPathInput = ref(null); | ||
return { | ||
customCssToggle, | ||
customCssPathInput, | ||
}; | ||
}, | ||
methods: { | ||
reloadCSS() { | ||
(window as any).api.reloadCustomCss(); | ||
}, | ||
scssWatch(enabled: boolean) { | ||
(window as any).api.watchCustomCss(!!enabled); | ||
}, | ||
}, | ||
}); | ||
const customCssToggle = ref(null), | ||
customCssPathInput = ref(null); | ||
function reloadCSS() { | ||
(window as any).api.reloadCustomCss(); | ||
} | ||
function scssWatch(enabled: boolean) { | ||
(window as any).api.watchCustomCss(!!enabled); | ||
} | ||
</script> | ||
|
||
<style></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