Skip to content

Commit

Permalink
update settings app UI
Browse files Browse the repository at this point in the history
  • Loading branch information
fluid-design-io committed Feb 24, 2025
1 parent 5fede5e commit 98b43d5
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 36 deletions.
5 changes: 0 additions & 5 deletions .changeset/fine-singers-drum.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/happy-tools-accept.md

This file was deleted.

8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# vision-pro-ui

## 1.3.2

### Patch Changes

- c4de32a: update photos app, added unsplash images, matched ornament tabs & icons with VisionOS photos app.
- 61efb6f: minor UI improvements
- updated settings app to match VisionOS

## 1.3.1

### Patch Changes
Expand Down
50 changes: 28 additions & 22 deletions app/(landing)/settings/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
NavigationBarTitle,
} from "@/components/core/navigation-bar";
import { SidebarTrigger } from "@/components/core/sidebar";
import View from "@/components/core/view";

export const dynamic = "force-dynamic";

Expand All @@ -27,33 +26,44 @@ export default function Settings() {
<List
data={[
{
id: "1",
title: "Personal Information",
id: "about",
title: "About",
},
"",
{
id: "autofill",
title: "AutoFill & Passwords",
},
{
id: "dictionary",
title: "Dictionary",
},
{
id: "2",
title: "Sign-in & Security",
id: "fonts",
title: "Fonts",
},
{
id: "3",
title: "Payment & Shipping",
id: "keyboard",
title: "Keyboard",
},
{
id: "4",
title: "Subscriptions",
id: "language-region",
title: "Language & Region",
},
"",
{
id: "5",
title: "iCloud",
rightView: "50 GB",
detail: true,
id: "vpns",
title: "VPN & Device Management",
},
"",
{
id: "remote-devices",
title: "Remote Devices",
},
"",
{
id: "6",
title: "Family",
rightView: "Set Up",
detail: true,
id: "transfer-or-reset",
title: "Transfer or Reset Vision Pro",
},
]}
renderItem={renderItem}
Expand All @@ -70,11 +80,7 @@ function renderItem<T extends ListDataItem>(info: ListRenderItemProps<T>) {
}
return (
<ListItem
leftView={
<div className="flex justify-center px-4">
<View className="aspect-square h-8 rounded-full" />
</div>
}
leftView={info.item.leftView}
rightView={info.item.rightView}
{...info}
/>
Expand Down
5 changes: 3 additions & 2 deletions components/core/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ function ListItem<T extends ListDataItem>({
},
"hover:bg-blend-color-dodge hover:[background:linear-gradient(0deg,rgba(94,94,94,0.18)0%,rgba(94,94,94,0.18)100%),rgba(255,255,255,0.07)]",
"hover:[background-blend-mode:color-dodge,normal]",
!leftView && "pl-6",
className,
)}
>
Expand Down Expand Up @@ -253,10 +254,10 @@ function ListSectionHeader<T extends ListDataItem>({
);
}
return (
<div className={cn("w-full pb-4 pl-4 pt-4", className)}>
<div className={cn("w-full pt-4 pb-4 pl-4", className)}>
<Text
className={cn(
"text-left uppercase text-muted-foreground",
"text-muted-foreground text-left uppercase",
textClassName,
)}
size="caption1"
Expand Down
2 changes: 1 addition & 1 deletion components/core/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ const sidebarMenuButtonVariants = cva(
size: {
default: "h-8 text-sm",
sm: "h-7 text-xs",
lg: "h-14 group-data-[collapsible=icon]:!p-0",
lg: "h-14 group-data-[collapsible=icon]:!p-0 before:rounded-xl",
},
},
defaultVariants: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vision-pro-ui",
"version": "1.3.1",
"version": "1.3.2",
"scripts": {
"build": "next build",
"dev": "next dev -p 3080",
Expand Down

0 comments on commit 98b43d5

Please sign in to comment.