mirror of
https://github.com/geoffsee/open-gsio.git
synced 2025-09-08 22:56:46 +00:00
change semantics
Update README deployment steps and add deploy:secrets script to package.json update local inference script and README update lockfile reconfigure package scripts for development update test execution pass server tests Update README with revised Bun commands and workspace details remove pnpm package manager designator create bun server
This commit is contained in:

committed by
Geoff Seemueller

parent
1055cda2f1
commit
497eb22ad8
54
packages/client/src/components/ThemeSelection.tsx
Normal file
54
packages/client/src/components/ThemeSelection.tsx
Normal file
@@ -0,0 +1,54 @@
|
||||
import { getColorThemes } from "../layout/theme/color-themes";
|
||||
import { Center, IconButton, VStack } from "@chakra-ui/react";
|
||||
import userOptionsStore from "../stores/UserOptionsStore";
|
||||
import { Circle } from "lucide-react";
|
||||
import { toolbarButtonZIndex } from "./toolbar/Toolbar";
|
||||
import React from "react";
|
||||
import { useIsMobile } from "./contexts/MobileContext";
|
||||
|
||||
export function ThemeSelectionOptions() {
|
||||
const children = [];
|
||||
|
||||
const isMobile = useIsMobile();
|
||||
|
||||
for (const theme of getColorThemes()) {
|
||||
children.push(
|
||||
<IconButton
|
||||
as="div"
|
||||
role="button"
|
||||
key={theme.name}
|
||||
onClick={() => userOptionsStore.selectTheme(theme.name)}
|
||||
size="xs"
|
||||
icon={
|
||||
<Circle
|
||||
size={!isMobile ? 16 : 20}
|
||||
stroke="transparent"
|
||||
style={{
|
||||
background: `conic-gradient(${theme.colors.background.primary.startsWith("#") ? theme.colors.background.primary : theme.colors.background.secondary} 0 50%, ${theme.colors.text.secondary} 50% 100%)`,
|
||||
borderRadius: "50%",
|
||||
boxShadow: "0 0 0.5px 0.25px #fff",
|
||||
cursor: "pointer",
|
||||
transition: "background 0.2s",
|
||||
}}
|
||||
/>
|
||||
}
|
||||
bg="transparent"
|
||||
borderRadius="50%" // Ensures the button has a circular shape
|
||||
stroke="transparent"
|
||||
color="transparent"
|
||||
_hover={{
|
||||
svg: {
|
||||
transition: "stroke 0.3s ease-in-out", // Smooth transition effect
|
||||
},
|
||||
}}
|
||||
zIndex={toolbarButtonZIndex}
|
||||
/>,
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<VStack align={!isMobile ? "end" : "start"} p={1.2}>
|
||||
<Center>{children}</Center>
|
||||
</VStack>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user