Theme entire setting stack
joekw opened this issue · 3 comments
joekw commented
Would be nice to set the background colour of certain items throughout the SettingStack, rather than having to set each and every SettingPage and SettingGroup
aheze commented
Hmm, like a universal theme? I'll think about how to add it.
Also maybe allowing custom SettingItem
subclass structs would be helpful.
aheze commented
Basic support added in 1.0.1.
SettingStack {
/* ... */
}
.environment(\.settingPrimaryColor, .blue) /// text
.environment(\.settingSecondaryColor, .blue) /// indicators
.environment(\.settingAccentColor, .blue) /// currently not used
.environment(\.settingBackgroundColor, .blue) /// background color of entire page
.environment(\.settingSecondaryBackgroundColor, .blue) /// background color of elements like `SettingGroup`