Theme the scrollbars
OpenTUI's default track is a fixed dark grey, which showed as a dark strip in the light and terminal themes.
This commit is contained in:
1 parent
ffade010a2
commit
3bc5f61704
6 files changed
+25
-8
No files matched your search
@@ -3,7 +3,7 @@ import type { ReactNode } from "react";
|
||||
import { MAX_DETAIL_FILES, type ChangedFile, type DetailsAction, type DetailsFold, type LineageLine, type ThreadDetails } from "../model/details.ts";
|
||||
import { Button, ClickRow } from "./Button.tsx";
|
||||
import { truncate } from "./text.ts";
|
||||
import { colors, statusColor } from "./theme.ts";
|
||||
import { colors, scrollbarOptions, statusColor } from "./theme.ts";
|
||||
|
||||
/** Rows stay readable when the panel takes the conversation's place on a narrow terminal. */
|
||||
const IN_PLACE_MAX_WIDTH = 64;
|
||||
@@ -46,7 +46,7 @@ export function DetailsPanel(props: {
|
||||
overflow="hidden"
|
||||
backgroundColor={colors.panel}
|
||||
>
|
||||
<scrollbox flexGrow={1} minHeight={0} paddingLeft={1} paddingRight={1}>
|
||||
<scrollbox flexGrow={1} minHeight={0} paddingLeft={1} paddingRight={1} scrollbarOptions={scrollbarOptions()}>
|
||||
{!details ? (
|
||||
<text fg={colors.faint}>{props.empty ?? "No thread selected."}</text>
|
||||
) : (
|
||||
|
||||
Reference in new issue
Block a user