Skip to content

Commit 340b402

Browse files
committed
Upgrade to cview v1.6.2
1 parent 4d9a5c5 commit 340b402

File tree

15 files changed

+162
-555
lines changed

15 files changed

+162
-555
lines changed

NOTES.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
## Upstream Bugs
77
- Bookmark keys aren't deleted, just set to `""`
88
- Waiting on [this viper PR](https://github.com/spf13/viper/pull/519) to be merged
9-
- [ANSI conversion is messed up](https://code.rocketnine.space/tslocum/cview/issues/48)
10-
- [WordWrap is broken in some cases](https://code.rocketnine.space/tslocum/cview/issues/27) - close #156 if this is fixed
11-
- [Prevent panic when reformatting](https://code.rocketnine.space/tslocum/cview/issues/50) - can't reliably reproduce or debug
12-
- [Unicode bullet symbol mask causes issues with PasswordInput](https://code.rocketnine.space/tslocum/cview/issues/55)
9+
- [ANSI conversion is messed up](https://codeberg.org/tslocum/cview/issues/48)
10+
- [WordWrap is broken in some cases](https://codeberg.org/tslocum/cview/issues/27) - close #156 if this is fixed
11+
- [Prevent panic when reformatting](https://codeberg.org/tslocum/cview/issues/50) - can't reliably reproduce or debug
12+
- [Unicode bullet symbol mask causes issues with PasswordInput](https://codeberg.org/tslocum/cview/issues/55)
1313

1414

1515
## Upstream PRs

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ Please see [the wiki](https://github.com/makeworld-the-better-one/amfora/wiki) f
152152
## Libraries
153153
Amfora ❤️ open source!
154154

155-
- [cview](https://code.rocketnine.space/tslocum/cview) for the TUI
155+
- [cview](https://codeberg.org/tslocum/cview) for the TUI
156156
- It's a fork of [tview](https://github.com/rivo/tview) with PRs merged and active support
157157
- It uses [tcell](https://github.com/gdamore/tcell) for low level terminal operations
158158
- [Viper](https://github.com/spf13/viper) for configuration and TOFU storing

THANKS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Thank you to the following contributors, who have helped make Amfora great. FOSS
1010
* Timur Ismagilov (@bouncepaw)
1111
* Matt Caroll (@ohiolab)
1212
* Patryk Niedźwiedziński (@pniedzwiedzinski)
13-
* Trevor Slocum (@tsclocum)
13+
* Trevor Slocum (@tslocum)
1414
* Mattias Jadelius (@jedthehumanoid)
1515
* Lokesh Krishna (@lokesh-krishna)
1616
* Jeff (@phaedrus-jaf)

config/config.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Package config initializes all files required for Amfora, even those used by
22
// other packages. It also reads in the config file and initializes a Viper and
33
// the theme
4+
//
45
//nolint:golint,goerr113
56
package config
67

@@ -11,7 +12,7 @@ import (
1112
"runtime"
1213
"strings"
1314

14-
"code.rocketnine.space/tslocum/cview"
15+
"codeberg.org/tslocum/cview"
1516
"github.com/gdamore/tcell/v2"
1617
"github.com/makeworld-the-better-one/amfora/cache"
1718
homedir "github.com/mitchellh/go-homedir"

config/keybindings.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package config
33
import (
44
"strings"
55

6-
"code.rocketnine.space/tslocum/cview"
6+
"codeberg.org/tslocum/cview"
77
"github.com/gdamore/tcell/v2"
88
"github.com/spf13/viper"
99
)

display/bookmarks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"regexp"
66
"strings"
77

8-
"code.rocketnine.space/tslocum/cview"
8+
"codeberg.org/tslocum/cview"
99
"github.com/gdamore/tcell/v2"
1010
"github.com/makeworld-the-better-one/amfora/bookmarks"
1111
"github.com/makeworld-the-better-one/amfora/config"

display/display.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"strconv"
88
"strings"
99

10-
"code.rocketnine.space/tslocum/cview"
10+
"codeberg.org/tslocum/cview"
1111
"github.com/gdamore/tcell/v2"
1212
"github.com/makeworld-the-better-one/amfora/cache"
1313
"github.com/makeworld-the-better-one/amfora/client"
@@ -110,9 +110,11 @@ func Init(version, commit, builtBy string) {
110110

111111
if viper.GetBool("a-general.color") {
112112
bottomBar.SetBackgroundColor(config.GetColor("bottombar_bg"))
113+
bottomBar.SetFieldBackgroundColorFocused(config.GetColor("bottombar_bg"))
113114
bottomBar.SetLabelColor(config.GetColor("bottombar_label"))
114115
bottomBar.SetFieldBackgroundColor(config.GetColor("bottombar_bg"))
115116
bottomBar.SetFieldTextColor(config.GetColor("bottombar_text"))
117+
bottomBar.SetFieldTextColorFocused(config.GetColor("bottombar_text"))
116118

117119
browser.SetTabBackgroundColor(config.GetColor("bg"))
118120
browser.SetTabBackgroundColorFocused(config.GetColor("tab_num"))

display/download.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"strings"
1515
"time"
1616

17-
"code.rocketnine.space/tslocum/cview"
17+
"codeberg.org/tslocum/cview"
1818
"github.com/gdamore/tcell/v2"
1919
"github.com/makeworld-the-better-one/amfora/config"
2020
"github.com/makeworld-the-better-one/amfora/structs"

display/help.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"strings"
66
"text/tabwriter"
77

8-
"code.rocketnine.space/tslocum/cview"
8+
"codeberg.org/tslocum/cview"
99
"github.com/gdamore/tcell/v2"
1010
"github.com/makeworld-the-better-one/amfora/config"
1111
)

display/modals.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"strings"
66
"time"
77

8-
"code.rocketnine.space/tslocum/cview"
8+
"codeberg.org/tslocum/cview"
99
humanize "github.com/dustin/go-humanize"
1010
"github.com/gdamore/tcell/v2"
1111
"github.com/makeworld-the-better-one/amfora/config"

0 commit comments

Comments
 (0)