fixed label hidden

This commit is contained in:
neon443
2025-07-08 20:35:10 +01:00
parent ab65900c92
commit edefce114c

View File

@@ -20,8 +20,8 @@ struct ThemeEditorView: View {
List { List {
Section("Preview") { Section("Preview") {
// ThemePreview(hostsManager: HostsManager(), theme: themeCodable.toTheme(), canModify: false) // ThemePreview(hostsManager: HostsManager(), theme: .constant(theme), canModify: false)
// .id(themeCodable) // .id(theme)
} }
Section("Name") { Section("Name") {
@@ -32,19 +32,12 @@ struct ThemeEditorView: View {
Section("Main Colors") { Section("Main Colors") {
ColorPicker("Text", selection: $theme.foreground.suiColor, supportsOpacity: false) ColorPicker("Text", selection: $theme.foreground.suiColor, supportsOpacity: false)
.labelsHidden()
ColorPicker("Background", selection: $theme.background.suiColor, supportsOpacity: false) ColorPicker("Background", selection: $theme.background.suiColor, supportsOpacity: false)
.labelsHidden()
ColorPicker("Cursor", selection: $theme.cursor.suiColor, supportsOpacity: false) ColorPicker("Cursor", selection: $theme.cursor.suiColor, supportsOpacity: false)
.labelsHidden()
ColorPicker("Cusor Text", selection: $theme.cursorText.suiColor, supportsOpacity: false) ColorPicker("Cusor Text", selection: $theme.cursorText.suiColor, supportsOpacity: false)
.labelsHidden()
ColorPicker("Bold Text", selection: $theme.bold.suiColor, supportsOpacity: false) ColorPicker("Bold Text", selection: $theme.bold.suiColor, supportsOpacity: false)
.labelsHidden()
ColorPicker("Selection", selection: $theme.selection.suiColor, supportsOpacity: false) ColorPicker("Selection", selection: $theme.selection.suiColor, supportsOpacity: false)
.labelsHidden()
ColorPicker("Selected Text", selection: $theme.selectedText.suiColor, supportsOpacity: false) ColorPicker("Selected Text", selection: $theme.selectedText.suiColor, supportsOpacity: false)
.labelsHidden()
} }
Section("Ansi Colors") { Section("Ansi Colors") {