Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
71df46a8
Commit
71df46a8
authored
Mar 22, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix command pallete item hover bg
parent
2e3dada5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
CodeEditorFileTree.tsx
ui/shared/monaco/CodeEditorFileTree.tsx
+2
-2
CodeEditorSearchResultItem.tsx
ui/shared/monaco/CodeEditorSearchResultItem.tsx
+1
-1
CodeEditorSearchSection.tsx
ui/shared/monaco/CodeEditorSearchSection.tsx
+1
-1
themes.ts
ui/shared/monaco/utils/themes.ts
+2
-2
No files found.
ui/shared/monaco/CodeEditorFileTree.tsx
View file @
71df46a8
...
@@ -44,7 +44,7 @@ const CodeEditorFileTree = ({ tree, level = 0, onItemClick, isCollapsed, selecte
...
@@ -44,7 +44,7 @@ const CodeEditorFileTree = ({ tree, level = 0, onItemClick, isCollapsed, selecte
pr=
"8px"
pr=
"8px"
py=
"0"
py=
"0"
pl=
{
`${ 8 + 8 * level }px`
}
pl=
{
`${ 8 + 8 * level }px`
}
_hover=
{
{
bgColor
:
themeColors
[
'
list.hoverBackground
'
]
}
}
_hover=
{
{
bgColor
:
themeColors
[
'
custom.
list.hoverBackground
'
]
}
}
fontSize=
"13px"
fontSize=
"13px"
lineHeight=
"22px"
lineHeight=
"22px"
h=
"22px"
h=
"22px"
...
@@ -88,7 +88,7 @@ const CodeEditorFileTree = ({ tree, level = 0, onItemClick, isCollapsed, selecte
...
@@ -88,7 +88,7 @@ const CodeEditorFileTree = ({ tree, level = 0, onItemClick, isCollapsed, selecte
alignItems=
"center"
alignItems=
"center"
overflow=
"hidden"
overflow=
"hidden"
_hover=
{
{
_hover=
{
{
bgColor
:
selectedFile
===
leaf
.
file_path
?
themeColors
[
'
list.inactiveSelectionBackground
'
]
:
themeColors
[
'
list.hoverBackground
'
],
bgColor
:
selectedFile
===
leaf
.
file_path
?
themeColors
[
'
list.inactiveSelectionBackground
'
]
:
themeColors
[
'
custom.
list.hoverBackground
'
],
}
}
}
}
bgColor=
{
selectedFile
===
leaf
.
file_path
?
themeColors
[
'
list.inactiveSelectionBackground
'
]
:
'
none
'
}
bgColor=
{
selectedFile
===
leaf
.
file_path
?
themeColors
[
'
list.inactiveSelectionBackground
'
]
:
'
none
'
}
>
>
...
...
ui/shared/monaco/CodeEditorSearchResultItem.tsx
View file @
71df46a8
...
@@ -45,7 +45,7 @@ const CodeEditorSearchResultItem = ({ lineContent, filePath, onClick, startLineN
...
@@ -45,7 +45,7 @@ const CodeEditorSearchResultItem = ({ lineContent, filePath, onClick, startLineN
data
-
line
-
number=
{
startLineNumber
}
data
-
line
-
number=
{
startLineNumber
}
onClick=
{
onClick
}
onClick=
{
onClick
}
transitionDuration=
"0"
transitionDuration=
"0"
_hover=
{
{
bgColor
:
themeColors
[
'
list.hoverBackground
'
]
}
}
_hover=
{
{
bgColor
:
themeColors
[
'
custom.
list.hoverBackground
'
]
}
}
>
>
<
span
>
{
lineContent
.
slice
(
start
,
startColumn
-
1
)
}
</
span
>
<
span
>
{
lineContent
.
slice
(
start
,
startColumn
-
1
)
}
</
span
>
<
chakra
.
span
bgColor=
{
themeColors
[
'
custom.findMatchHighlightBackground
'
]
}
>
<
chakra
.
span
bgColor=
{
themeColors
[
'
custom.findMatchHighlightBackground
'
]
}
>
...
...
ui/shared/monaco/CodeEditorSearchSection.tsx
View file @
71df46a8
...
@@ -35,7 +35,7 @@ const CodeEditorSearchSection = ({ data, onItemClick }: Props) => {
...
@@ -35,7 +35,7 @@ const CodeEditorSearchSection = ({ data, onItemClick }: Props) => {
<
AccordionButton
<
AccordionButton
py=
{
0
}
py=
{
0
}
px=
{
2
}
px=
{
2
}
_hover=
{
{
bgColor
:
themeColors
[
'
list.hoverBackground
'
]
}
}
_hover=
{
{
bgColor
:
themeColors
[
'
custom.
list.hoverBackground
'
]
}
}
fontSize=
"13px"
fontSize=
"13px"
transitionDuration=
"0"
transitionDuration=
"0"
lineHeight=
"22px"
lineHeight=
"22px"
...
...
ui/shared/monaco/utils/themes.ts
View file @
71df46a8
...
@@ -17,7 +17,6 @@ export const light = {
...
@@ -17,7 +17,6 @@ export const light = {
'
input.foreground
'
:
'
#616161
'
,
'
input.foreground
'
:
'
#616161
'
,
'
input.background
'
:
'
#fff
'
,
'
input.background
'
:
'
#fff
'
,
'
list.hoverBackground
'
:
'
rgba(16, 17, 18, 0.08)
'
,
// blackAlpha.200
'
list.inactiveSelectionBackground
'
:
'
#e4e6f1
'
,
'
list.inactiveSelectionBackground
'
:
'
#e4e6f1
'
,
'
breadcrumbs.foreground
'
:
'
rgb(97, 97, 97)
'
,
'
breadcrumbs.foreground
'
:
'
rgb(97, 97, 97)
'
,
...
@@ -29,6 +28,7 @@ export const light = {
...
@@ -29,6 +28,7 @@ export const light = {
focusBorder
:
'
#0090f1
'
,
focusBorder
:
'
#0090f1
'
,
// not able to use rgba for standard variables, so we use custom prefix here
// not able to use rgba for standard variables, so we use custom prefix here
'
custom.list.hoverBackground
'
:
'
rgba(16, 17, 18, 0.08)
'
,
// blackAlpha.200
'
custom.findMatchHighlightBackground
'
:
'
rgba(234,92,0,0.33)
'
,
'
custom.findMatchHighlightBackground
'
:
'
rgba(234,92,0,0.33)
'
,
'
custom.inputOption.activeBackground
'
:
'
rgba(0, 144, 241, 0.2)
'
,
'
custom.inputOption.activeBackground
'
:
'
rgba(0, 144, 241, 0.2)
'
,
'
custom.inputOption.hoverBackground
'
:
'
rgba(184, 184, 184, 0.31)
'
,
'
custom.inputOption.hoverBackground
'
:
'
rgba(184, 184, 184, 0.31)
'
,
...
@@ -57,7 +57,6 @@ export const dark = {
...
@@ -57,7 +57,6 @@ export const dark = {
'
input.foreground
'
:
'
#cccccc
'
,
'
input.foreground
'
:
'
#cccccc
'
,
'
input.background
'
:
'
#3c3c3c
'
,
'
input.background
'
:
'
#3c3c3c
'
,
'
list.hoverBackground
'
:
'
rgba(255, 255, 255, 0.08)
'
,
// whiteAlpha.200
'
list.inactiveSelectionBackground
'
:
'
#37373d
'
,
'
list.inactiveSelectionBackground
'
:
'
#37373d
'
,
'
badge.background
'
:
'
#4d4d4d
'
,
'
badge.background
'
:
'
#4d4d4d
'
,
...
@@ -69,6 +68,7 @@ export const dark = {
...
@@ -69,6 +68,7 @@ export const dark = {
focusBorder
:
'
#007fd4
'
,
focusBorder
:
'
#007fd4
'
,
// not able to use rgba for standard variables, so we use custom prefix here
// not able to use rgba for standard variables, so we use custom prefix here
'
custom.list.hoverBackground
'
:
'
rgba(255, 255, 255, 0.08)
'
,
// whiteAlpha.200
'
custom.findMatchHighlightBackground
'
:
'
rgba(234,92,0,0.33)
'
,
'
custom.findMatchHighlightBackground
'
:
'
rgba(234,92,0,0.33)
'
,
'
custom.inputOption.activeBackground
'
:
'
rgba(0, 127, 212, 0.4)
'
,
'
custom.inputOption.activeBackground
'
:
'
rgba(0, 127, 212, 0.4)
'
,
'
custom.inputOption.hoverBackground
'
:
'
rgba(90, 93, 94, 0.31)
'
,
'
custom.inputOption.hoverBackground
'
:
'
rgba(90, 93, 94, 0.31)
'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment