Skip to content

Commit fd5646c

Browse files
authored
Merge pull request #5888 from continuedev/dallin/jetbrains-hover-colors
Improve selected jetbrains theme colors
2 parents 1e73600 + 3503428 commit fd5646c

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/GetTheme.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,18 +132,18 @@ class GetTheme {
132132
val inputPlaceholder = namedColor("TextField.inactiveForeground")
133133

134134
val listHoverBackground = namedColor("List.hoverBackground") ?: slightChange(background)
135-
val actionHoverBackground = namedColor("ActionButton.hoverBackground") ?: namedColor("Button.darcula.hoverBackground")
135+
val listHoverForeground = namedColor("List.hoverForeground") ?: slightChange(foreground)
136136

137-
val tableOddRow = namedColor("Table.hoverBackground") ?: namedColor("Table.stripeColor")
138-
val listSelectionForeground = namedColor("List.selectionForeground")
137+
val tableOddRow = namedColor("Table.hoverBackground") ?: namedColor("Table.stripeColor")
139138

140-
val description = namedColor("Label.disabledForeground") ?: namedColor("Label.infoForeground")
139+
val description = namedColor("Label.infoForeground") ?: namedColor("Label.disabledForeground") ?: foreground
141140

142141
val mutedDescription = namedColor("Component.infoForeground")
143142
?: namedColor("ContextHelp.foreground")
144143
?: namedColor("TextField.placeholderForeground")
145144
?: namedColor("Label.disabledForeground")
146145
?: namedColor("ToolTip.foreground")
146+
?: description
147147

148148
val link = namedColor("Link.activeForeground")
149149

@@ -201,8 +201,8 @@ class GetTheme {
201201
"find-match" to findMatchBackground,
202202
"find-match-selected" to findMatchSelectedBackground,
203203
"list-hover" to listHoverBackground,
204-
"list-active" to actionHoverBackground,
205-
"list-active-foreground" to listSelectionForeground
204+
"list-active" to listHoverBackground,
205+
"list-active-foreground" to listHoverForeground
206206
).mapValues { toHex(it.value) }
207207
return theme
208208
} catch (error: Error) {

gui/src/components/ModeSelect/ModeSelect.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export function ModeSelect() {
7272
<div className="relative">
7373
<ListboxButton
7474
data-testid="mode-select-button"
75-
className="xs:px-2 text-description-muted bg-table-oddRow gap-1 rounded-full border-none px-1.5 py-0.5 transition-colors duration-200 hover:brightness-110"
75+
className="xs:px-2 text-description gap-1 rounded-full border-none px-1.5 py-0.5 transition-colors duration-200 hover:brightness-110"
7676
>
7777
<ModeIcon mode={mode} />
7878
<span className="hidden sm:block">

gui/src/components/ui/Listbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const ListboxOption = React.forwardRef<HTMLLIElement, ListboxOptionProps>(
7272
ref={ref}
7373
{...props}
7474
className={cn(
75-
"text-vsc-foreground flex select-none flex-row items-center justify-between px-2 py-1",
75+
"text-foreground flex select-none flex-row items-center justify-between px-2 py-1",
7676
props.disabled
7777
? "opacity-50"
7878
: "background-transparent hover:bg-list-active hover:text-list-active-foreground cursor-pointer opacity-100",

0 commit comments

Comments
 (0)