summaryrefslogtreecommitdiff
path: root/menu
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-04-17 01:05:21 +0200
committerewy <ewy0@protonmail.com>2026-04-17 01:05:21 +0200
commit8909e1fa0c0b1a1f9b3b0d963db4caf2d9d7729f (patch)
treee3b0f4dfda160b432b07c0be2733aaeb03c8f4f2 /menu
parentd050bb04ea088e9494092156fffafc331917eff6 (diff)
use shared icon method
Diffstat (limited to 'menu')
-rw-r--r--menu/source.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/menu/source.go b/menu/source.go
index 320a117..b5d462b 100644
--- a/menu/source.go
+++ b/menu/source.go
@@ -23,11 +23,6 @@ var (
return st
})
- SourceIconStyle = style.New(func() lipgloss.Style {
- st := lipgloss.NewStyle().PaddingRight(1).Width(3)
- return st
-
- })
SourceTargetsStyle = style.New(func() lipgloss.Style {
st := lipgloss.NewStyle()
return st
@@ -46,7 +41,7 @@ func (m *Model) Source(src *model.HydratedSource) string {
targetContent := lipgloss.JoinVertical(lipgloss.Top, targets...)
- icon := SourceIconStyle.Render(src.Icon)
+ icon := PaddedIcon(src.Icon)
parts := []string{
SourceHeaderStyle.Render(lipgloss.JoinHorizontal(lipgloss.Left, SourceLabelStyle.Render(lipgloss.JoinHorizontal(lipgloss.Left, icon, src.Label()), SourcePathStyle.Render(src.ShortPath())))),