Skip to content

Commit

Permalink
fix dex order form
Browse files Browse the repository at this point in the history
- Don't read feed channel from pg.selectedMarketOrderbook
- Remove unused code
- Calculate dex order by lot

Signed-off-by: Philemon Ukane <ukanephilemon@gmail.com>
  • Loading branch information
ukane-philemon committed Oct 19, 2024
1 parent 158a43c commit 1aafc71
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 168 deletions.
10 changes: 9 additions & 1 deletion ui/cryptomaterial/editor.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,10 @@ func (e *Editor) FirstPressed(gtx C) bool {

}

func (e *Editor) IsFocused() bool {
return e.focused
}

func (e *Editor) SetFocus() {
e.isFirstFocus = true
}
Expand Down Expand Up @@ -289,8 +293,12 @@ func (e *Editor) layout(gtx C) D {

focused := gtx.Source.Focused(e.Editor)
if focused {
// Only non-read only editors should indicate an active state on focus.
if !e.Editor.ReadOnly {
e.LineColor = e.t.Color.Primary
}
e.TitleLabel.Color = e.t.Color.Primary
e.TitleLabel.Text = e.Hint
e.TitleLabel.Color, e.LineColor = e.t.Color.Primary, e.t.Color.Primary
if !e.showHintOnFocus {
e.Hint = ""
}
Expand Down
Loading

0 comments on commit 1aafc71

Please sign in to comment.