mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 13:26:16 +00:00
fix teststring textbox in fontsmanager
This commit is contained in:
@@ -27,8 +27,6 @@ struct ShhShellApp: App {
|
|||||||
hostsManager: hostsManager,
|
hostsManager: hostsManager,
|
||||||
keyManager: keyManager
|
keyManager: keyManager
|
||||||
)
|
)
|
||||||
.colorScheme(hostsManager.selectedTheme.background.luminance > 0.5 ? .light : .dark)
|
|
||||||
.tint(hostsManager.tint)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -78,6 +78,9 @@ struct ContentView: View {
|
|||||||
}
|
}
|
||||||
.scrollContentBackground(.hidden)
|
.scrollContentBackground(.hidden)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.colorScheme(hostsManager.selectedTheme.background.luminance > 0.5 ? .light : .dark)
|
||||||
|
.tint(hostsManager.tint)
|
||||||
.navigationTitle("ShhShell")
|
.navigationTitle("ShhShell")
|
||||||
.toolbar {
|
.toolbar {
|
||||||
ToolbarItem(placement: .confirmationAction) {
|
ToolbarItem(placement: .confirmationAction) {
|
||||||
|
|||||||
@@ -53,13 +53,15 @@ struct FontManagerView: View {
|
|||||||
.font(.custom(fontName, size: 15))
|
.font(.custom(fontName, size: 15))
|
||||||
.bold(selected)
|
.bold(selected)
|
||||||
.opacity(selected ? 1 : 0.8)
|
.opacity(selected ? 1 : 0.8)
|
||||||
|
.contentTransition(.numericText())
|
||||||
|
.animation(.default, value: testLine)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Section("Test String") {
|
Section("Test String") {
|
||||||
TextEditor(text: $testLine)
|
TextField("", text: $testLine)
|
||||||
.fixedSize()
|
.fixedSize()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,4 +39,7 @@ struct HostSymbolPreview: View {
|
|||||||
|
|
||||||
#Preview {
|
#Preview {
|
||||||
HostSymbolPreview(symbol: HostSymbol.desktopcomputer, label: "lo0")
|
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