diff --git a/screenshots/main.png b/screenshots/main.png
index a28e3f2..40d1bf5 100644
Binary files a/screenshots/main.png and b/screenshots/main.png differ
diff --git a/src/views/GeneralSettings.vue b/src/views/GeneralSettings.vue
index 8165412..f7b24f2 100644
--- a/src/views/GeneralSettings.vue
+++ b/src/views/GeneralSettings.vue
@@ -51,18 +51,20 @@
@@ -92,33 +94,12 @@ const supportsAcrylic = computed(() => {
return typeof document !== 'undefined' && 'backdropFilter' in document.documentElement.style && props.settings.uiTheme !== 'Dark'
})
-const sliderRef = ref(null)
+const sliderWrapper = ref(null)
-const updateSliderStyle = e => {
- const value = e.target.value
- const percent = ((value - 0) / (100 - 0)) * 100
- e.target.style.backgroundSize = `${percent}% 100%`
- emit('update:settings', { ...props.settings, acrylicIntensity: Number(value) })
+const updateSliderValue = e => {
+ const value = Number(e.target.value)
+ emit('update:settings', { ...props.settings, acrylicIntensity: value })
}
-
-onMounted(() => {
- if (sliderRef.value) {
- const percent = ((props.settings.acrylicIntensity - 0) / (100 - 0)) * 100
- sliderRef.value.style.backgroundSize = `${percent}% 100%`
- }
-})
-
-watch(
- () => props.settings.uiTheme,
- () => {
- nextTick(() => {
- if (sliderRef.value && supportsAcrylic.value) {
- const percent = ((props.settings.acrylicIntensity - 0) / (100 - 0)) * 100
- sliderRef.value.style.backgroundSize = `${percent}% 100%`
- }
- })
- },
-)