From db89ab7a604ccdf489eb888e781cdf73aac03cc9 Mon Sep 17 00:00:00 2001 From: booploops <49113086+booploops@users.noreply.github.com> Date: Tue, 15 Feb 2022 19:39:53 -0800 Subject: [PATCH] exposed --songProgressColor and --songProgressBackground --- src/renderer/index.js | 2 +- src/renderer/style.less | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/renderer/index.js b/src/renderer/index.js index 6ac0715b..66e5c23d 100644 --- a/src/renderer/index.js +++ b/src/renderer/index.js @@ -1170,7 +1170,7 @@ const app = new Vue({ let max = this.mk.currentPlaybackDuration let value = (val - min) / (max - min) * 100 return { - 'background': ('linear-gradient(to right, var(--keyColor) 0%, var(--keyColor) ' + value + '%, #333 ' + value + '%, #333 100%)') + 'background': ('linear-gradient(to right, var(--songProgressColor) 0%, var(--songProgressColor) ' + value + '%, var(--songProgressBackground) ' + value + '%, var(--songProgressBackground) 100%)') } }, async getRecursive(response) { diff --git a/src/renderer/style.less b/src/renderer/style.less index 85949811..9df52a9b 100644 --- a/src/renderer/style.less +++ b/src/renderer/style.less @@ -35,6 +35,8 @@ --keyColor-disabled: rgba(250, 88, 106, 0.35); --navigationBarHeight: 38px; --modalBackground: #262626; + --songProgressColor: var(--keyColor); + --songProgressBackground: #333; --textColor: #eee; }