Change the background with image + Change Font #5
Answered
by
mattiarossini
lolbased21
asked this question in
Q&A
-
|
Hello! |
Beta Was this translation helpful? Give feedback.
Answered by
mattiarossini
Apr 13, 2022
Replies: 1 comment
-
|
Hello!
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mattiarossini
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello!
In the MinimalClockView.swift file you can change:
drawfunction modifyNSColor.black.setFill()specifying the chosen color;drawfunction addNSImage(contentsOf: URL(string: "https://url_to_image")!)?.draw(in: rect);fontfunction replacelet font = NSFont.systemFont(ofSize: fontSize, weight: weight)withlet font = NSFont(name: "font_name", size: fontSize)!wherefont_nameis the name of the chosen font.