add support for images (#144)

This commit is contained in:
phantomreactor
2025-05-02 22:23:58 +02:00
committed by GitHub
parent 603a3e3c71
commit 9fec8df7d0
30 changed files with 1326 additions and 484 deletions
+9 -8
View File
@@ -3,11 +3,12 @@ package styles
const (
OpenCodeIcon string = "⌬"
CheckIcon string = "✓"
ErrorIcon string = "✖"
WarningIcon string = "⚠"
InfoIcon string = ""
HintIcon string = "i"
SpinnerIcon string = "..."
LoadingIcon string = "⟳"
)
CheckIcon string = "✓"
ErrorIcon string = "✖"
WarningIcon string = "⚠"
InfoIcon string = ""
HintIcon string = "i"
SpinnerIcon string = "..."
LoadingIcon string = "⟳"
DocumentIcon string = "🖼"
)
+4 -1
View File
@@ -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
@@ -149,4 +153,3 @@ func BorderFocusedColor() lipgloss.AdaptiveColor {
func BorderDimColor() lipgloss.AdaptiveColor {
return theme.CurrentTheme().BorderDim()
}