Enable and disable nav buttons based on pane's navigation stack

Also, make the `NavHistory` type private to the `workspace` crate.
Expose only the `ItemNavHistory` type, via a method on Pane called
`nav_history_for_item`.
This commit is contained in:
Max Brunsfeld
2022-07-06 15:46:43 -07:00
parent 7e5cf6669f
commit a378ec49ec
6 changed files with 163 additions and 100 deletions
+4 -2
View File
@@ -140,13 +140,15 @@ export default function workspace(theme: Theme) {
border: border(theme, "secondary", { bottom: true }),
itemSpacing: 8,
navButton: {
color: iconColor(theme, "secondary"),
color: iconColor(theme, "primary"),
iconWidth: 8,
buttonWidth: 12,
margin: { left: 8, right: 8 },
hover: {
color: iconColor(theme, "active"),
},
disabled: {
color: iconColor(theme, "muted")
}
},
padding: { left: 16, right: 8, top: 4, bottom: 4 },
},