customize text color

This commit is contained in:
Trey t
2022-03-06 11:25:05 -06:00
parent 6ec0a9bb99
commit 7692f455c8
22 changed files with 225 additions and 92 deletions

View File

@@ -10,7 +10,8 @@ import SwiftUI
struct CreateWidgetView: View {
@AppStorage(UserDefaultsStore.Keys.theme.rawValue, store: GroupUserDefaults.groupDefaults) private var theme: Theme = .system
@Environment(\.dismiss) var dismiss
@AppStorage(UserDefaultsStore.Keys.textColor.rawValue, store: GroupUserDefaults.groupDefaults) private var textColor: Color = .black
@StateObject private var customWidget: CustomWidgetModel
@State private var mouth: CustomWidgetMouthOptions = CustomWidgetMouthOptions.defaultOption
@@ -115,7 +116,7 @@ struct CreateWidgetView: View {
})
}
}
.foregroundColor(theme.currentTheme.labelColor)
.foregroundColor(textColor)
}
Spacer()
VStack(alignment: .center) {
@@ -128,7 +129,7 @@ struct CreateWidgetView: View {
})
}
}
.foregroundColor(theme.currentTheme.labelColor)
.foregroundColor(textColor)
}
Spacer()
VStack(alignment: .center) {
@@ -141,7 +142,7 @@ struct CreateWidgetView: View {
})
}
}
.foregroundColor(theme.currentTheme.labelColor)
.foregroundColor(textColor)
}
Spacer()
}