mirror of
https://github.com/ThisIsBenny/iOS-Widgets.git
synced 2025-06-07 05:57:41 +00:00
Update VodafoneDE.js
Changed red to Vodafone gradient red/darkred Added gradient for darkmode black/darkgrey Changed text color of last update text for better readability
This commit is contained in:
parent
9caaf96973
commit
0d7ba45b67
1 changed files with 18 additions and 3 deletions
|
@ -101,7 +101,22 @@ try {
|
||||||
// Create Widget
|
// Create Widget
|
||||||
let widget = new ListWidget();
|
let widget = new ListWidget();
|
||||||
|
|
||||||
widget.backgroundColor = new Color("#FD0000")
|
const gradient = new LinearGradient()
|
||||||
|
gradient.locations = [0, 1]
|
||||||
|
|
||||||
|
if (Device.isUsingDarkAppearance()){
|
||||||
|
gradient.colors = [
|
||||||
|
new Color("111111"),
|
||||||
|
new Color("222222")
|
||||||
|
]
|
||||||
|
} else {
|
||||||
|
gradient.colors = [
|
||||||
|
new Color("D32D1F"),
|
||||||
|
new Color("76150C")
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
widget.backgroundGradient = gradient
|
||||||
|
|
||||||
let provider = widget.addText("Vodafone")
|
let provider = widget.addText("Vodafone")
|
||||||
provider.font = Font.mediumSystemFont(12)
|
provider.font = Font.mediumSystemFont(12)
|
||||||
|
@ -125,7 +140,7 @@ let lastUpdateText = widget.addDate(lastUpdate)
|
||||||
lastUpdateText.font = Font.mediumSystemFont(10)
|
lastUpdateText.font = Font.mediumSystemFont(10)
|
||||||
lastUpdateText.centerAlignText()
|
lastUpdateText.centerAlignText()
|
||||||
lastUpdateText.applyTimeStyle()
|
lastUpdateText.applyTimeStyle()
|
||||||
lastUpdateText.textColor = Color.darkGray()
|
lastUpdateText.textColor = Color.lightGray()
|
||||||
|
|
||||||
if(!config.runsInWidget) {
|
if(!config.runsInWidget) {
|
||||||
await widget.presentSmall()
|
await widget.presentSmall()
|
||||||
|
|
Loading…
Add table
Reference in a new issue