diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 8e9aad077..9e0dd4c78 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -2182,6 +2182,17 @@ dependencies = [ "thiserror", ] +[[package]] +name = "os_info" +version = "3.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "006e42d5b888366f1880eda20371fedde764ed2213dc8496f49622fa0c99cd5e" +dependencies = [ + "log", + "serde", + "winapi", +] + [[package]] name = "overload" version = "0.1.1" @@ -3469,6 +3480,19 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "sys-locale" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8a11bd9c338fdba09f7881ab41551932ad42e405f61d01e8406baea71c07aee" +dependencies = [ + "js-sys", + "libc", + "wasm-bindgen", + "web-sys", + "windows-sys 0.45.0", +] + [[package]] name = "system-deps" version = "5.0.0" @@ -3604,6 +3628,7 @@ dependencies = [ "objc", "once_cell", "open", + "os_info", "percent-encoding", "rand 0.8.5", "raw-window-handle", @@ -3616,6 +3641,7 @@ dependencies = [ "serde_repr", "serialize-to-javascript", "state", + "sys-locale", "tar", "tauri-macros", "tauri-runtime", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index a60b18ee5..f6b27def5 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -20,7 +20,7 @@ kittycad = "0.2.25" oauth2 = "4.4.2" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" -tauri = { version = "1.4.1", features = ["dialog-all", "fs-all", "http-request", "path-all", "shell-open", "shell-open-api", "updater", "devtools"] } +tauri = { version = "1.4.1", features = [ "os-all", "dialog-all", "fs-all", "http-request", "path-all", "shell-open", "shell-open-api", "updater", "devtools"] } tauri-plugin-fs-extra = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" } tokio = { version = "1.32.0", features = ["time"] } toml = "0.8.0" diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 16fdd0ee2..7b64de6b5 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -36,6 +36,9 @@ "https://api.dev.kittycad.io/*" ] }, + "os": { + "all": true + }, "shell": { "open": true }, diff --git a/src/components/CommandBar.tsx b/src/components/CommandBar.tsx index a2694f5da..fd80ebb43 100644 --- a/src/components/CommandBar.tsx +++ b/src/components/CommandBar.tsx @@ -62,7 +62,7 @@ export const CommandBarProvider = ({ const CommandBar = () => { const { commands, commandBarOpen, setCommandBarOpen } = useCommandsContext() - useHotkeys('meta+k', () => { + useHotkeys(['meta+k', 'meta+/'], () => { if (commands.length === 0) return setCommandBarOpen(!commandBarOpen) }) @@ -221,10 +221,10 @@ const CommandBar = () => { -
+
{inSubCommand && ( @@ -235,7 +235,7 @@ const CommandBar = () => { )} setQuery(event.target.value)} - className="bg-transparent focus:outline-none w-full" + className="w-full bg-transparent focus:outline-none" onKeyDown={(event) => { if (event.metaKey && event.key === 'k') setCommandBarOpen(false) @@ -264,12 +264,12 @@ const CommandBar = () => { />
- + {filteredCommands?.map((commandResult) => (

{commandResult.item.name}

{(commandResult.item as SubCommand).description && ( diff --git a/src/index.css b/src/index.css index bfd917fac..9f4a3b7a4 100644 --- a/src/index.css +++ b/src/index.css @@ -31,6 +31,14 @@ body.dark { @apply text-chalkboard-10; } +select { + @apply bg-chalkboard-20; +} + +.dark select { + @apply bg-chalkboard-90; +} + ::-webkit-scrollbar { @apply w-2 h-2 rounded-sm; @apply bg-chalkboard-20; diff --git a/src/routes/Onboarding/Camera.tsx b/src/routes/Onboarding/Camera.tsx index 61d15ca85..f4f28f0cb 100644 --- a/src/routes/Onboarding/Camera.tsx +++ b/src/routes/Onboarding/Camera.tsx @@ -26,7 +26,7 @@ export default function Units() { } = useGlobalStateContext() return ( -
+
-