mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-23 17:18:32 +02:00
Better button highlight border
This commit is contained in:
@@ -30,7 +30,7 @@ export function GlobalHooks() {
|
|||||||
// if no component references them
|
// if no component references them
|
||||||
useRecentWorkspaces();
|
useRecentWorkspaces();
|
||||||
useRecentEnvironments();
|
useRecentEnvironments();
|
||||||
console.log(useRecentRequests());
|
useRecentRequests();
|
||||||
|
|
||||||
useSyncAppearance();
|
useSyncAppearance();
|
||||||
|
|
||||||
|
|||||||
@@ -61,13 +61,13 @@ export const Button = forwardRef<HTMLButtonElement, ButtonProps>(function Button
|
|||||||
size === 'sm' && 'h-sm px-2.5 text-sm',
|
size === 'sm' && 'h-sm px-2.5 text-sm',
|
||||||
size === 'xs' && 'h-xs px-2 text-sm',
|
size === 'xs' && 'h-xs px-2 text-sm',
|
||||||
// Solids
|
// Solids
|
||||||
variant === 'solid' && color === 'custom' && 'ring-blue-500/50',
|
variant === 'solid' && color === 'custom' && 'ring-blue-400',
|
||||||
variant === 'solid' &&
|
variant === 'solid' &&
|
||||||
color === 'default' &&
|
color === 'default' &&
|
||||||
'text-gray-700 enabled:hocus:bg-gray-700/10 enabled:hocus:text-gray-800 ring-blue-500/50',
|
'text-gray-700 enabled:hocus:bg-gray-700/10 enabled:hocus:text-gray-800 ring-blue-400',
|
||||||
variant === 'solid' &&
|
variant === 'solid' &&
|
||||||
color === 'gray' &&
|
color === 'gray' &&
|
||||||
'text-gray-800 bg-highlight enabled:hocus:text-gray-1000 ring-gray-400',
|
'text-gray-800 bg-highlight enabled:hocus:text-gray-1000 ring-blue-400',
|
||||||
variant === 'solid' && color === 'primary' && 'bg-blue-400 text-white ring-blue-700',
|
variant === 'solid' && color === 'primary' && 'bg-blue-400 text-white ring-blue-700',
|
||||||
variant === 'solid' && color === 'secondary' && 'bg-violet-400 text-white ring-violet-700',
|
variant === 'solid' && color === 'secondary' && 'bg-violet-400 text-white ring-violet-700',
|
||||||
variant === 'solid' && color === 'warning' && 'bg-orange-400 text-white ring-orange-700',
|
variant === 'solid' && color === 'warning' && 'bg-orange-400 text-white ring-orange-700',
|
||||||
|
|||||||
@@ -133,7 +133,6 @@ export const baseExtensions = [
|
|||||||
return (a.boost ?? 0) - (b.boost ?? 0);
|
return (a.boost ?? 0) - (b.boost ?? 0);
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
keymap.of([indentWithTab]),
|
|
||||||
syntaxHighlighting(myHighlightStyle),
|
syntaxHighlighting(myHighlightStyle),
|
||||||
myTheme,
|
myTheme,
|
||||||
EditorState.allowMultipleSelections.of(true),
|
EditorState.allowMultipleSelections.of(true),
|
||||||
@@ -160,6 +159,7 @@ export const multiLineExtensions = [
|
|||||||
highlightActiveLineGutter(),
|
highlightActiveLineGutter(),
|
||||||
highlightSelectionMatches({ minSelectionLength: 2 }),
|
highlightSelectionMatches({ minSelectionLength: 2 }),
|
||||||
keymap.of([
|
keymap.of([
|
||||||
|
indentWithTab,
|
||||||
...closeBracketsKeymap,
|
...closeBracketsKeymap,
|
||||||
...defaultKeymap,
|
...defaultKeymap,
|
||||||
...searchKeymap,
|
...searchKeymap,
|
||||||
|
|||||||
Reference in New Issue
Block a user