mamaral / mathemekit Goto Github PK
View Code? Open in Web Editor NEWCreate an iOS app color theme using a single line of code.
License: MIT License
Create an iOS app color theme using a single line of code.
License: MIT License
Hi man!
Your kit really cool. Dou you have any solution to change color of app real time?
i like your works.
Make great efforts.
Hi
Do you think your correct the 3 deprecated error in your project MaThemeKit in futur
Thanks
Could save you some lines of code. You're approach seems more careful, however. With the UIView method you can also change the button text color for alert views.
Hi,
I found that MAThemeKit is really handy and useful to handle appearance.
However, why this library is not provided with CocoaPods?
I prefer to manage libraries with CocoaPods (even libraries only provides one class), so it's really nice if you provide this library by Pod.
Thanks.
Bar Button Items in Navigation Bar loose textcolor after modal view did cover them
Steps to reproduce:
Make a single view app project with a storyboard.
Change the appDelegate by adding some imports and the code:
In didFinishLaunchingWithOptions:
{
// Override point for customization after application launch.
[MAThemeKit setupThemeWithPrimaryColor:[MAThemeKit colorWithR:0 G:184 B:156] secondaryColor:[UIColor whiteColor] fontName:@"HelveticaNeue-Light" lightStatusBar:NO];
return YES;
}
Embed the single view in a navigation controller using Editor Embed in...
Add a new viewcontroller
Add a Bar Button Item called test, do not specify an image.
Add the following code to the first viewcontroller for the exit segue:
-(IBAction)closeTest:(UIStoryboardSegue *)segue {
NSLog(@"Pop to first viewcontroller");
}
Drag a modal segue from test to the second view controller
Put a button in the second view controller
Drag from this button to the exit icon in the first viewcontroller
Run the project. Everything receives its correct color: navigationbar, title, button bar
Press test, the modal view covers the screen
Press the button, the exit segue is called and the modal screen disappears.
Now the first view has the correct colors for the navigationbar and the title, but the text in the bar button item is only slightly darker than the navigation bar.
Strangely enough: when using an image instead of text, it works ok.
See attached screen shots
What do you think about adding support for setup a theme using 3 colors instead of only 2?
Thanks for this lib, very useful.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.