mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Make BarGraph example graph icon configurable
Set 'wtf.mods.bargraph.graphIcon` to the string you want to use as the graph icon.
This commit is contained in:
parent
1a898b05e3
commit
82e4602dc3
@ -10,14 +10,8 @@ wtf:
|
|||||||
refreshInterval: 1
|
refreshInterval: 1
|
||||||
mods:
|
mods:
|
||||||
bargraph:
|
bargraph:
|
||||||
colors:
|
|
||||||
from:
|
|
||||||
name: coral
|
|
||||||
displayName: grey
|
|
||||||
to:
|
|
||||||
name: white
|
|
||||||
price: green
|
|
||||||
enabled: true
|
enabled: true
|
||||||
|
graphIcon: "🍎"
|
||||||
position:
|
position:
|
||||||
top: 2
|
top: 2
|
||||||
left: 0
|
left: 0
|
||||||
|
@ -80,10 +80,6 @@ wtf:
|
|||||||
secretFile: "~/.config/wtf/gcal/client_secret.json"
|
secretFile: "~/.config/wtf/gcal/client_secret.json"
|
||||||
withLocation: true
|
withLocation: true
|
||||||
gspreadsheets:
|
gspreadsheets:
|
||||||
enabled: true
|
|
||||||
secretFile: "~/.config/wtf/gspreadsheets/client_secret.json"
|
|
||||||
refreshInterval: "300"
|
|
||||||
sheetId: "id_of_google_spreadsheet"
|
|
||||||
colors:
|
colors:
|
||||||
values: "green"
|
values: "green"
|
||||||
cells:
|
cells:
|
||||||
@ -93,11 +89,15 @@ wtf:
|
|||||||
addresses:
|
addresses:
|
||||||
- "A1"
|
- "A1"
|
||||||
- "A2"
|
- "A2"
|
||||||
|
enabled: true
|
||||||
position:
|
position:
|
||||||
top: 0
|
top: 0
|
||||||
left: 0
|
left: 0
|
||||||
width: 1
|
width: 1
|
||||||
height: 1
|
height: 1
|
||||||
|
refreshInterval: "300"
|
||||||
|
secretFile: "~/.config/wtf/gspreadsheets/client_secret.json"
|
||||||
|
sheetId: "id_of_google_spreadsheet"
|
||||||
git:
|
git:
|
||||||
commitCount: 5
|
commitCount: 5
|
||||||
enabled: true
|
enabled: true
|
||||||
|
@ -50,7 +50,8 @@ func MakeGraph(widget *Widget) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
widget.BarGraph.BuildBars(20, "🌟", stats[:])
|
icon := wtf.Config.UString("wtf.mods.bargraph.graphIcon", "✭ ")
|
||||||
|
widget.BarGraph.BuildBars(20, icon, stats[:])
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user