[clock.py] Fix colours
This commit is contained in:
parent
5790bb6b72
commit
4f45e2f9ab
1 changed files with 8 additions and 5 deletions
|
@ -26,7 +26,7 @@ try:
|
|||
minute = minutehands[ t.minute // 5 ]
|
||||
hour = hourhands [ t.hour % 12 ]
|
||||
|
||||
return color_for(t) + "%{T8}%{F#000}%{O-24}" + hour + "%{O-24}" + minute + "%{T-}%{F}"
|
||||
return color_for(t) + "%{T8}%{F}%{F#000}%{O-24}" + hour + "%{O-24}" + minute + "%{T-}%{F}"
|
||||
|
||||
|
||||
def color_for(t):
|
||||
|
@ -51,20 +51,23 @@ try:
|
|||
localcolor = color_for(localnow)
|
||||
|
||||
print(
|
||||
localcolor +
|
||||
localnow.strftime("%A") +
|
||||
" " +
|
||||
"%{F} " +
|
||||
|
||||
# face_for(leftnow) +
|
||||
|
||||
" %{T4}" + localcolor + localnow.strftime("%H") +
|
||||
" %{T4}" + localcolor + localnow.strftime("%H") + "%{F}"
|
||||
"%{O2}%{T8}" + face_for(localnow) +
|
||||
"%{O2}%{T4}" + localcolor + localnow.strftime("%M") + "%{T-}" +
|
||||
"%{O2}%{T4}" + localcolor + localnow.strftime("%M") + "%{T-}%{F}" +
|
||||
" " +
|
||||
|
||||
# face_for(rightnow) + " " +
|
||||
|
||||
" " +
|
||||
localnow.strftime("%d %b"),
|
||||
localcolor +
|
||||
localnow.strftime("%d %b") +
|
||||
"%{F}",
|
||||
|
||||
flush = True
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue