Update tcell

This commit is contained in:
Tulir Asokan
2022-04-15 12:53:09 +03:00
parent a7562a068a
commit 899bdbc705
51 changed files with 143 additions and 128 deletions
+2 -2
View File
@@ -18,8 +18,8 @@ package html
import (
"fmt"
"maunium.net/go/mauview"
"maunium.net/go/tcell"
"go.mau.fi/mauview"
"go.mau.fi/tcell"
)
type BaseEntity struct {
+1 -1
View File
@@ -20,7 +20,7 @@ import (
"fmt"
"strings"
"maunium.net/go/mauview"
"go.mau.fi/mauview"
)
type BlockquoteEntity struct {
+1 -1
View File
@@ -17,7 +17,7 @@
package html
import (
"maunium.net/go/mauview"
"go.mau.fi/mauview"
)
type BreakEntity struct {
+2 -2
View File
@@ -17,8 +17,8 @@
package html
import (
"maunium.net/go/mauview"
"maunium.net/go/tcell"
"go.mau.fi/mauview"
"go.mau.fi/tcell"
)
type CodeBlockEntity struct {
+1 -1
View File
@@ -20,7 +20,7 @@ import (
"fmt"
"strings"
"maunium.net/go/mauview"
"go.mau.fi/mauview"
)
type ContainerEntity struct {
+2 -2
View File
@@ -17,8 +17,8 @@
package html
import (
"maunium.net/go/mauview"
"maunium.net/go/tcell"
"go.mau.fi/mauview"
"go.mau.fi/tcell"
)
// AdjustStyleFunc is a lambda function type to edit an existing tcell Style.
+1 -1
View File
@@ -19,7 +19,7 @@ package html
import (
"strings"
"maunium.net/go/mauview"
"go.mau.fi/mauview"
)
type HorizontalLineEntity struct {
+2 -1
View File
@@ -21,8 +21,9 @@ import (
"math"
"strings"
"go.mau.fi/mauview"
"maunium.net/go/gomuks/ui/widget"
"maunium.net/go/mauview"
)
type ListEntity struct {
+3 -3
View File
@@ -28,11 +28,11 @@ import (
"github.com/lucasb-eyer/go-colorful"
"golang.org/x/net/html"
"go.mau.fi/tcell"
"maunium.net/go/mautrix/event"
"maunium.net/go/mautrix/id"
"maunium.net/go/tcell"
"maunium.net/go/gomuks/config"
"maunium.net/go/gomuks/matrix/rooms"
"maunium.net/go/gomuks/ui/widget"
@@ -60,7 +60,7 @@ func AdjustStyleUnderline(style tcell.Style) tcell.Style {
}
func AdjustStyleStrikethrough(style tcell.Style) tcell.Style {
return style.Strikethrough(true)
return style.StrikeThrough(true)
}
func AdjustStyleTextColor(color tcell.Color) func(tcell.Style) tcell.Style {
+2 -1
View File
@@ -22,8 +22,9 @@ import (
"github.com/mattn/go-runewidth"
"go.mau.fi/mauview"
"maunium.net/go/gomuks/ui/widget"
"maunium.net/go/mauview"
)
type TextEntity struct {