Skip to content

Commit

Permalink
⚡️ 调整部分 ui
Browse files Browse the repository at this point in the history
  • Loading branch information
BTMuli committed Nov 17, 2023
1 parent 6ca5de2 commit 1d09f48
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 23 deletions.
2 changes: 1 addition & 1 deletion src/components/home/t-calendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="calendar-box">
<div class="calendar-title">
<div class="calendar-title-left">
<v-icon size="small">mdi-calendar-clock</v-icon>
<v-icon size="small" style="opacity: 0.8">mdi-calendar-clock</v-icon>
<span>今日素材</span>
<span>{{ dateNow }}</span>
<!-- 如果是某人生日,礼物图标颜色为红色 -->
Expand Down
3 changes: 1 addition & 2 deletions src/components/home/t-pool.vue
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,7 @@ onUnmounted(() => {
.pool-title-left img {
width: 25px;
height: 25px;
border-radius: 50%;
background: var(--common-shadow-4);
filter: brightness(0.8);
}
.pool-title-right {
Expand Down
8 changes: 7 additions & 1 deletion src/components/home/t-position.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
</div>
<div class="position-card-text">
<v-icon>mdi-clock-outline</v-icon>
<span>剩余时间:</span>
<span v-if="positionTimeGet[card.postId] !== '已结束'">{{
positionTimeGet[card.postId]
}}</span>
Expand Down Expand Up @@ -130,6 +129,7 @@ onUnmounted(() => {
width: 20px;
height: 20px;
margin: 0 10px;
filter: brightness(0.9);
}
.position-grid {
Expand Down Expand Up @@ -182,5 +182,11 @@ onUnmounted(() => {
display: inline-block;
min-width: 200px;
align-items: flex-start;
margin-right: 5px;
}
.position-card-text :nth-child(1) {
color: var(--btn-text);
filter: brightness(0.8);
}
</style>
47 changes: 31 additions & 16 deletions src/components/itembox/tib-calendar-item.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<TItemBox :model-value="box" />
</template>
<script lang="ts" setup>
import { computed } from "vue";
import { onMounted, ref } from "vue";
import TItemBox from "../main/t-itembox.vue";
import type { TItemBoxData } from "../main/t-itembox.vue";
Expand All @@ -14,33 +14,48 @@ interface TibCalendarItemProps {
}
const props = defineProps<TibCalendarItemProps>();
const box = computed<TItemBoxData>(() => {
const box = ref<TItemBoxData>({
bg: "",
icon: "",
size: "100px",
height: "100px",
display: "inner",
clickable: false,
lt: "",
ltSize: "30px",
innerHeight: 25,
innerIcon: "",
innerText: "",
});
onMounted(() => {
if (props.model === "avatar") {
return {
box.value = {
bg: props.data.bg,
icon: props.data.icon,
size: "100px",
height: "100px",
display: "inner",
clickable: props.clickable,
lt: props.data.elementIcon,
lt: props.data.elementIcon ?? "",
ltSize: "30px",
innerHeight: 25,
innerIcon: props.data.weaponIcon,
innerText: props.data.name,
};
} else {
box.value = {
bg: props.data.bg,
icon: props.data.icon,
size: "100px",
height: "100px",
display: "inner",
clickable: props.clickable,
lt: props.data.weaponIcon,
ltSize: "30px",
innerHeight: 25,
innerText: props.data.name,
};
}
return {
bg: props.data.bg,
icon: props.data.icon,
size: "100px",
height: "100px",
display: "inner",
clickable: props.clickable,
lt: props.data.weaponIcon,
ltSize: "30px",
innerHeight: 25,
innerText: props.data.name,
};
});
</script>
7 changes: 5 additions & 2 deletions src/components/overlay/to-calendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,13 @@ function toDetail(item: TGApp.App.Calendar.Item): void {
.toc-src-box :nth-child(2) {
height: 30px;
border-radius: 50%;
margin: 5px;
aspect-ratio: 1;
background: var(--common-shadow-4);
filter: invert(87%) sepia(14%) saturate(216%) hue-rotate(180deg) brightness(81%) contrast(87%);
}
.dark .toc-src-box :nth-child(2) {
filter: none;
}
.toc-src-text {
Expand Down
14 changes: 13 additions & 1 deletion src/pages/common/Achievements.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<div class="version-icon-series">v{{ series.version }}</div>
<v-list-item>
<template #prepend>
<v-img width="40px" style="margin-right: 10px" :src="getIcon(series.id)" />
<v-img class="series-icon" :src="getIcon(series.id)" />
</template>
<v-list-item-title :title="series.name">
{{ series.name }}
Expand Down Expand Up @@ -558,6 +558,18 @@ async function getAchievements(
text-align: center;
}
.series-icon {
width: 40px;
height: 40px;
padding: 5px;
border-radius: 5px;
margin-right: 10px;
background:
linear-gradient(to bottom, rgb(255 255 255 / 15%) 0%, rgb(0 0 0 / 15%) 100%),
radial-gradient(at top center, rgb(255 255 255 / 40%) 0%, rgb(0 0 0 / 40%) 120%) #989898;
background-blend-mode: multiply, multiply;
}
.version-icon-single {
color: var(--tgc-pink-1);
font-family: var(--font-title);
Expand Down

0 comments on commit 1d09f48

Please sign in to comment.