From 620dd7d3efe44504228e97c9ed43bc3845de6807 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Tue, 7 Mar 2023 21:52:21 -0800 Subject: [PATCH] Lots more theme stuff --- src-tauri/icons/icon.icns | Bin 616124 -> 616124 bytes src-web/App.tsx | 2 +- src-web/components/Button.tsx | 5 +- src-web/components/Colors.tsx | 105 +++++++++++++++++++++++++++ src-web/components/Dialog.tsx | 7 +- src-web/components/Dropdown.tsx | 2 +- src-web/components/Editor/Editor.css | 24 +++--- src-web/components/Grid.tsx | 6 +- src-web/components/Input.tsx | 2 +- src-web/components/ResponsePane.tsx | 15 ++-- src-web/components/Sidebar.tsx | 23 +----- src-web/components/UrlBar.tsx | 2 +- src-web/lib/theme/theme.test.ts | 36 +++------ src-web/lib/theme/theme.ts | 60 ++++++++++----- src-web/lib/theme/window.ts | 31 +++++--- tailwind.config.cjs | 7 +- 16 files changed, 219 insertions(+), 108 deletions(-) create mode 100644 src-web/components/Colors.tsx diff --git a/src-tauri/icons/icon.icns b/src-tauri/icons/icon.icns index e4468139e68f2959ddbd84868af8559dacb80661..97dcfacddc5c73643eb3e94e20901b8795271fa8 100644 GIT binary patch delta 93 zcmV-j0HXiA%_Y3eB?xI_ZgT($X1uqJECvZYfeM8R0fh5@8|@ delta 100 zcmdmUR&~!=RgTQ$ykZ8g)PDBur}lGvTDHAQUCw| diff --git a/src-web/App.tsx b/src-web/App.tsx index 5cf1c9b6..30ee0ef2 100644 --- a/src-web/App.tsx +++ b/src-web/App.tsx @@ -33,7 +33,7 @@ function App() {
{request.name} diff --git a/src-web/components/Button.tsx b/src-web/components/Button.tsx index 9f4feba3..0914f89b 100644 --- a/src-web/components/Button.tsx +++ b/src-web/components/Button.tsx @@ -9,9 +9,8 @@ import { forwardRef } from 'react'; import { Icon } from './Icon'; const colorStyles = { - default: 'hover:bg-gray-500/10 text-gray-600', - gray: 'text-gray-800 bg-gray-100 hover:bg-gray-500/20', - tint: 'text-white/90 hover:text-white hover:bg-white/20', + default: 'hover:bg-gray-700/10 text-gray-700 hover:text-gray-900', + gray: 'text-gray-800 bg-gray-100 hover:bg-gray-500/20 hover:text-gray-900', primary: 'bg-blue-400', secondary: 'bg-violet-400', warning: 'bg-orange-400', diff --git a/src-web/components/Colors.tsx b/src-web/components/Colors.tsx new file mode 100644 index 00000000..7ee58f30 --- /dev/null +++ b/src-web/components/Colors.tsx @@ -0,0 +1,105 @@ +import classnames from 'classnames'; +import React from 'react'; +import { HStack, VStack } from './Stacks'; + +export function Colors() { + return ( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ); +} + +function Color({ className }: { className: string }) { + return
; +} diff --git a/src-web/components/Dialog.tsx b/src-web/components/Dialog.tsx index 4f68cbb3..df66eeb3 100644 --- a/src-web/components/Dialog.tsx +++ b/src-web/components/Dialog.tsx @@ -28,14 +28,15 @@ export function Dialog({ ('#radix-portal')}> - + -
+
diff --git a/src-web/components/Dropdown.tsx b/src-web/components/Dropdown.tsx index 2a4e1dbd..a8dd1c4b 100644 --- a/src-web/components/Dropdown.tsx +++ b/src-web/components/Dropdown.tsx @@ -137,7 +137,7 @@ const DropdownMenuContent = forwardRef