diff --git a/ShhShell/ShhShellApp.swift b/ShhShell/ShhShellApp.swift index dbc7f0f..f320a98 100644 --- a/ShhShell/ShhShellApp.swift +++ b/ShhShell/ShhShellApp.swift @@ -27,8 +27,6 @@ struct ShhShellApp: App { hostsManager: hostsManager, keyManager: keyManager ) - .colorScheme(hostsManager.selectedTheme.background.luminance > 0.5 ? .light : .dark) - .tint(hostsManager.tint) } } } diff --git a/ShhShell/Views/ContentView.swift b/ShhShell/Views/ContentView.swift index f9feea6..ccb8bd8 100644 --- a/ShhShell/Views/ContentView.swift +++ b/ShhShell/Views/ContentView.swift @@ -78,6 +78,9 @@ struct ContentView: View { } .scrollContentBackground(.hidden) } + + .colorScheme(hostsManager.selectedTheme.background.luminance > 0.5 ? .light : .dark) + .tint(hostsManager.tint) .navigationTitle("ShhShell") .toolbar { ToolbarItem(placement: .confirmationAction) { diff --git a/ShhShell/Views/Fonts/FontManagerView.swift b/ShhShell/Views/Fonts/FontManagerView.swift index c8d785a..36cb1ff 100644 --- a/ShhShell/Views/Fonts/FontManagerView.swift +++ b/ShhShell/Views/Fonts/FontManagerView.swift @@ -53,13 +53,15 @@ struct FontManagerView: View { .font(.custom(fontName, size: 15)) .bold(selected) .opacity(selected ? 1 : 0.8) + .contentTransition(.numericText()) + .animation(.default, value: testLine) } } } } Section("Test String") { - TextEditor(text: $testLine) + TextField("", text: $testLine) .fixedSize() } } diff --git a/ShhShell/Views/Hosts/HostSymbolPreview.swift b/ShhShell/Views/Hosts/HostSymbolPreview.swift index ac86fb3..61de0c7 100644 --- a/ShhShell/Views/Hosts/HostSymbolPreview.swift +++ b/ShhShell/Views/Hosts/HostSymbolPreview.swift @@ -39,4 +39,7 @@ struct HostSymbolPreview: View { #Preview { HostSymbolPreview(symbol: HostSymbol.desktopcomputer, label: "lo0") + .border(.red) + HostSymbolPreview(symbol: HostSymbol.laptopcomputer, label: "lo1", horizontal: true) + .border(.blue) }