From c55e86fdc32cd1520cae88f54d3ed3dfce2bc2ca Mon Sep 17 00:00:00 2001 From: hakadao Date: Tue, 2 Apr 2024 02:01:36 +0800 Subject: [PATCH 01/15] feat: adjust two bilibili evolved's buttons to match the BewlyBewly theme (#423) close #423 --- src/styles/main.scss | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/styles/main.scss b/src/styles/main.scss index 2e4b6d78..f14079e9 100644 --- a/src/styles/main.scss +++ b/src/styles/main.scss @@ -102,3 +102,20 @@ html.dark.bewly-design { .dark::view-transition-new(root) { z-index: 1; } + +// Adapt the colors of the two Bilibili Evolved's buttons on the left side to BewlyBewly theme +.bewly-design { + .be-settings > .sidebar > * { + background-color: var(--bew-elevated-solid-1) !important; + opacity: 0.4; + + &:hover { + opacity: 1; + } + } + + .be-settings > .sidebar > * .be-icon { + color: var(--bew-text-1) !important; + fill: var(--bew-text-1) !important; + } +} From a75657adc8488875f295dcd6e50073786e6023b3 Mon Sep 17 00:00:00 2001 From: Hakadao Date: Wed, 3 Apr 2024 18:40:22 +0800 Subject: [PATCH 02/15] chore: Add new cSpell words and update props in VideoCard.vue and ForYou.vue --- .vscode/settings.json | 1 + src/components/VideoCard/VideoCard.vue | 19 +++++--- .../views/Home/components/ForYou.vue | 48 +++++++++++-------- 3 files changed, 41 insertions(+), 27 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 84ef2778..0f4f9d55 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,7 @@ { "cSpell.words": [ "bilibili", + "unocss", "Vitesse", "webext" ], diff --git a/src/components/VideoCard/VideoCard.vue b/src/components/VideoCard/VideoCard.vue index f0f8a828..09d69473 100644 --- a/src/components/VideoCard/VideoCard.vue +++ b/src/components/VideoCard/VideoCard.vue @@ -38,8 +38,7 @@ interface Props { moreBtnActive?: boolean removed?: boolean showDislikeOptions?: boolean - feedbackReason?: { id: number, name: string } - dislikeReason?: { id: number, name: string } + dislikeReasons?: { id: number, name: string }[] } const props = withDefaults(defineProps(), { @@ -162,7 +161,19 @@ function handleMoreBtnClick(event: MouseEvent) {