More robust dictionary search feature, styling tweaks for widgets

This commit is contained in:
Madeline
2022-10-26 15:46:50 -04:00
parent 5999cc3533
commit e893a04e13
5 changed files with 43 additions and 15 deletions

View File

@@ -54,7 +54,7 @@ struct DefinitionEntry: TimelineEntry {
struct Toki_Trainer_WidgetsEntryView : View {
var entry: Provider.Entry
var body: some View {
ZStack {
Color("LightPurple")
@@ -62,9 +62,11 @@ struct Toki_Trainer_WidgetsEntryView : View {
Text(entry.word)
.foregroundColor(Color("FontColorTitle"))
.font(.title)
.frame(maxWidth: .infinity, alignment: .topLeading)
.padding(8)
Text(entry.definition)
.foregroundColor(Color("FontColorSubtitle"))
.frame(maxWidth: .infinity, alignment: .leading)
.padding(8)
}
}