diff --git a/src/components/AppBar.tsx b/src/components/AppBar.tsx index 2b2799fe..9c776959 100644 --- a/src/components/AppBar.tsx +++ b/src/components/AppBar.tsx @@ -4,6 +4,7 @@ import GithubIcon from '../icons/Github'; import HelpIcon from '../icons/Help'; import OpenFolderIcon from '../icons/OpenFolder'; import ColorPaletteIcon from '../icons/ColorPalette'; +import NumberIcon from '../icons/Number'; import Button from './ui/Button'; import Dialog from './ui/Dialog'; import Dropdown, { DropdownContext } from './ui/Dropdown'; @@ -21,6 +22,8 @@ import MainWalkthrough, { import { useColors } from '../stores/colors'; import ColorPaletteSelect from './ui/ColorPaletteSelect'; import { categoricalPalettes, continuousPalettes } from '../palettes'; +import Select from './ui/Select'; +import { Notation, notations, useAppSettings } from '../stores/appSettings'; const NavBar = tw.nav`py-0.5 px-1 bg-gray-200 flex items-center w-full top-0 z-10 border-b border-gray-400`; @@ -190,6 +193,34 @@ const ColorMenu = () => { ); }; +const NumberMenu = () => { + const notation = useAppSettings((s) => s.numberNotation); + const onChangeNotation = (value?: Notation) => { + if (value) useAppSettings.getState().setNumberNotation(value); + }; + + const content = ( +
+ + Notation + +