mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 21:36:17 +00:00
Merge remote-tracking branch 'refs/remotes/origin/main'
This commit is contained in:
@@ -11,10 +11,6 @@ using namespace metal;
|
||||
|
||||
[[ stitchable ]] half4 crt(float2 pos, half4 color, float2 size, float time) {
|
||||
float2 uv = pos/size;
|
||||
float2 topLeading = float2(0, 0);
|
||||
float2 topTrailing = float2(0, size.x);
|
||||
float2 bottomLeading = float2(size.y, 0);
|
||||
float2 bottomTrailing = size;
|
||||
|
||||
//scanlines
|
||||
half scanline = 0.5 + 0.5 * sin(uv.y * size.y*2);
|
||||
|
||||
@@ -23,7 +23,8 @@ struct HostSymbolPicker: View {
|
||||
var body: some View {
|
||||
ZStack {
|
||||
Rectangle()
|
||||
.foregroundStyle(cScheme == .dark ? .black : .gray)
|
||||
.modifier(glassEffectCompat())
|
||||
// .foregroundStyle(cScheme == .dark ? .black : .gray)
|
||||
VStack(alignment: .center, spacing: 0) {
|
||||
ScrollView(.horizontal) {
|
||||
HStack {
|
||||
|
||||
@@ -8,6 +8,16 @@
|
||||
import Foundation
|
||||
import SwiftUI
|
||||
|
||||
struct glassEffectCompat: ViewModifier {
|
||||
func body(content: Content) -> some View {
|
||||
if #available(iOS 19, *) {
|
||||
content.glassEffect()
|
||||
} else {
|
||||
content
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
struct glassButton: ViewModifier {
|
||||
var prominent: Bool
|
||||
|
||||
|
||||
@@ -219,6 +219,7 @@ struct SettingsView: View {
|
||||
}
|
||||
}
|
||||
}
|
||||
.navigationTitle("Settings")
|
||||
.listStyle(.insetGrouped)
|
||||
.scrollContentBackground(.hidden)
|
||||
.onChange(of: hostsManager.settings) { _ in
|
||||
|
||||
Reference in New Issue
Block a user