mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-06-05 21:38:50 +00:00
Improve indentation level design for indentations level > 1 (#1695)
This commit is contained in:
parent
94670762a4
commit
69d5f265fe
1 changed files with 2 additions and 1 deletions
|
@ -34,11 +34,12 @@ public struct StatusRowView: View {
|
||||||
HStack(spacing: 0) {
|
HStack(spacing: 0) {
|
||||||
if !isCompact {
|
if !isCompact {
|
||||||
HStack(spacing: 3) {
|
HStack(spacing: 3) {
|
||||||
ForEach(0..<indentationLevel, id: \.self) {_ in
|
ForEach(0..<indentationLevel, id: \.self) { level in
|
||||||
Rectangle()
|
Rectangle()
|
||||||
.fill(theme.tintColor)
|
.fill(theme.tintColor)
|
||||||
.frame(width: 2)
|
.frame(width: 2)
|
||||||
.accessibilityHidden(true)
|
.accessibilityHidden(true)
|
||||||
|
.opacity((indentationLevel == level + 1) ? 1 : 0.15)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if indentationLevel > 0 {
|
if indentationLevel > 0 {
|
||||||
|
|
Loading…
Reference in a new issue