|
@@ -72,6 +72,7 @@
|
|
|
@dblclick="alwaysFormat"
|
|
|
:style="{
|
|
|
background: one || always ? '#4583ff' : '',
|
|
|
+ color: one || always ?( theme==='light'?'#fff':''):''
|
|
|
}"
|
|
|
>
|
|
|
<svg
|
|
@@ -143,6 +144,7 @@
|
|
|
@dblclick="alwaysDraw"
|
|
|
:style="{
|
|
|
background: oneD || alwaysD ? '#4583ff' : '',
|
|
|
+ color: oneD || alwaysD ?( theme==='light'?'#fff':''):''
|
|
|
}"
|
|
|
>
|
|
|
<svg
|
|
@@ -312,7 +314,9 @@
|
|
|
</a>
|
|
|
</t-tooltip>
|
|
|
<t-tooltip content="分享" placement="bottom">
|
|
|
- <a @click="share" :class="{ 'share-primary': shared }">
|
|
|
+ <a @click="share" :class="{ 'share-primary': shared }" :style="{
|
|
|
+ color: shared?(theme==='light'?'#fff':''):''
|
|
|
+ }">
|
|
|
<share-icon />
|
|
|
<!-- <t-icon name="share" :class="{ primary: shared }" /> -->
|
|
|
</a>
|
|
@@ -789,7 +793,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
-import { onMounted, onUnmounted, watch, ref, reactive, toRaw } from 'vue';
|
|
|
+import { onMounted, onUnmounted, watch, ref, reactive, toRaw, computed } from 'vue';
|
|
|
import { useRouter, useRoute } from 'vue-router';
|
|
|
import {
|
|
|
Meta2d,
|
|
@@ -1862,6 +1866,11 @@ const onSuccessChargeCloud = () => {
|
|
|
publishChargeDialog.show = false;
|
|
|
onShowPublish();
|
|
|
};
|
|
|
+
|
|
|
+const theme = computed(() => {
|
|
|
+ return localStorage.getItem('theme') || 'dark';
|
|
|
+});
|
|
|
+
|
|
|
</script>
|
|
|
<style lang="postcss" scoped>
|
|
|
.meta2d {
|