pkluz / PKHUD

A Swift based reimplementation of the Apple HUD (Volume, Ringer, Rotation,…) for iOS 8.
MIT License
3.79k stars 494 forks source link

怎么设置黑色背景 #228

Open iCoobin opened 6 years ago

iCoobin commented 6 years ago

怎么设置黑色背景的风格

PGLongo commented 6 years ago

Really? Please write in english

williamcaruso commented 6 years ago

@iCoobin92 is asking how to change the style of the HUD to "dark mode." In reality this deserves to be its own feature.

Meanwhile, here is a hack way to do it, just change the following lines in the following files:

Window.swift | line 80 view.backgroundColor = UIColor(white:0.0, alpha:0.25) ~> view.backgroundColor = UIColor.black.withAlphaComponent(0.25)

FrameView.swift | line 26 backgroundColor = UIColor(white:1.0, alpha:0.36) ~> backgroundColor = UIColor.black.withAlphaComponent(0.36) That should be it.

PGLongo commented 6 years ago

@williamcaruso I agree with you, but I'was answering with a little bit of irony to the message

cryandsmile commented 6 years ago

open to change the style of the HUD to "dark mode."