mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-27 02:07:14 +03:00
Added explorer selection highlight
This commit is contained in:
parent
54489f9986
commit
38d8812c60
@ -83,7 +83,15 @@ view ctx model =
|
||||
ctx.explorerActive
|
||||
model.explorer
|
||||
|
||||
in (highlightedTermLayout, explorerLayout)
|
||||
explorerHighlight : Element
|
||||
explorerHighlight =
|
||||
Selection1D.view Styles.explorerSelection explorerLayout model.explorerSelection
|
||||
|
||||
highlightedExplorerLayout : Layout (Result Containment Int)
|
||||
highlightedExplorerLayout =
|
||||
Layout.transform (\e -> Element.layers [e, explorerHighlight]) explorerLayout
|
||||
|
||||
in (highlightedTermLayout, highlightedExplorerLayout)
|
||||
--
|
||||
-- viewExplorer : Model -> Layout
|
||||
-- view : Int -> Term -> Layout View.L
|
||||
|
Loading…
Reference in New Issue
Block a user