2dust / v2rayNG

A V2Ray client for Android, support Xray core and v2fly core
https://1.2345345.xyz
GNU General Public License v3.0
35.08k stars 5.41k forks source link

Add Toggle Icon for Menu Button to Indicate Open/Close State #3631

Open Vinay-Khanagavi opened 1 week ago

Vinay-Khanagavi commented 1 week ago

Description: The sidebar menu currently lacks a visual indicator to show whether it is open or closed. Adding a toggle icon to the menu button can improve user experience by providing immediate visual feedback. The feature will switch between a hamburger icon when the menu is closed and a close (X) icon when the menu is open.

We can use MUI (Material-UI) to implement this feature, utilizing the following component:

import CloseIcon from '@mui/icons-material/Close';

Screenshot:

Why is it Needed:

Feature Scope:

2dust commented 1 week ago

Welcome PR Please PR