fix teststring textbox in fontsmanager

This commit is contained in:
neon443 committed 2025-08-17 17:47:25 +01:00
1 parent 4f9055b58f
commit ce11f18455
4 files changed
+9 -3

No files matched your search

-2
View File
@@ -27,8 +27,6 @@ struct ShhShellApp: App {
hostsManager: hostsManager,
keyManager: keyManager
)
.colorScheme(hostsManager.selectedTheme.background.luminance > 0.5 ? .light : .dark)
.tint(hostsManager.tint)
}
}
}
+3
View File
@@ -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) {
+3 -1
View File
@@ -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()
}
}
@@ -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)
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.