Cant change button colors and list-dividers jquery mobile - jquery-mobile

http://getwiddly.com/dm/index.html
I am having issues changing the color of the buttons when clicked. It seems its inheriting the default theme when you let go of the buttons click, as it turns blue. I would like it the "g" theme color or the color set of my own, not blue.
http://getwiddly.com/dm/index.html#lunchmenu
I want to set the list-divider color but I can customize the color. I want it green but when I apply the "g" theme for data-dividertheme it uses some other light color part of the theme instead the green part....So I applied it to the and it works....only after you highlight/hover the title, for example "SMALL PLATES...." if you highlight/hover this, it changes to the right color.

I would suggest rolling your own theme as editing the current jQM CSS can be cumbersome and you might overlook something:
http://jquerymobile.com/themeroller/

Related

mat-flat-button color is getting changed once it is clicked and coming back to normal color only after a blur event

I am having a button that is mat-flat-button with background color as light blue. When it is clicked, some popup will come as per my requirement. I observed that the button's background color is getting darken once I clicked. Once I closed that popup, the mat-flat-button's background color has to come into normal color which is light blue. But, that is not happening and the button's background color is still in darken mode. That normal background color is coming to normal light blue color only if I performed a mouse blue event. Why this is happening for mat-flat-button? I am new to Angular and I tried lot to resolve this with no luck. Is there any alternative way to achieve this?
Thanks.
This is come from material design. You have more status. Have focus, hover, active (etc..) status. This background color indicates the active focused element. When you click the button, and the dialog opened the focus moves to the dialog, and when the dialog is closed the focus return to the button. This is why your button works so wierd. This background color comes from the theme colors. You can change this behavior whit some css rules.

UIButton image tint not working

One of my apps has three UIButtons on it, and they use images that I got from icons8. In the code, I change the tint color and it works fine. Whatever I set the tint color to is what color the button image becomes that color.
Today I wanted to add a fourth button to mute sound. I downloaded the images that I wanted from icons8, added the button and set it up like I have the rest of the buttons set up. The new button is not changing colors like the rest of them. I'm certain that it has to do with the image, because if I select a different image, it changes color. I also tried using the new image on one of the older buttons and it would not change color.
My question - is there anything special that needs to be done to an image to make it work with tint color?
Try setting the image to render as a template image. You can do this in your .xcasset folder selecting the image set, opening the attributes inspector and setting render as to "template image."
What I did was follow the #beyowulf instructions and on the code I just did this
yourBtn.tintColor = .white (or other color)
this worked for me

How to add custom color in Xcode storyboard color picker?

I am planning to make theme color of UI elements in application.
how we show custom color(Golden Color) like Black color in picker menu
is it possible? like we can add custom Property as shown in snapshot
You can add custom color as folow
Select color property(Background color, text color, etc.). A popup is shown from that select "other" option.
A color picker will be opened. Here you can set your custom color by RGB/Hex Code and you can set opacity.
The color will be applied and visible under "Recently Used Colors". This is how you can add custom colors but as far as I know you can't add colors in that default list.
Create a new palette by clicking "New" here:
A new palette "Unnamed" will be created. You can rename that palette by clicking the cog again and choosing "Rename..." Then, you'll need to click on the objects you want to capture the color of, and drag the color of those objects into the color chip area:
Once you've captured the color, you can even rename it something that indicates where it's normally used, providing more information to the recipient than just the color.
source
As of Xcode 9 you can add colors to your asset catalog.
Open your asset catalog, click the + and add a color set.
Click on the color that was created and you can name it and set the color using the inspector.
Thereafter that color shows up in storyboard color chooses in the area called Named Colors.
To achieve this follow these steps
*) In the Project navigator, select the asset catalog, click the Add button (+) at the bottom. In the pop-up menu, choose the type of asset set to create
*) then you'll see the color asset on storyboard.
Cheers :)

Color slightly different when reapplying it programmatically [duplicate]

I have really weird problem with colors in interface builder. I set a color on one UI element, for example UIView, and then I want the same color on UIButton...but when I try to do so, colors are often different - I mean little bit different tone, not absolutely different color. How is this even possible ??? I've tried to use RGB sliders, and other sliders, also that color picker tool... Only thing that helps me sometimes is, when I create new UI element. Anybody had the same problem and knows what's going on ?
Interface Builder filters colors through your monitor's current color space by default. You can change this in Xcode4 IB by bringing up a Colors dialog, clicking the Sliders tab, then clicking the little dropdown button under the magnifying glass that looks like a color spectrum. This will bring up a list of available color spaces -- select Generic RGB and adjust the sliders as necessary to get the correct color.
See this question for more information, especially the comments on the accepted answer.
I solved this issue using "Device RGB" instead "Generic RGB".
See the image:
Unfortunately, fiddling with color spaces didn't work for me. What did work was editing the raw xml of the .xib (right click .xib, Open As > Source Code) and changing the RGB decimal values there.
The currently selected item in interface builder will be slightly different to its actual colour - it has a darkened mask applied to it to highlight the fact that it is selected. You need to click somewhere else in the window to unselect the item, it's real colour will then be shown. I've fallen into this trap myself.

Changing background color of jquery-ui button?

I'm using jquery-ui for buttons. The default theme looks great, but I'd like to apply a different background color to a few specific buttons. Is there a way I can easily add another css class to my buttons to just change the bg color of them, without changing any other properties of the button?
Thanks
Just add it to the button's HTML and when the button is created it will get all of the existing classes.

Resources