Skip to content

Commit e7a3fad

Browse files
committed
refactor: unify menu bar style
1 parent 31676d9 commit e7a3fad

File tree

19 files changed

+23
-27
lines changed

19 files changed

+23
-27
lines changed

browser/src/components/menu/fullscreen/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const Fullscreen = () => {
3535

3636
return (
3737
<div
38-
className="flex h-[28px] w-[28px] cursor-pointer items-center justify-center rounded text-white hover:bg-neutral-700/70"
38+
className="flex h-[28px] w-[28px] cursor-pointer items-center justify-center rounded text-neutral-300 hover:bg-neutral-700/70 hover:text-white"
3939
onClick={handleFullscreen}
4040
>
4141
{isFullscreen ? <MinimizeIcon size={18} /> : <MaximizeIcon size={18} />}

browser/src/components/menu/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ import * as storage from '@/libs/storage';
1010
import { Fullscreen } from './fullscreen';
1111
import { Keyboard } from './keyboard';
1212
import { Mouse } from './mouse';
13+
import { Recorder } from './recorder';
1314
import { SerialPort } from './serial-port';
1415
import { Settings } from './settings';
1516
import { Video } from './video';
16-
import { Recorder } from './recorder';
1717

1818
export const Menu = () => {
1919
const serialState = useAtomValue(serialStateAtom);
@@ -63,7 +63,7 @@ export const Menu = () => {
6363
<Settings />
6464
<Fullscreen />
6565
<div
66-
className="flex h-[28px] w-[28px] cursor-pointer items-center justify-center rounded text-white hover:bg-neutral-700/70"
66+
className="flex h-[28px] w-[28px] cursor-pointer items-center justify-center rounded text-neutral-300 hover:bg-neutral-700/70 hover:text-white"
6767
onClick={toggleMenu}
6868
>
6969
<XIcon size={18} />

browser/src/components/menu/keyboard/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const Keyboard = () => {
2626
open={isPopoverOpen}
2727
onOpenChange={setIsPopoverOpen}
2828
>
29-
<div className="flex h-[28px] w-[28px] cursor-pointer items-center justify-center rounded text-white hover:bg-neutral-700/70">
29+
<div className="flex h-[28px] w-[28px] cursor-pointer items-center justify-center rounded text-neutral-300 hover:bg-neutral-700/70 hover:text-white">
3030
<KeyboardIcon size={18} />
3131
</div>
3232
</Popover>

browser/src/components/menu/keyboard/paste.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const Paste = () => {
5050
className="flex h-[32px] cursor-pointer items-center space-x-2 rounded px-3 text-neutral-300 hover:bg-neutral-700/50"
5151
onClick={paste}
5252
>
53-
<ClipboardIcon size={18} />
53+
<ClipboardIcon size={16} />
5454
<span>{t('keyboard.paste')}</span>
5555
</div>
5656
);

browser/src/components/menu/keyboard/shortcuts/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,7 @@ export const Shortcuts = () => {
8686
arrow={false}
8787
>
8888
<div className="flex h-[32px] cursor-pointer items-center space-x-2 rounded px-3 text-neutral-300 hover:bg-neutral-700/50">
89-
<div className="flex size-[18px] items-center justify-center">
90-
<CommandIcon size={16} />
91-
</div>
89+
<CommandIcon size={16} />
9290
<span>{t('keyboard.shortcut.title')}</span>
9391
</div>
9492
</Popover>

browser/src/components/menu/keyboard/virtual-keyboard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const VirtualKeyboard = () => {
1717
className="flex h-[32px] cursor-pointer items-center space-x-2 rounded px-3 text-neutral-300 hover:bg-neutral-700/50"
1818
onClick={toggleKeyboard}
1919
>
20-
<KeyboardIcon size={18} />
20+
<KeyboardIcon size={16} />
2121
<span>{t('keyboard.virtualKeyboard')}</span>
2222
</div>
2323
);

browser/src/components/menu/mouse/direction.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const Direction = (): ReactElement => {
4545
return (
4646
<Popover content={content} placement="rightTop" arrow={false} align={{ offset: [13, 0] }}>
4747
<div className="flex h-[32px] cursor-pointer items-center space-x-2 rounded px-3 text-neutral-300 hover:bg-neutral-700/50">
48-
<ArrowDownUpIcon size={18} />
48+
<ArrowDownUpIcon size={16} />
4949
<span>{t('mouse.direction')}</span>
5050
</div>
5151
</Popover>

browser/src/components/menu/mouse/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export const Mouse = () => {
7979
open={isPopoverOpen}
8080
onOpenChange={setIsPopoverOpen}
8181
>
82-
<div className="flex h-[28px] w-[28px] cursor-pointer items-center justify-center rounded text-white hover:bg-neutral-700/70">
82+
<div className="flex h-[28px] w-[28px] cursor-pointer items-center justify-center rounded text-neutral-300 hover:bg-neutral-700/70 hover:text-white">
8383
<MouseIcon size={18} />
8484
</div>
8585
</Popover>

browser/src/components/menu/mouse/jiggler.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const Jiggler = () => {
4747
return (
4848
<Popover content={content} placement="rightTop" arrow={false} align={{ offset: [13, 0] }}>
4949
<div className="flex h-[32px] cursor-pointer items-center space-x-2 rounded px-3 text-neutral-300 hover:bg-neutral-700/50">
50-
<MousePointerClickIcon size={18} />
50+
<MousePointerClickIcon size={16} />
5151
<span>{t('mouse.jiggler.title')}</span>
5252
</div>
5353
</Popover>

browser/src/components/menu/mouse/mode.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ export const Mode = () => {
4141
return (
4242
<Popover content={content} placement="rightTop" arrow={false} align={{ offset: [13, 0] }}>
4343
<div className="flex h-[32px] cursor-pointer items-center space-x-2 rounded px-3 text-neutral-300 hover:bg-neutral-700/50">
44-
<div className="flex size-[18px] items-center justify-center">
45-
<SquareMousePointerIcon size={16} />
46-
</div>
44+
<SquareMousePointerIcon size={16} />
4745
<span>{t('mouse.mode')}</span>
4846
</div>
4947
</Popover>

0 commit comments

Comments
 (0)