How to change color of title in header bar using lwuit? - lwuit

I am using following code to set title :
super.setTitle("abc");
I just want to set color

The standard color in the title bar is defined by the color set in the settings options of the device. You can't change it from code. If you want, you can create another Label and hide the default title bar, but I don't recommended.

Related

How do I get the default color of Button text?

I am designing a UI in SwiftUI. There are a few buttons that I have customised with a rounded rectangle. I want the color of that rectangle to be the same as the color of the text - blue by default, and light grey in disabled mode.
At present I am hardcoding the colors. Is there some variable or function available to match the system settings for either of those colors?
The default color of a button is .accentColor. This works for both light & dark mode too:
Color.accentColor
I can't seem to find out how to get the disabled button color yet, but I'll update this if I find out.

Changing the status bar color based on #State SwiftUI

I am looking for a way to change the status bar color (time/service/battery) at the top of the screen based on a #State variable. I am using state to change different themes in my app. Some themes have a gray menu bar at the top and one has a black menu bar. When I switch to the black menu bar I can no longer see the status bar. Is there a way I can change that in my view based on the state? The app is written in SwiftUI and I am using a custom view modifier to change the styling based on state.
Check this thread. Or if you feel lazy you can achieve the same result by playing around with the appearences in the colors in your Assets.xcassets with the help of .preferredColorScheme(_:)

How to remove border of a dynamically colored search bar in Swift?

Click to see my current search bar
What I am trying to do is to remove the two lines on top and at the bottom of the search bar (without changing anything else). I have tried using
searchBar.backgroundImage(UIImage)
but that makes the inside of the bar white, which is not what I want. I tried setting the style of the search bar to be minimalist, but am not sure how I can make the bar tint dynamic (previous dynamic-coloring code doesn't work anymore)
I have researched a lot and saw similar questions where people are ok with the search bar being white, or not having dynamic color. For the app I'm working on (kind of like a todo-list), the search bar in the view controllers with items under each category will have a different color, depending on the color of the category. Therefore, the color of the search bar is dynamic.
Is there anyway to just remove the two border lines?
searchBar.backgroundImage = UIImage()
searchBar.backgroundImage is not a function.
Not sure how you did that without xcode giving you an error.

Zen cart color picker

I can create a simple dropdown color picker with names of colors. using attribute options. But this is just a plain text. I just need a way to add color sample to the dropdown. How do I do this in zencart?
The attributes controller has an attributes image swatch that you can set to an image.

Tabbar with custom colors

I want to create a Tabbar application.My basic necessity is that i want the color of tab bar icons to be red instead of the default blue color.(i.e the selected tab icon has to be of red color instead of the default blue color provided by apple).I dont want the color of the tab bar to be changed.I want it to be of the default black color.Hope the question makes sense.
I want the tab bar to look something like this
Thanks.
As nicktmro noted, you have to customize everything.
Check this previous answer:
Changing Tint / Background color of UITabBar
(check a couple of answers on this one, a later answer fixes problems with the accepted answer)
And this blog post:
iPhone TabBar Custom Background Image
ADDED
Here's another one that looks clean and easy:
Custom colors in UITabBar
Be sure to read the comment on the answer.
You will have to create your own "tab bar" controller. Unfortunately the "blue" color you are talking about is actually just an alpha level, not a shade of blue.