Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Binary name
BINARY_NAME=lazyprisma
VERSION ?= 0.3.1
VERSION ?= 0.3.2

# Directories
BUILD_DIR=build
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
)

const (
Version = "v0.3.1"
Version = "v0.3.2"
Developer = "DokaLab"
)

Expand Down
10 changes: 9 additions & 1 deletion pkg/gui/context/output_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,15 @@ func (o *OutputContext) Draw(dim boxlayout.Dimensions) error {
o.ScrollableTrait.SetView(v) // ScrollableTrait
o.setupView(v)

// Frame colours based on focus (set after Clear to persist through render)
if o.IsFocused() {
v.FrameColor = style.FocusedFrameColor
v.TitleColor = style.FocusedTitleColor
} else {
v.FrameColor = style.PrimaryFrameColor
v.TitleColor = style.PrimaryTitleColor
}

v.Subtitle = o.subtitle
v.Wrap = true
fmt.Fprint(v, o.content)
Expand Down Expand Up @@ -99,7 +108,6 @@ func (o *OutputContext) setupView(v *gocui.View) {
v.Frame = true
v.Title = o.tr.PanelTitleOutput
v.FrameRunes = style.DefaultFrameRunes
o.ApplyFocusStyle()
}

// AppendOutput appends text to the output buffer and flags auto-scroll
Expand Down
10 changes: 9 additions & 1 deletion pkg/gui/context/workspace_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,15 @@ func (w *WorkspaceContext) Draw(dim boxlayout.Dimensions) error {
w.ScrollableTrait.SetView(v) // ScrollableTrait
w.setupView(v)

// Frame colours based on focus (set after Clear to persist through render)
if w.IsFocused() {
v.FrameColor = style.FocusedFrameColor
v.TitleColor = style.FocusedTitleColor
} else {
v.FrameColor = style.PrimaryFrameColor
v.TitleColor = style.PrimaryTitleColor
}

v.Wrap = true // Enable word wrap

// Build content from fields
Expand Down Expand Up @@ -144,7 +153,6 @@ func (w *WorkspaceContext) setupView(v *gocui.View) {
v.Frame = true
v.Title = w.tr.PanelTitleWorkspace
v.FrameRunes = style.DefaultFrameRunes
w.ApplyFocusStyle()
}

// Refresh reloads all workspace information
Expand Down