diff --git a/public/assets/icons/drawable-xxhdpi/switch_ex_bottom.png b/public/assets/icons/drawable-xxhdpi/switch_ex_bottom.png
index f9962fd..62c1814 100644
Binary files a/public/assets/icons/drawable-xxhdpi/switch_ex_bottom.png and b/public/assets/icons/drawable-xxhdpi/switch_ex_bottom.png differ
diff --git a/public/assets/icons/drawable-xxhdpi/switch_ex_unpressed.png b/public/assets/icons/drawable-xxhdpi/switch_ex_unpressed.png
index 1da537b..f2333c5 100644
Binary files a/public/assets/icons/drawable-xxhdpi/switch_ex_unpressed.png and b/public/assets/icons/drawable-xxhdpi/switch_ex_unpressed.png differ
diff --git a/src/App.vue b/src/App.vue
index b087e95..b15239b 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,7 +1,5 @@
-
-
-
+
diff --git a/src/components/SwitchButton.vue b/src/components/SwitchButton.vue
new file mode 100644
index 0000000..f3ebb4e
--- /dev/null
+++ b/src/components/SwitchButton.vue
@@ -0,0 +1,83 @@
+
+
+
+
+
+
+
diff --git a/src/pages/NoteListPage.vue b/src/pages/NoteListPage.vue
index da4acde..7db429a 100644
--- a/src/pages/NoteListPage.vue
+++ b/src/pages/NoteListPage.vue
@@ -393,6 +393,6 @@ const notes = computed(() => store.notes)
}
.note-item {
- margin: 0.4rem 0;
+ margin: 0.6rem 0;
}
diff --git a/src/pages/SettingsPage.vue b/src/pages/SettingsPage.vue
index 643d4a5..a22b8c4 100644
--- a/src/pages/SettingsPage.vue
+++ b/src/pages/SettingsPage.vue
@@ -3,24 +3,21 @@
-
-
+
-
-
+
-
-
+
版本
1.0.0
@@ -31,7 +28,7 @@
-
+
@@ -41,6 +38,8 @@ import { computed, onMounted } from 'vue'
import { useRouter } from 'vue-router'
import { useAppStore } from '../stores/useAppStore'
import Header from '../components/Header.vue'
+import SettingGroup from '../components/SettingGroup.vue'
+import SwitchButton from '../components/SwitchButton.vue'
const store = useAppStore()
const router = useRouter()
@@ -53,7 +52,7 @@ onMounted(() => {
// 切换云同步设置
// 调用store中的方法更新云同步状态
-const toggleCloudSync = () => {
+const toggleCloudSync = (value) => {
store.toggleCloudSync()
}
@@ -89,70 +88,14 @@ const settings = computed(() => store.settings)
height: 100vh;
overflow-y: scroll;
- .section-header {
- font-size: 0.75rem;
- color: var(--text-tertiary);
- padding: 0.3125rem 1rem;
- width: 95%;
- margin: 0.75rem auto 0 auto;
- }
-
- .settings-section {
- width: 95%;
- border-radius: 0.625rem;
- overflow: hidden;
- margin: 0 auto;
- border: 1px solid var(--divider);
- box-shadow: 0 1.25rem 3.125rem 0px rgb(0 0 0 / 5%);
- }
-
- .settings-item {
- display: flex;
- justify-content: space-between;
- align-items: center;
- background-color: #f9f9f9;
- padding: 0.875rem 1rem;
- }
-
- .settings-item-border {
- border-top: 1px solid var(--divider);
- border-bottom: 1px solid var(--divider);
- &:first-child {
- border: none;
- }
- &:last-child {
- border: none;
- }
- }
-
- .settings-item-clickable {
- cursor: pointer;
- }
-
.item-text-primary {
font-size: 1rem;
- color: var(--text-primary);
+ color: #8e8e8e;
}
.item-text-tertiary {
font-size: 0.9375rem;
- color: var(--text-tertiary);
- }
-
- .item-icon {
- width: 1.25rem;
- height: 1.25rem;
- color: var(--text-primary);
- margin-right: 0.75rem;
- }
-
- .settings-item-clickable .item-text-primary {
- flex: 1;
- }
-
- .settings-item-clickable {
- display: flex;
- align-items: center;
+ color: #b4b4b4;
}
}