From 317f889569aba8a1eebb0ef8ebeb72dcf63887b2 Mon Sep 17 00:00:00 2001 From: Ammar Ahmed Date: Wed, 1 Jul 2026 13:45:18 +0500 Subject: [PATCH] mobile: update ui --- apps/mobile/app/components/header/index.tsx | 4 +- .../app/components/list-items/note/index.tsx | 8 +- .../list-items/selection-wrapper/index.tsx | 4 +- .../app/components/properties/color-tags.tsx | 18 +- .../app/components/properties/date-meta.tsx | 2 +- .../app/components/properties/index.tsx | 153 ++++---- .../mobile/app/components/properties/tags.jsx | 5 +- .../app/components/sheets/sort/index.tsx | 11 +- .../app/components/ui/pressable/use-button.ts | 8 +- apps/mobile/app/screens/manage-tags/index.tsx | 330 ++++++++++-------- apps/mobile/fonts/MaterialCommunityIcons.ttf | Bin 24860 -> 24292 bytes .../fonts/notesnook-icons.glyphmap.json | 2 +- apps/mobile/fonts/notesnook-icons.ttf | Bin 34844 -> 35012 bytes .../ios/nanoicons-fonts/notesnook-icons.ttf | Bin 34844 -> 35012 bytes packages/icons/svgs/checkbox-intermediate.svg | 1 + packages/intl/locale/en.po | 4 + packages/intl/locale/pseudo-LOCALE.po | 4 + packages/intl/src/strings.ts | 3 +- 18 files changed, 313 insertions(+), 244 deletions(-) create mode 100644 packages/icons/svgs/checkbox-intermediate.svg diff --git a/apps/mobile/app/components/header/index.tsx b/apps/mobile/app/components/header/index.tsx index b07b206e2..6119adc9b 100644 --- a/apps/mobile/app/components/header/index.tsx +++ b/apps/mobile/app/components/header/index.tsx @@ -32,7 +32,6 @@ import { useSelectionStore } from "../../stores/use-selection-store"; import { useSettingStore } from "../../stores/use-setting-store"; import { eScrollEvent } from "../../utils/events"; import { fluidTabsRef } from "../../utils/global-refs"; -import { DefaultAppStyles } from "../../utils/styles"; import { IconButton, IconButtonProps } from "../ui/icon-button"; import Heading from "../ui/typography/heading"; @@ -106,7 +105,7 @@ export const Header = ({ return ( @@ -116,7 +115,6 @@ export const Header = ({ flexDirection: "row", justifyContent: "space-between", borderRadius: Radius.S, - paddingHorizontal: Spacing.LEVEL_2, paddingVertical: Spacing.LEVEL_3, backgroundColor: colors.secondary.background, alignItems: "center" diff --git a/apps/mobile/app/components/list-items/note/index.tsx b/apps/mobile/app/components/list-items/note/index.tsx index 01c432a41..3ebbfb8f7 100644 --- a/apps/mobile/app/components/list-items/note/index.tsx +++ b/apps/mobile/app/components/list-items/note/index.tsx @@ -162,9 +162,9 @@ const NoteItem = ({ ); const canShowTopStatusBar = - attachmentsCount > 0 && - activeStatusIcons.length > 0 && - notebooks?.items?.length && + attachmentsCount > 0 || + activeStatusIcons.length > 0 || + notebooks?.items?.length || tags?.items.length; return ( @@ -369,7 +369,7 @@ const NoteItem = ({ gap: Spacing.LEVEL_1 }} > - {color ? ( + {color && compactMode ? ( { const { colors } = useThemeColors(); @@ -86,15 +84,17 @@ const ColorItem = ({ item, note }: { item: Color; note: Note }) => { height: 40, borderRadius: 100, justifyContent: "center", - alignItems: "center" + alignItems: "center", + borderWidth: 0 }} > {isLinked ? ( - ) : null} diff --git a/apps/mobile/app/components/properties/date-meta.tsx b/apps/mobile/app/components/properties/date-meta.tsx index 20191b69a..1091b0879 100644 --- a/apps/mobile/app/components/properties/date-meta.tsx +++ b/apps/mobile/app/components/properties/date-meta.tsx @@ -97,7 +97,7 @@ export const DateMeta = ({ item }: { item: Item }) => { {key === "dateCreated" && item.type === "note" ? ( <> - + ) : null} diff --git a/apps/mobile/app/components/properties/index.tsx b/apps/mobile/app/components/properties/index.tsx index 6e4c91ca1..ca0316753 100644 --- a/apps/mobile/app/components/properties/index.tsx +++ b/apps/mobile/app/components/properties/index.tsx @@ -63,6 +63,7 @@ import { Tag, TrashItem } from "@notesnook/core"; +import LineSeparator from "../ui/seperator/line-separator"; export type PropertiesItem = | Note @@ -131,7 +132,7 @@ export const Properties = ({ borderBottomRightRadius: DDS.isLargeTablet() ? 10 : 1, borderBottomLeftRadius: DDS.isLargeTablet() ? 10 : 1, maxHeight: "100%", - paddingTop: Spacing.LEVEL_2 + paddingTop: Spacing.LEVEL_3 }} nestedScrollEnabled bounces={false} @@ -159,8 +160,7 @@ export const Properties = ({ > {item.type === "note" && (noteNotebooks.length || tags.length) ? ( @@ -248,7 +248,7 @@ export const Properties = ({ /> ) : null} - {item.title} + {item.title} {editAction ? ( ) : null} - - - - {item.type === "note" && colorNotes.length > 0 ? ( - - ) : null} - {item.type === "note" ? ( - 0 ? 1 : 0, - borderColor: colors.primary.border, - paddingVertical: Spacing.LEVEL_2, - paddingTop: colorNotes.length > 0 ? Spacing.LEVEL_2 : 0, - gap: Spacing.LEVEL_2 - }} - > -