mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 13:26:16 +00:00
change animation on the recents expander/collapser
fontmanager respecs theme bg move the colorscheme thing back
This commit is contained in:
@@ -27,6 +27,8 @@ struct ShhShellApp: App {
|
||||
hostsManager: hostsManager,
|
||||
keyManager: keyManager
|
||||
)
|
||||
.colorScheme(hostsManager.selectedTheme.background.luminance > 0.5 ? .light : .dark)
|
||||
.tint(hostsManager.tint)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,9 +78,6 @@ struct ContentView: View {
|
||||
}
|
||||
.scrollContentBackground(.hidden)
|
||||
}
|
||||
|
||||
.colorScheme(hostsManager.selectedTheme.background.luminance > 0.5 ? .light : .dark)
|
||||
.tint(hostsManager.tint)
|
||||
.navigationTitle("ShhShell")
|
||||
.toolbar {
|
||||
ToolbarItem(placement: .confirmationAction) {
|
||||
|
||||
@@ -13,6 +13,9 @@ struct FontManagerView: View {
|
||||
@State var testLine: String = "the lazy brown fox jumps over the lazy dog"
|
||||
|
||||
var body: some View {
|
||||
ZStack {
|
||||
hostsManager.selectedTheme.background.suiColor.opacity(0.7)
|
||||
.ignoresSafeArea(.all)
|
||||
List {
|
||||
VStack {
|
||||
HStack {
|
||||
@@ -66,6 +69,8 @@ struct FontManagerView: View {
|
||||
}
|
||||
}
|
||||
}
|
||||
.scrollContentBackground(.hidden)
|
||||
}
|
||||
}
|
||||
|
||||
#Preview {
|
||||
|
||||
@@ -54,7 +54,7 @@ struct RecentsView: View {
|
||||
if historyCount+2 > hostsManager.history.count {
|
||||
increment = 1
|
||||
}
|
||||
withAnimation { historyCount += increment }
|
||||
withAnimation(.spring) { historyCount += increment }
|
||||
} label: {
|
||||
Image(systemName: "chevron.down")
|
||||
.resizable().scaledToFit()
|
||||
@@ -76,7 +76,7 @@ struct RecentsView: View {
|
||||
Spacer()
|
||||
|
||||
Button {
|
||||
withAnimation { historyCount = 0 }
|
||||
withAnimation(.spring) { historyCount = 0 }
|
||||
} label: {
|
||||
Image(systemName: "chevron.up.2")
|
||||
.resizable().scaledToFit()
|
||||
|
||||
Reference in New Issue
Block a user