Skip to content

himynameisubik/KalmAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

KalmAPI

Kalm (minimum version 1.4.0) offers an API to get the current color of Kalm.

The color of Kalm will change after the user switches his wallpaper or adjusting his settings, so you will need to call the method again and compare your previous color to the new color of Kalm and update your elements accordingly.

Tweak.h

@interface KalmAPI
+ (UIColor *)getColor;
@end

Tweak.x(m)

- (void)yourInit {
	UIColor *kalmColor = [%c(KalmAPI) getColor];
	
	yourUILabel.textColor = kalmColor;
	yourUIView.backgroundColor = kalmColor;
}

About

API for Kalm iOS Tweak

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published