fix(ui): keep theme text and selections readable (#6226)
* fix(ui): keep theme text and selections readable * fix(tui): theme the blank composer cursor cell * refactor(webui): centralize diff theme colors * fix(tui): keep conversation selections readable * fix(ui): preserve nested syntax colors and selection lifetimes
This commit is contained in:
1 parent
73c2441abc
commit
c24153db86
32 files changed
+451
-165
No files matched your search
@@ -24,6 +24,8 @@ export interface DiffViewerTheme {
|
||||
error: ColorInput
|
||||
addedBackground: ColorInput | null
|
||||
removedBackground: ColorInput | null
|
||||
selectionBackground: ColorInput
|
||||
selectionForeground: ColorInput
|
||||
syntax: SyntaxStyle
|
||||
}
|
||||
|
||||
@@ -295,8 +297,8 @@ export class DiffViewer {
|
||||
removedLineNumberBg: this.theme.removedBackground || RGBA.defaultBackground(),
|
||||
addedSignColor: this.theme.success,
|
||||
removedSignColor: this.theme.error,
|
||||
selectionBg: this.theme.border,
|
||||
selectionFg: this.theme.text,
|
||||
selectionBg: this.theme.selectionBackground,
|
||||
selectionFg: this.theme.selectionForeground,
|
||||
}))
|
||||
if (edit.diff?.truncated) {
|
||||
this.scroll.add(this.text("… Diff truncated by the gateway; line counts may be larger.", "accent"))
|
||||
|
||||
Reference in new issue
Block a user