Skip to content

Commit 8c5807f

Browse files
committed
icons
1 parent dc83728 commit 8c5807f

File tree

4 files changed

+772
-243
lines changed

4 files changed

+772
-243
lines changed

src/components/Icon.tsx

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,101 @@ export const IconName = z.enum([
7777
'search_off',
7878
'navigation',
7979
'joystick',
80+
'key',
81+
'route',
82+
'favorite',
83+
'explore',
84+
'alt_route',
85+
'tune',
86+
'fingerprint',
87+
'commit',
88+
'vpn_key',
89+
'data_usage',
90+
'warning',
91+
'straighten',
92+
'language',
93+
'toggle_on',
94+
'visibility',
95+
'airline_seat_recline_normal',
96+
'timer',
97+
'network_cell',
98+
'backup',
99+
'developer_mode',
100+
'restart_alt',
101+
'delete_forever',
102+
'counter_1',
103+
'schedule',
104+
'cell_tower',
105+
'sim_card',
106+
'verified_user',
107+
'memory',
108+
'storage',
109+
'block',
110+
'update',
111+
'wide_angle_camera',
112+
'pan_tool',
113+
'remove_red_eye',
114+
'speed',
115+
'trending_up',
116+
'sync',
117+
'auto_fix_high',
118+
'model_training',
119+
'steering',
120+
'swap_horiz',
121+
'psychology',
122+
'timeline',
123+
'slow_motion_video',
124+
'turn_slight_right',
125+
'edit',
126+
'flash_on',
127+
'science',
128+
'brightness_6',
129+
'brightness_low',
130+
'signpost',
131+
'traffic',
132+
'timer_off',
133+
'nightlight',
134+
'traffic_jam',
135+
'visibility_off',
136+
'bug_report',
137+
'departure_board',
138+
'speedometer',
139+
'cached',
140+
'device_hub',
141+
'gps_fixed',
142+
'car_crash',
143+
'cable',
144+
'build',
145+
'wifi',
146+
'thermostat',
147+
'hardware',
148+
'usb',
149+
'priority_high',
150+
'cloud_off',
151+
'dns',
152+
'terminal',
153+
'cloud_upload',
154+
'live_tv',
155+
'smartphone',
156+
'folder',
157+
'exit_to_app',
158+
'bolt',
159+
'queue',
160+
'gps_off',
161+
'hub',
162+
'security',
163+
'swap_vert',
164+
'place',
165+
'map',
166+
'cloud_download',
167+
'calendar_today',
168+
'update_disabled',
169+
'group',
170+
'badge',
171+
'speed_limit',
172+
'token',
173+
'cloud_sync',
174+
'help',
80175
])
81176

82177
export type IconName = z.infer<typeof IconName>

src/pages/device/ActionBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export const ActionBar = ({ className }: { className?: string }) => {
8989

9090
return (
9191
<div
92-
className={clsx('flex gap-2 flex-wrap-reverse items-center justify-center', className)}
92+
className={clsx('flex gap-2 flex-wrap items-center justify-center', className)}
9393
style={{
9494
gridTemplateColumns: `repeat(${actions.length}, minmax(2, 2fr))`,
9595
}}

src/pages/toggles/Settings.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ export const AddToActionBar = ({ action }: { action: Action }) => {
1313
const [actions, setActions] = useStorage('actions')
1414
return (
1515
<IconButton
16-
name="add"
16+
name="close_small"
1717
title="Add to action bar"
1818
onClick={() => setActions([...actions, action])}
19-
className="absolute top-0 right-0 translate-x-1/2 -translate-y-1/2 bg-background-alt hidden group-hover:flex border border-white/20 z-20"
19+
className="rotate-45 absolute top-0 right-0 translate-x-1/2 -translate-y-1/2 bg-background-alt hidden group-hover:flex border border-white/20 z-20"
2020
/>
2121
)
2222
}
@@ -118,11 +118,11 @@ export const Settings = ({ settings }: { settings: Setting[] }) => {
118118
<AddToActionBar
119119
action={{
120120
type: 'toggle',
121-
icon: 'star',
122121
title: x.label,
123122
toggleKey: x.key,
124123
toggleType: x.type!,
125124
disabled: readonly,
125+
icon: x.icon ?? 'star',
126126
}}
127127
/>
128128
)}

0 commit comments

Comments
 (0)