From ad777119c2c6cee3f83ab63640947b806ce5fb99 Mon Sep 17 00:00:00 2001 From: neon443 <69979447+neon443@users.noreply.github.com> Date: Sat, 5 Jul 2025 13:59:05 +0100 Subject: [PATCH] added a lil shadow opposite to the color scheme to help tell if u selected white on white for example added bottom padding to the thememanager, remove the top padding --- ShhShell/Views/Themes/AnsiPickerView.swift | 6 ++++++ ShhShell/Views/Themes/ThemeManagerView.swift | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ShhShell/Views/Themes/AnsiPickerView.swift b/ShhShell/Views/Themes/AnsiPickerView.swift index c1b46b4..9ffdb61 100644 --- a/ShhShell/Views/Themes/AnsiPickerView.swift +++ b/ShhShell/Views/Themes/AnsiPickerView.swift @@ -10,6 +10,8 @@ import SwiftUI struct AnsiPickerView: View { @ObservedObject var hostsManager: HostsManager + @Environment(\.colorScheme) var colorScheme + var body: some View { ZStack(alignment: .center) { RoundedRectangle(cornerRadius: 15) @@ -26,6 +28,10 @@ struct AnsiPickerView: View { RoundedRectangle(cornerRadius: isSelected ? 5 : 0) .fill(hostsManager.selectedTheme.ansi[index].suiColor) .padding(isSelected ? 5 : 0) + .shadow( + color: colorScheme == .dark ? .white : .black, + radius: isSelected ? 2 : 0 + ) .onTapGesture { hostsManager.selectAnsi(index) } diff --git a/ShhShell/Views/Themes/ThemeManagerView.swift b/ShhShell/Views/Themes/ThemeManagerView.swift index 8b0bbea..c260e62 100644 --- a/ShhShell/Views/Themes/ThemeManagerView.swift +++ b/ShhShell/Views/Themes/ThemeManagerView.swift @@ -53,7 +53,6 @@ struct ThemeManagerView: View { HStack { Text("Your Themes") - .padding(.top) .padding(.horizontal) .font(.headline) Spacer() @@ -94,6 +93,7 @@ struct ThemeManagerView: View { } } .padding(.horizontal) + .padding(.bottom) .animation(.default, value: hostsManager.themes) } .navigationTitle("Themes")