diff --git a/index.html b/index.html index 877f08c..b1bf5df 100644 --- a/index.html +++ b/index.html @@ -38,8 +38,8 @@ --note-star: #ffffdd33; /* Star/favorite color (updated to match original) */ /* Folder colors */ - --folder-name: #99000000; /* Folder name color (60% black) */ - --folder-count: #4c000000; /* Folder item count color (30% black) */ + --folder-name: #9b9b9b; /* Folder name color (60% black) */ + --folder-count: #b4b4b4; /* Folder item count color (30% black) */ --folder-item-selected: #f5f5f5; /* Folder item selected background color */ /* Button colors - Based on Smartisan's button styles */ diff --git a/public/assets/icons/drawable-xxhdpi/btn_add_folder.png b/public/assets/icons/drawable-xxhdpi/btn_add_folder.png new file mode 100644 index 0000000..685462f Binary files /dev/null and b/public/assets/icons/drawable-xxhdpi/btn_add_folder.png differ diff --git a/public/assets/icons/drawable-xxhdpi/btn_edit_folder.png b/public/assets/icons/drawable-xxhdpi/btn_edit_folder.png new file mode 100644 index 0000000..eea2567 Binary files /dev/null and b/public/assets/icons/drawable-xxhdpi/btn_edit_folder.png differ diff --git a/public/assets/icons/drawable-xxhdpi/note_round_corner.9.png b/public/assets/icons/drawable-xxhdpi/note_round_corner.9.png index 13e22dc..d34fba1 100644 Binary files a/public/assets/icons/drawable-xxhdpi/note_round_corner.9.png and b/public/assets/icons/drawable-xxhdpi/note_round_corner.9.png differ diff --git a/src/components/FolderItem.vue b/src/components/FolderItem.vue index 78b75e7..a66186c 100644 --- a/src/components/FolderItem.vue +++ b/src/components/FolderItem.vue @@ -1,221 +1,77 @@ \ No newline at end of file + diff --git a/src/components/FolderManage.vue b/src/components/FolderManage.vue new file mode 100644 index 0000000..025b4b7 --- /dev/null +++ b/src/components/FolderManage.vue @@ -0,0 +1,135 @@ + + + + + diff --git a/src/components/Header.vue b/src/components/Header.vue index b98b872..f326146 100644 --- a/src/components/Header.vue +++ b/src/components/Header.vue @@ -1,22 +1,18 @@ @@ -77,33 +73,14 @@ const folderExpanded = computed(() => { return props.isFolderExpanded !== undefined ? props.isFolderExpanded : localFolderExpanded.value }) -const actionIconSource = computed(() => { - // 根据actionIcon属性返回对应的图标路径 - switch (props.actionIcon) { - case 'settings': - return '/assets/icons/drawable-xxhdpi/btn_settings.png' - case 'create': - return '/assets/icons/drawable-xxhdpi/btn_create.png' - default: - return null - } +const showFolderIcon = computed(() => { + // 只有当leftType为settings且有onFolderToggle回调时才显示文件夹图标 + return props.leftType === 'settings' && props.onFolderToggle }) const leftIconSource = computed(() => { - // 根据leftIcon属性返回对应的图标路径 - switch (props.leftIcon) { - case 'folder': - // 文件夹图标根据展开状态切换 - return folderExpanded.value ? '/assets/icons/drawable-xxhdpi/folder_title_arrow_pressed.png' : '/assets/icons/drawable-xxhdpi/folder_title_arrow_normal.png' - case 'back': - // 返回图标 - return '/assets/icons/drawable-xxhdpi/btn_back.png' - case 'settings': - // 设置图标 - return '/assets/icons/drawable-xxhdpi/btn_settings.png' - default: - return null - } + // 根据leftType属性返回对应的图标路径 + return props.leftType === 'settings' ? '/assets/icons/drawable-xxhdpi/btn_settings.png' : '/assets/icons/drawable-xxhdpi/btn_back.png' }) const handleFolderToggle = () => { @@ -146,10 +123,10 @@ const handleTitlePress = () => { diff --git a/src/pages/FolderPage.vue b/src/pages/FolderPage.vue index a4f837f..583e2a2 100644 --- a/src/pages/FolderPage.vue +++ b/src/pages/FolderPage.vue @@ -24,14 +24,16 @@ - @@ -42,7 +44,7 @@ import { ref, computed, onMounted } from 'vue'; import { useAppStore } from '../stores/useAppStore'; import { search, closeCircle } from 'ionicons/icons'; -import FolderItem from '../components/FolderItem.vue'; +import FolderManage from '../components/FolderManage.vue'; import Header from '../components/Header.vue'; const store = useAppStore(); @@ -71,6 +73,7 @@ const allNotesCount = computed(() => store.notes.length); const starredNotesCount = computed(() => store.notes.filter(note => note.isStarred).length); // Assuming we have a way to track deleted notes in the future const trashNotesCount = 0; +const archiveCount = 0; const foldersWithAllNotes = computed(() => { return [ diff --git a/src/pages/NoteListPage.vue b/src/pages/NoteListPage.vue index 5622415..f6d974f 100644 --- a/src/pages/NoteListPage.vue +++ b/src/pages/NoteListPage.vue @@ -1,109 +1,60 @@ \ No newline at end of file +const setIsFolderExpanded = expanded => { + isFolderExpanded.value = expanded +} + +const setSearchQuery = query => { + searchQuery.value = query +} + +const setShowAlert = show => { + showAlert.value = show +} + +const notes = computed(() => store.notes) + +