Update theme selector and optimize button styling

Updated the theme selector to display the currently selected theme more clearly and enhance user-friendliness. Further, the button style is modernized with a class ensuring rounded edges for a sleeker appearance. These changes are applicable to the "ghost" button variant used for mode selection. Finally, the mode selection options utilize the MODES array for a dynamic approach, moving away from a fixed, hard-coded selection.
This commit is contained in:
giancarlo
2024-04-04 10:27:43 +08:00
parent 0b374c558a
commit ca2c3ebbbd
2 changed files with 39 additions and 19 deletions

View File

@@ -16,10 +16,9 @@ import {
TooltipProvider,
TooltipTrigger,
} from '../shadcn/tooltip';
import { cn } from '../utils';
import { cn, isRouteActive } from '../utils';
import { SidebarContext } from './context/sidebar.context';
import { If } from './if';
import isRouteActive from './is-route-active';
import { SidebarConfigSchema } from './sidebar-schema';
import { Trans } from './trans';