Skip to content

Commit

Permalink
style: Search Box (#174)
Browse files Browse the repository at this point in the history
* search box

* Cancel annotation
  • Loading branch information
anwen-anyi authored May 23, 2024
1 parent 9b7e95a commit abb4be0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/pages/home/header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ import {
Kbd,
CenterProps,
} from "@hope-ui/solid"
import { changeColor } from "seemly"
import { Show, createMemo } from "solid-js"
import { getSetting, local, objStore, State } from "~/store"
import { getMainColor, getSetting, local, objStore, State } from "~/store"
import { BsSearch } from "solid-icons/bs"
import { CenterLoading } from "~/components"
import { Container } from "../Container"
Expand Down Expand Up @@ -58,13 +59,15 @@ export const Header = () => {
<HStack
bg="$neutral4"
w="$32"
p="$2"
p="$1"
rounded="$md"
justifyContent="space-between"
border="2px solid transparent"
cursor="pointer"
color={getMainColor()}
bgColor={changeColor(getMainColor(), { alpha: 0.15 })}
_hover={{
borderColor: "$info6",
bgColor: changeColor(getMainColor(), { alpha: 0.2 }),
}}
onClick={() => {
bus.emit("tool", "search")
Expand Down

0 comments on commit abb4be0

Please sign in to comment.