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
This commit is contained in:
neon443
2025-07-05 13:59:05 +01:00
parent 8852117b30
commit ad777119c2
2 changed files with 7 additions and 1 deletions

View File

@@ -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)
}

View File

@@ -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")