Skip to content

Commit dcb39fc

Browse files
committed
fix replay gain active style
1 parent 8d64310 commit dcb39fc

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/player/Player.vue

+5-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,11 @@
7171
<b-button
7272
v-if="track && track.replayGain"
7373
title="ReplayGain"
74-
variant="link" class="m-0"
75-
@click="toggleReplayGain">
74+
variant="link"
75+
class="m-0"
76+
:class="{ 'text-primary': replayGainMode !== ReplayGainMode.None }"
77+
@click="toggleReplayGain"
78+
>
7679
<IconReplayGain v-if="replayGainMode === ReplayGainMode.None" />
7780
<IconReplayGainTrack v-else-if="replayGainMode === ReplayGainMode.Track" />
7881
<IconReplayGainAlbum v-else-if="replayGainMode === ReplayGainMode.Album" />

src/shared/components/IconReplayGain.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
width="1em" height="1em" fill="currentColor"
44
viewBox="0 0 24 24"
55
class="icon bi">
6-
<text opacity="0.5" x="0" y="50%" dominant-baseline="central" text-anchor="start" font-family="Arial, sans-serif" font-weight="bold" font-size="16" fill="currentColor">RG</text>
6+
<text x="0" y="50%" dominant-baseline="central" text-anchor="start" font-family="Arial, sans-serif" font-weight="bold" font-size="16" fill="currentColor">RG</text>
77
</svg>
88
</template>

0 commit comments

Comments
 (0)