Skip to content

Commit

Permalink
Merge remote-tracking branch 'zavok/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Aug 2, 2021
2 parents d936baf + f3a70fb commit 6d8b34d
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ui/fuzzy-search-modal.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func NewFuzzySearchModal(mainView *MainView, width int, height int) *FuzzySearch
fs.results = mauview.NewTextView().SetRegions(true)
fs.search = mauview.NewInputArea().
SetChangedFunc(fs.changeHandler).
SetTextColor(tcell.ColorWhite).
SetTextColor(tcell.ColorDefault).
SetBackgroundColor(tcell.ColorDarkCyan)
fs.search.Focus()

Expand Down
3 changes: 2 additions & 1 deletion ui/help-modal.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ func NewHelpModal(parent *MainView) *HelpModal {
text := mauview.NewTextView().
SetText(helpText).
SetScrollable(true).
SetWrap(false)
SetWrap(false).
SetTextColor(tcell.ColorDefault)

box := mauview.NewBox(text).
SetBorder(true).
Expand Down
2 changes: 1 addition & 1 deletion ui/member-list.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (ml *MemberList) Update(data map[id.UserID]*rooms.Member, levels *event.Pow

func (ml *MemberList) Draw(screen mauview.Screen) {
width, _ := screen.Size()
sigilStyle := tcell.StyleDefault.Background(tcell.ColorGreen).Foreground(tcell.ColorWhite)
sigilStyle := tcell.StyleDefault.Background(tcell.ColorGreen).Foreground(tcell.ColorDefault)
for y, member := range ml.list {
if member.Sigil != ' ' {
screen.SetCell(0, y, sigilStyle, member.Sigil)
Expand Down
4 changes: 2 additions & 2 deletions ui/room-list.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ func NewRoomList(parent *MainView) *RoomList {

scrollOffset: 0,

mainTextColor: tcell.ColorWhite,
selectedTextColor: tcell.ColorWhite,
mainTextColor: tcell.ColorDefault,
selectedTextColor: tcell.ColorDefault,
selectedBackgroundColor: tcell.ColorDarkGreen,
}
for _, tag := range list.tags {
Expand Down
3 changes: 2 additions & 1 deletion ui/room-view.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ func NewRoomView(parent *MainView, room *rooms.Room) *RoomView {
view.Room.SetPostLoad(view.loadTyping)

view.input.
SetTextColor(tcell.ColorDefault).
SetBackgroundColor(tcell.ColorDefault).
SetPlaceholder("Send a message...").
SetPlaceholderTextColor(tcell.ColorGray).
Expand All @@ -129,7 +130,7 @@ func NewRoomView(parent *MainView, room *rooms.Room) *RoomView {
}

view.topic.
SetTextColor(tcell.ColorWhite).
SetTextColor(tcell.ColorDefault).
SetBackgroundColor(tcell.ColorDarkGreen)

view.status.SetBackgroundColor(tcell.ColorDimGray)
Expand Down
4 changes: 2 additions & 2 deletions ui/verification-modal.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func NewVerificationModal(mainView *MainView, device *crypto.DeviceIdentity, tim

vm.inputBar = mauview.NewInputField().
SetBackgroundColor(tcell.ColorDefault).
SetPlaceholderTextColor(tcell.ColorWhite)
SetPlaceholderTextColor(tcell.ColorDefault)

flex := mauview.NewFlex().
SetDirection(mauview.FlexRow).
Expand Down Expand Up @@ -163,7 +163,7 @@ func (vm *VerificationModal) VerifySASMatch(device *crypto.DeviceIdentity, data
"same %s as below, then type \"yes\" to\n"+
"accept, or \"no\" to reject", typeName))
vm.inputBar.
SetTextColor(tcell.ColorWhite).
SetTextColor(tcell.ColorDefault).
SetBackgroundColor(tcell.ColorDarkCyan).
SetPlaceholder("Type \"yes\" or \"no\"").
Focus()
Expand Down

0 comments on commit 6d8b34d

Please sign in to comment.