瀏覽代碼

更新图标填充颜色

zq 1 年之前
父節點
當前提交
d60c0620d4

+ 0 - 3
src/icons/svg/components/bluepaused.svg

@@ -1,3 +0,0 @@
-<svg width="6" height="8" viewBox="0 0 6 8" fill="none" xmlns="http://www.w3.org/2000/svg">
-<path d="M5.07325 4.17337L0.657148 7.11746C0.561415 7.18129 0.432064 7.15541 0.368239 7.05966C0.345427 7.02546 0.333252 6.98525 0.333252 6.94412V1.05599C0.333252 0.940931 0.426527 0.847656 0.541585 0.847656C0.582714 0.847656 0.622927 0.859831 0.657148 0.882648L5.07325 3.82671C5.16896 3.89054 5.19484 4.01987 5.131 4.11562C5.11575 4.1385 5.09613 4.15812 5.07325 4.17337Z" fill="#076AFF"/>
-</svg>

+ 1 - 1
src/icons/svg/components/paused.svg

@@ -1,3 +1,3 @@
 <svg width="12" height="16" viewBox="0 0 12 16" fill="none" xmlns="http://www.w3.org/2000/svg">
-<path d="M11.376 8.41531L0.77735 15.4811C0.54759 15.6343 0.23715 15.5722 0.0839701 15.3424C0.0292201 15.2603 0 15.1638 0 15.0651V0.933594C0 0.657454 0.22386 0.433594 0.5 0.433594C0.59871 0.433594 0.69522 0.462814 0.77735 0.517574L11.376 7.58331C11.6057 7.73651 11.6678 8.04691 11.5146 8.27671C11.478 8.33161 11.4309 8.37871 11.376 8.41531Z" fill="black"/>
+<path d="M11.376 8.41531L0.77735 15.4811C0.54759 15.6343 0.23715 15.5722 0.0839701 15.3424C0.0292201 15.2603 0 15.1638 0 15.0651V0.933594C0 0.657454 0.22386 0.433594 0.5 0.433594C0.59871 0.433594 0.69522 0.462814 0.77735 0.517574L11.376 7.58331C11.6057 7.73651 11.6678 8.04691 11.5146 8.27671C11.478 8.33161 11.4309 8.37871 11.376 8.41531Z" fill="currentColor"/>
 </svg>

+ 1 - 1
src/icons/svg/components/playing.svg

@@ -1,3 +1,3 @@
 <svg width="40" height="48" viewBox="0 0 40 48" fill="none" xmlns="http://www.w3.org/2000/svg">
-<path d="M0 0.667969H6.66667V47.3346H0V0.667969ZM33.3333 0.667969H40V47.3346H33.3333V0.667969Z" fill="black"/>
+<path d="M0 0.667969H6.66667V47.3346H0V0.667969ZM33.3333 0.667969H40V47.3346H33.3333V0.667969Z" fill="currentColor"/>
 </svg>

+ 0 - 3
src/icons/svg/components/writepaused.svg

@@ -1,3 +0,0 @@
-<svg width="12" height="16" viewBox="0 0 12 16" fill="none" xmlns="http://www.w3.org/2000/svg">
-<path d="M11.376 8.41536L0.77735 15.4811C0.54759 15.6343 0.23715 15.5722 0.0839701 15.3425C0.0292201 15.2603 0 15.1638 0 15.0651V0.933594C0 0.657444 0.22386 0.433594 0.5 0.433594C0.59871 0.433594 0.69522 0.462814 0.77735 0.517564L11.376 7.58326C11.6057 7.73646 11.6678 8.04696 11.5146 8.27666C11.478 8.33156 11.4309 8.37876 11.376 8.41536Z" fill="white"/>
-</svg>

+ 12 - 3
src/views/book/courseware/preview/components/common/AudioPlay.vue

@@ -35,12 +35,17 @@
     <div v-else-if="'small' === viewSize" class="audio-icons">
       <span>{{ audioIndex + 1 }}.</span>
       <span class="icon-box">
-        <SvgIcon :icon-class="audio.paused ? 'writepaused' : 'playing'" size="14" @click="playAudio" />
+        <SvgIcon
+          :icon-class="iconClass"
+          size="14"
+          :style="{ marginLeft: audio.paused ? '4px' : '0' }"
+          @click="playAudio"
+        />
       </span>
     </div>
     <div v-else :class="['audio-list', audioIndex === curAudioIndex ? 'active' : '']">
       <div class="active-mark">
-        <SvgIcon v-if="audioIndex === curAudioIndex" icon-class="bluepaused" size="12" style="cursor: default" />
+        <SvgIcon v-if="audioIndex === curAudioIndex" icon-class="paused" size="12" style="cursor: default" />
       </div>
       <span class="audio-name">{{ audioIndex + 1 }}. {{ fileName }}</span>
       <span class="audio-time">{{ audio_allTime }}</span>
@@ -275,7 +280,7 @@ export default {
       border-radius: 20px;
 
       .svg-icon {
-        // color: red;
+        color: #fff;
       }
     }
   }
@@ -293,6 +298,10 @@ export default {
     .active-mark {
       width: 20px;
       height: 28px;
+
+      .svg-icon {
+        color: #076aff;
+      }
     }
 
     .audio-name {