Comments (17)
There's an example for UITabBarItem in the style for the Demo app.
from uiss.
@matibzurovski let me know if it works for you. Thank you!
from uiss.
Not really, I am getting an error for the following code:
"UINavigationBar": {
"tintColor": "white",
"barTintColor": [254, 0, 26],
"titleTextAttributes:normal": {
"textColor": "green"
}
}
from uiss.
Your snippet set the property for UINavigationBar, which has a simple titleTextAttributes
without control state parameter.
I'm guessing you want to change properties for UIBarButtonItem contained in UINavigationBar:
"UINavigationBar": {
"tintColor": "white",
"barTintColor": [254, 0, 26],
"UIBarButtonItem": {
"titleTextAttributes:normal": {
"textColor": "green"
}
}
}
from uiss.
That will change the color of the buttons from the bar. I want to change the color of the title of the bar. Thanks
from uiss.
In that case you should remove control state param:
"UINavigationBar": {
"tintColor": "white",
"barTintColor": [254, 0, 26],
"titleTextAttributes": {
"textColor": "green"
}
}
because:
@interface UINavigationBar
...
@property(nonatomic, copy) NSDictionary *titleTextAttributes
from uiss.
That did the trick, thanks very much!
from uiss.
How do I change the properties of an UIImage. I am able to change the textColor and font of a UILabel, but not the tintColor of a UIImage. Thanks
"OwnViewController" : {
"UILabel": {
"textColor": "green",
"font": ["Copperplate-Bold", 18]
},
"UIImage" : {
"tintColor": "green"
}
},
from uiss.
UIImage doesn't support UIAppearance, but UIImageView does.
from uiss.
One last thing: I want to customize my navigation bar so that the color of the letters are white and the barTintColor is red. However, I would like to make the top part of the bar green, where Wifi signal, clock and battery percentage are displayed. What should I add to this code?
"UINavigationBar": {
"tintColor": "white",
"barTintColor": "red"
}
Thanks for your help!
from uiss.
I think the only way to achieve this is to prepare an image which has top 20px green (for status bar background) and the bottom 44px red (for navigation bar background). Use backgroundImage:default property.
For the title color use titleTextAttributes.
from uiss.
With titleTextAttributes I can change the color of the navigation bar title. Any way to change the color of the time, wifi and battery?
from uiss.
It can only be black or white. Read about UIViewController.preferredStatusBarStyle
.
from uiss.
How would be the code to set it white?
from uiss.
You cannot use UIAppearance to set that. Read about the method I mentioned above.
from uiss.
Ok, thanks.
Last one for the day :)
Is it possible to change the barTintColor of a UINavigationItem?
from uiss.
No.
from uiss.
Related Issues (20)
- Add Feature reset Appearance Values to Default Values back
- Add BackgroundImage Generation from gradient Color Spec
- Copperplate Font not showing up in Demo HOT 2
- is UISS support iOS7 ?? HOT 5
- UISS 2.0 HOT 3
- How to use local paths in JSON file ? HOT 4
- How to apply style to specific UIButton ? HOT 4
- UINavigationBar backgroundImage HOT 1
- UITextField background property doesn't work HOT 1
- How to style UISearchBar and UINavigationBar HOT 3
- iOS 8 support HOT 3
- Add a converter for simple String values HOT 1
- UISS greatly hinders app startup in iOS 9 HOT 10
- Is there a way to use `UIFontTextStyles` (for dynamic type) using UISS? HOT 1
- Style photo skins HOT 1
- unknown appearance class HOT 3
- UIButton titleColor not working - swift HOT 12
- Support for UITraitCollection? HOT 2
- App Extension support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uiss.