Skip to content

Commit 7bf337b

Browse files
Tweak text selection BGs (#3181)
Fixes #3179 Message: <img width="491" height="124" alt="image" src="https://github.com/user-attachments/assets/3ac373bc-e422-4cf7-83f0-2d1d470f3971" /> <img width="485" height="116" alt="image" src="https://github.com/user-attachments/assets/8006e0b0-56d4-402c-bd7f-961105546095" /> Terminal: <img width="678" height="261" alt="image" src="https://github.com/user-attachments/assets/2bf46c10-269a-4c71-977a-0b5b4d06667d" /> <img width="669" height="257" alt="image" src="https://github.com/user-attachments/assets/e950d2d0-ee06-44d0-a707-c78f29aac24a" />
1 parent a3b4757 commit 7bf337b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/components/Terminal.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ function getTheme(): ITerminalOptions['theme'] {
3838
brightCyan: style.getPropertyValue('--content-accent'),
3939
magenta: style.getPropertyValue('--content-accent-alt-secondary'),
4040
brightMagenta: style.getPropertyValue('--content-accent-alt'),
41+
selectionBackground: style.getPropertyValue('--surface-accent'),
4142
cursor: style.getPropertyValue('--content-default'),
4243
cursorAccent: style.getPropertyValue('--surface-default'),
4344
}

app/ui/styles/index.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@
7575

7676
::-moz-selection {
7777
/* Code for Firefox */
78-
@apply text-accent bg-accent;
78+
@apply bg-accent-inverse/30;
7979
}
8080

8181
::selection {
82-
@apply text-accent bg-accent;
82+
@apply bg-accent-inverse/30;
8383
}
8484

8585
@custom-variant selected {

0 commit comments

Comments
 (0)