reworked home screen widgets to mirror the in-app timetable, hidden below android 12
This commit is contained in:
@@ -9,15 +9,27 @@ struct WidgetPalette {
|
||||
let textPrimary: Color
|
||||
let textSecondary: Color
|
||||
let divider: Color
|
||||
let accent: Color
|
||||
let onAccent: Color
|
||||
let breakBlock: Color
|
||||
let todayTint: Color
|
||||
let holidayTint: Color
|
||||
let watermarkOpacity: Double
|
||||
|
||||
// ColorScheme.fromSeed(#993333).primary of the app's light / dark theme.
|
||||
private static let lightAccent = Color(red: 0x90 / 255, green: 0x4A / 255, blue: 0x47 / 255)
|
||||
private static let darkAccent = Color(red: 0xFF / 255, green: 0xB3 / 255, blue: 0xAF / 255)
|
||||
|
||||
static let light = WidgetPalette(
|
||||
background: Color(red: 0xFC / 255, green: 0xF7 / 255, blue: 0xF5 / 255),
|
||||
textPrimary: Color(red: 0x11 / 255, green: 0x11 / 255, blue: 0x11 / 255),
|
||||
textSecondary: Color(red: 0x55 / 255, green: 0x55 / 255, blue: 0x55 / 255),
|
||||
divider: Color.black.opacity(0x22 / 255.0),
|
||||
breakBlock: Color.black.opacity(0x0C / 255.0),
|
||||
accent: lightAccent,
|
||||
onAccent: .white,
|
||||
breakBlock: lightAccent.opacity(0x32 / 255.0),
|
||||
todayTint: lightAccent.opacity(0x0E / 255.0),
|
||||
holidayTint: Color.black.opacity(0x32 / 255.0),
|
||||
watermarkOpacity: 0.014
|
||||
)
|
||||
|
||||
@@ -26,7 +38,11 @@ struct WidgetPalette {
|
||||
textPrimary: Color(red: 0xF1 / 255, green: 0xF1 / 255, blue: 0xF1 / 255),
|
||||
textSecondary: Color(red: 0xB0 / 255, green: 0xB0 / 255, blue: 0xB0 / 255),
|
||||
divider: Color.white.opacity(0x33 / 255.0),
|
||||
breakBlock: Color.white.opacity(0x14 / 255.0),
|
||||
accent: darkAccent,
|
||||
onAccent: Color(red: 0x57 / 255, green: 0x1D / 255, blue: 0x1D / 255),
|
||||
breakBlock: darkAccent.opacity(0x32 / 255.0),
|
||||
todayTint: darkAccent.opacity(0x0E / 255.0),
|
||||
holidayTint: Color.white.opacity(0x32 / 255.0),
|
||||
watermarkOpacity: 0.025
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user