Highlight include/exclude inputs when errors happen there

This commit is contained in:
Kirill Bulatov
2023-05-10 11:11:31 +03:00
committed by Kirill Bulatov
parent dfdf7e4866
commit eec60556ab
3 changed files with 67 additions and 23 deletions
+10 -4
View File
@@ -26,6 +26,12 @@ export default function search(colorScheme: ColorScheme) {
},
}
const includeExcludeEditor = {
...editor,
minWidth: 100,
maxWidth: 250,
};
return {
// TODO: Add an activeMatchBackground on the rust side to differenciate between active and inactive
matchBackground: withOpacity(foreground(layer, "accent"), 0.4),
@@ -64,10 +70,10 @@ export default function search(colorScheme: ColorScheme) {
...editor,
border: border(layer, "negative"),
},
includeExcludeEditor: {
...editor,
minWidth: 100,
maxWidth: 250,
includeExcludeEditor,
invalidIncludeExcludeEditor: {
...includeExcludeEditor,
border: border(layer, "negative"),
},
matchIndex: {
...text(layer, "mono", "variant"),