More robust dictionary search feature, styling tweaks for widgets

This commit is contained in:
Madeline committed 2022-10-26 15:46:50 -04:00
1 parent 5999cc3533
commit e893a04e13
5 files changed
+43 -15

No files matched your search

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