Skip to content

Commit 27f536f

Browse files
committed
fix: update icon colors for notes and published indicator
- Change note icon color from blue to rose - Change globe (published) icon color from orange to amber
1 parent 274f9b5 commit 27f536f

File tree

5 files changed

+25
-17
lines changed

5 files changed

+25
-17
lines changed
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1-
import { FileText, Star, Archive, Trash2, Globe } from 'lucide-react';
1+
/* eslint-disable react-refresh/only-export-components */
2+
import { Star, Archive, Trash2, Globe } from 'lucide-react';
3+
import { mdiNoteTextOutline } from '@mdi/js';
4+
import Icon from '@mdi/react';
25

36
import type { ViewMode } from '@/types/note';
47

8+
// MDI icon wrapper component for consistent sizing
9+
const NoteIcon = ({ className }: { className?: string }) => (
10+
<Icon path={mdiNoteTextOutline} size="1rem" className={className} />
11+
);
12+
513
export const FOLDER_COLORS = [
614
'#ef4444',
715
'#f97316',
@@ -21,7 +29,7 @@ export const SPECIAL_VIEWS = [
2129
{
2230
id: 'all' as ViewMode,
2331
label: 'All Files',
24-
icon: FileText,
32+
icon: NoteIcon,
2533
},
2634
{
2735
id: 'starred' as ViewMode,

src/components/layout/TabBar.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { X, ChevronDown, Globe, SquareCode } from 'lucide-react';
22
import Icon from '@mdi/react';
3-
import { mdiTextBoxOutline, mdiFileTableBoxOutline, mdiVectorSquare } from '@mdi/js';
3+
import { mdiNoteTextOutline, mdiFileTableBoxOutline, mdiVectorSquare } from '@mdi/js';
44
import { Button } from '@/components/ui/button';
55
import {
66
DropdownMenu,
@@ -40,21 +40,21 @@ const TabIcon = ({ type, isPublished }: { type: Tab['type']; isPublished?: boole
4040
return <Icon path={mdiFileTableBoxOutline} style={{ width: iconSize, height: iconSize }} className="text-green-500" />;
4141
case 'note':
4242
default:
43-
return <Icon path={mdiTextBoxOutline} style={{ width: iconSize, height: iconSize }} className="text-blue-500" />;
43+
return <Icon path={mdiNoteTextOutline} style={{ width: iconSize, height: iconSize }} className="text-rose-500" />;
4444
}
4545
})();
4646

4747
if (isPublished && typeIcon) {
4848
return (
4949
<div className="flex items-center gap-1">
5050
{typeIcon}
51-
<Globe className="h-3 w-3 text-orange-500" />
51+
<Globe className="h-3 w-3 text-amber-500" />
5252
</div>
5353
);
5454
}
5555

5656
if (isPublished) {
57-
return <Globe className="h-3.5 w-3.5 text-orange-500" />;
57+
return <Globe className="h-3.5 w-3.5 text-amber-500" />;
5858
}
5959

6060
return typeIcon;

src/components/notes/NotesPanel/NoteCard.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { memo, useMemo } from 'react';
22
import { Star, Paperclip, Codesandbox, Globe, SquareCode } from 'lucide-react';
33
import Icon from '@mdi/react';
4-
import { mdiTextBoxOutline, mdiFileTableBoxOutline, mdiVectorSquare } from '@mdi/js';
4+
import { mdiNoteTextOutline, mdiFileTableBoxOutline, mdiVectorSquare } from '@mdi/js';
55
import type { Note, Folder as FolderType } from '@/types/note.ts';
66

77
interface NoteCardProps {
@@ -119,7 +119,7 @@ function NoteCard({
119119
return <Icon path={mdiFileTableBoxOutline} style={{ width: iconSize, height: iconSize }} className="text-green-500" />;
120120
case 'note':
121121
default:
122-
return <Icon path={mdiTextBoxOutline} style={{ width: iconSize, height: iconSize }} className="text-blue-500" />;
122+
return <Icon path={mdiNoteTextOutline} style={{ width: iconSize, height: iconSize }} className="text-rose-500" />;
123123
}
124124
};
125125

@@ -161,7 +161,7 @@ function NoteCard({
161161
className="flex items-center text-xs"
162162
title="Published - publicly accessible"
163163
>
164-
<Globe className="h-3.5 w-3.5 text-orange-500" />
164+
<Globe className="h-3.5 w-3.5 text-amber-500" />
165165
</div>
166166
)}
167167
{hasExecutableCode && (

src/components/notes/NotesPanel/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
SquareCode,
1111
} from 'lucide-react';
1212
import Icon from '@mdi/react';
13-
import { mdiTextBoxOutline, mdiFileTableBoxOutline, mdiVectorSquare } from '@mdi/js';
13+
import { mdiNoteTextOutline, mdiFileTableBoxOutline, mdiVectorSquare } from '@mdi/js';
1414
import NotesList from '@/components/notes/NotesPanel/NotesList.tsx';
1515
import { Button } from '@/components/ui/button.tsx';
1616
import { ButtonGroup } from '@/components/ui/button-group';
@@ -501,7 +501,7 @@ export default function FilesPanel({
501501
onClick={() => onCreateNote()}
502502
className="flex items-center gap-2"
503503
>
504-
<Icon path={mdiTextBoxOutline} style={{ width: "16px", height: "16px" }} className="text-blue-500" />
504+
<Icon path={mdiNoteTextOutline} style={{ width: "16px", height: "16px" }} className="text-rose-500" />
505505
<span>Note</span>
506506
</DropdownMenuItem>
507507

src/components/settings/UsageSection.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,12 @@ export function UsageSection({ className }: UsageSectionProps) {
139139
)}
140140
</div>
141141

142-
{/* Notes Count */}
142+
{/* Files Count */}
143143
<div className="space-y-3 rounded-lg border p-4">
144144
<div className="flex items-center justify-between">
145145
<div className="flex items-center gap-2">
146146
<FileText className="text-muted-foreground h-4 w-4" />
147-
<span className="font-medium">Notes</span>
147+
<span className="font-medium">Files</span>
148148
</div>
149149
<span className="text-muted-foreground text-sm">
150150
{usage.notes.count} / {usage.notes.limit}
@@ -159,7 +159,7 @@ export function UsageSection({ className }: UsageSectionProps) {
159159
? `${usage.notes.usagePercent.toFixed(2)}% used`
160160
: `${usage.notes.usagePercent.toFixed(1)}% used`}
161161
</span>
162-
<span>{usage.notes.limit - usage.notes.count} notes remaining</span>
162+
<span>{usage.notes.limit - usage.notes.count} files remaining</span>
163163
</div>
164164

165165
{usage.notes.usagePercent >= 80 && (
@@ -172,8 +172,8 @@ export function UsageSection({ className }: UsageSectionProps) {
172172
)}
173173
>
174174
{usage.notes.usagePercent >= 95
175-
? '⚠️ Note limit almost reached. Consider upgrading soon.'
176-
: '📝 Approaching note limit.'}
175+
? '⚠️ File limit almost reached. Consider upgrading soon.'
176+
: '📝 Approaching file limit.'}
177177
</div>
178178
)}
179179
</div>
@@ -187,7 +187,7 @@ export function UsageSection({ className }: UsageSectionProps) {
187187
usage.notes.usagePercent >= 80) && (
188188
<span>
189189
{' '}
190-
Consider upgrading for more storage and unlimited notes.
190+
Consider upgrading for more storage and unlimited files.
191191
</span>
192192
)}
193193
</p>

0 commit comments

Comments
 (0)