@@ -62,7 +62,6 @@ import DirSingleItem from "@/api/core/types/DirSingleItem";
62
62
import getFileType from " @/utils/file/getFileType" ;
63
63
import { computed , ref , onMounted , onUnmounted } from " vue" ;
64
64
import { useMainStore } from " @/store/main"
65
- import { useSettingsStore } from " @/store/settings"
66
65
import prettyBytes from " @/utils/prettyBytes" ;
67
66
import AdapterBase from " @/api/core/types/AdapterBase" ;
68
67
import { ViewOptions } from " ./types/ViewOptions" ;
@@ -80,7 +79,6 @@ interface Props {
80
79
const props = defineProps <Props >()
81
80
const emit = defineEmits ([' selected' , ' unselected' ])
82
81
const mainStore = useMainStore ()
83
- const settingsStore = useSettingsStore ()
84
82
// 由于看图模式下排版存在不稳定性,故不启用虚拟列表
85
83
const isIntersecting = ref <boolean >(props .viewOptions .itemDisplayMode === 2 )
86
84
@@ -95,8 +93,6 @@ const isHidden = computed(() => {
95
93
96
94
const fileItemClassList = computed (() => {
97
95
return {
98
- ' file-item-dark' : settingsStore .getSetting (' is_dark' ),
99
- ' file-item-light' : ! settingsStore .getSetting (' is_dark' ),
100
96
' file-item-list' : props .viewOptions .itemDisplayMode === 0 ,
101
97
' file-item-item' : props .viewOptions .itemDisplayMode === 1 ,
102
98
' file-item-photo' : props .viewOptions .itemDisplayMode === 2 ,
@@ -218,23 +214,27 @@ onUnmounted(() => {
218
214
position: relative !important; // 为了contextmenu的右键点击激发区域能够顺利溢出隐藏
219
215
}
220
216
221
- .file-item-dark {
222
- color: white;
223
- background-color: rgba(131, 131, 131, @item-background-alpha);
224
- }
217
+ .v-theme--LightTheme {
218
+ .file-item {
219
+ color: black;
220
+ background-color: rgba(255, 255, 255, @item-background-alpha);
221
+ box-shadow: 0 0 7px rgba(0, 0, 0, 0.15);
222
+ }
225
223
226
- .file-item-light {
227
- color: black;
228
- background-color: rgba(255, 255, 255, @item-background-alpha);
229
- box-shadow: 0 0 7px rgba(0, 0, 0, 0.15);
224
+ .file-item:hover {
225
+ background-color: rgba(230, 230, 230, 0.5);
226
+ }
230
227
}
231
228
232
- .file-item-dark:hover {
233
- background-color: rgba(131, 131, 131, 0.5);
234
- }
229
+ .v-theme--DarkTheme {
230
+ .file-item {
231
+ color: white;
232
+ background-color: rgba(131, 131, 131, @item-background-alpha);
233
+ }
235
234
236
- .file-item-light:hover {
237
- background-color: rgba(230, 230, 230, 0.5);
235
+ .file-item:hover {
236
+ background-color: rgba(131, 131, 131, 0.5);
237
+ }
238
238
}
239
239
240
240
.file-item-list {
0 commit comments