From ff0ef3bb432f1cedb6e5b8a0168bfa7c9e9e15f0 Mon Sep 17 00:00:00 2001 From: phantomreactor Date: Sat, 3 May 2025 01:53:58 +0530 Subject: feat: add support for images --- internal/tui/styles/icons.go | 11 ++++++----- internal/tui/styles/styles.go | 4 ++++ 2 files changed, 10 insertions(+), 5 deletions(-) (limited to 'internal/tui/styles') diff --git a/internal/tui/styles/icons.go b/internal/tui/styles/icons.go index 8a49fce80..684ca7152 100644 --- a/internal/tui/styles/icons.go +++ b/internal/tui/styles/icons.go @@ -3,11 +3,12 @@ package styles const ( OpenCodeIcon string = "ⓒ" - ErrorIcon string = "ⓧ" - WarningIcon string = "ⓦ" - InfoIcon string = "ⓘ" - HintIcon string = "ⓗ" - SpinnerIcon string = "⟳" + ErrorIcon string = "ⓧ" + WarningIcon string = "ⓦ" + InfoIcon string = "ⓘ" + HintIcon string = "ⓗ" + SpinnerIcon string = "⟳" + DocumentIcon string = "🖼" ) // CircledDigit returns the Unicode circled digit/number for 0‑20. diff --git a/internal/tui/styles/styles.go b/internal/tui/styles/styles.go index b2d83a523..b70aec4c7 100644 --- a/internal/tui/styles/styles.go +++ b/internal/tui/styles/styles.go @@ -5,6 +5,10 @@ import ( "github.com/opencode-ai/opencode/internal/tui/theme" ) +var ( + ImageBakcground = "#212121" +) + // Style generation functions that use the current theme // BaseStyle returns the base style with background and foreground colors -- cgit v1.2.3