mirror of
https://github.com/mrusme/neonmodem.git
synced 2025-01-03 14:56:41 -05:00
Added workaround for #14, made shadow configurable
This commit is contained in:
parent
7888c8b616
commit
8b67c02cc0
@ -43,7 +43,8 @@ type Config struct {
|
|||||||
Log string
|
Log string
|
||||||
Proxy string
|
Proxy string
|
||||||
|
|
||||||
RenderImages bool
|
RenderShadows bool
|
||||||
|
RenderImages bool
|
||||||
|
|
||||||
Systems []SystemConfig
|
Systems []SystemConfig
|
||||||
|
|
||||||
@ -188,6 +189,7 @@ func SetDefaults(cacheDir string) {
|
|||||||
viper.SetDefault("Log", path.Join(cacheDir, "neonmodem.log"))
|
viper.SetDefault("Log", path.Join(cacheDir, "neonmodem.log"))
|
||||||
viper.SetDefault("Proxy", "")
|
viper.SetDefault("Proxy", "")
|
||||||
|
|
||||||
|
viper.SetDefault("RenderShadows", "true")
|
||||||
viper.SetDefault("RenderImages", "true")
|
viper.SetDefault("RenderImages", "true")
|
||||||
|
|
||||||
// --- Header ---
|
// --- Header ---
|
||||||
|
2
go.mod
2
go.mod
@ -9,6 +9,7 @@ require (
|
|||||||
github.com/charmbracelet/bubbletea v0.23.1
|
github.com/charmbracelet/bubbletea v0.23.1
|
||||||
github.com/charmbracelet/glamour v0.6.0
|
github.com/charmbracelet/glamour v0.6.0
|
||||||
github.com/charmbracelet/lipgloss v0.6.0
|
github.com/charmbracelet/lipgloss v0.6.0
|
||||||
|
github.com/eliukblau/pixterm v1.3.1
|
||||||
github.com/google/uuid v1.3.0
|
github.com/google/uuid v1.3.0
|
||||||
github.com/hashicorp/go-retryablehttp v0.7.2
|
github.com/hashicorp/go-retryablehttp v0.7.2
|
||||||
github.com/hermanschaaf/hackernews v1.0.1
|
github.com/hermanschaaf/hackernews v1.0.1
|
||||||
@ -37,7 +38,6 @@ require (
|
|||||||
github.com/containerd/console v1.0.3 // indirect
|
github.com/containerd/console v1.0.3 // indirect
|
||||||
github.com/disintegration/imaging v1.6.2 // indirect
|
github.com/disintegration/imaging v1.6.2 // indirect
|
||||||
github.com/dlclark/regexp2 v1.7.0 // indirect
|
github.com/dlclark/regexp2 v1.7.0 // indirect
|
||||||
github.com/eliukblau/pixterm v1.3.1 // indirect
|
|
||||||
github.com/fsnotify/fsnotify v1.6.0 // indirect
|
github.com/fsnotify/fsnotify v1.6.0 // indirect
|
||||||
github.com/google/go-querystring v1.1.0 // indirect
|
github.com/google/go-querystring v1.1.0 // indirect
|
||||||
github.com/gorilla/css v1.0.0 // indirect
|
github.com/gorilla/css v1.0.0 // indirect
|
||||||
|
@ -213,7 +213,7 @@ func (wm *WM) View(view string, onlyFocused bool) string {
|
|||||||
wm.stack[i].XYWH[1]+(wm.ctx.Screen[1]-wm.ctx.Content[1]),
|
wm.stack[i].XYWH[1]+(wm.ctx.Screen[1]-wm.ctx.Content[1]),
|
||||||
wm.stack[i].Win.View(),
|
wm.stack[i].Win.View(),
|
||||||
v,
|
v,
|
||||||
true,
|
wm.ctx.Config.RenderShadows,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user