Skip to content

Commit

Permalink
smaller Scale change panel
Browse files Browse the repository at this point in the history
  • Loading branch information
mountrcg committed Nov 29, 2023
1 parent f017af3 commit 5a7b113
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions FreeAPS/Sources/Modules/Home/View/HomeRootView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -370,18 +370,35 @@ extension Home {
state.hours = button.hours
highlightButtons()
}
.foregroundStyle(button.active ? .primary : .secondary)
.frame(maxHeight: 20).padding(.horizontal)
.background(button.active ? Color(.systemGray5) : .clear, in: .capsule(style: .circular))
.foregroundStyle(button.active ? (colorScheme == .dark ? Color.white : Color.black).opacity(0.9) : .secondary)
.frame(maxHeight: 20).padding(.horizontal, 8)
.background(
button
.active ?
(
colorScheme == .dark ? Color(red: 0.1176470588, green: 0.2352941176, blue: 0.3725490196) : Color
.white
) :
Color
.clear
)
.cornerRadius(20)
}
Image(systemName: "ellipsis.circle.fill")
.foregroundStyle(.secondary)
.padding(.leading)
.foregroundStyle(
(colorScheme == .dark ? Color.white : Color.black).opacity(0.9),
colorScheme == .dark ? Color(red: 0.1176470588, green: 0.2352941176, blue: 0.3725490196) : Color.white
)
// .padding(.leading)
.onTapGesture {
state.showModal(for: .statisticsConfig)
}
}
.font(buttonFont)
.shadow(
color: Color.black.opacity(colorScheme == .dark ? 0.75 : 0.33),
radius: colorScheme == .dark ? 5 : 3
)
.font(.callout)
.padding(.top, 4)
.padding(.bottom, 8)
}
Expand Down

0 comments on commit 5a7b113

Please sign in to comment.