I am trying to set the color for UIToolbar via UIToolbar.Appearance.TintColor, but that doesn't exist. UINavigationBar.Appearance.TintColor works just fine. Is there any way to set the tint for toolbars globally?
This is a missing feature in MonoTouch, I have fixed this and the next build will contain the fix for it.
Related
I tried this Android: Setting up custom gradient for button
and other solutions but nothing works. Can anybody suggest anything else?
By the way, I use Material Theme. but this
How to set a gradient background to a Material Button?
solution also doesn't help
change yout button to androidx.appcompat.windget.AppCompatButton and it resolves
I am showing web content in a BrowserView in Electron, and looking to allow pinch to zoom. I've tried the following that didn't work:
view.webContents.setVisualZoomLevelLimits(1, 3)
view.webContents.setLayoutZoomLevelLimits(1, 3)
Manually setting the zoom factor does seem to work:
view.webContents.setZoomFactor(3)
But nothing that I've tried can enable the user to zoom.
One thing confusing me is that in trying to search for the answer, everybody seems to have the opposite problem:
Disable zooming (both pinch zoom and smart zoom [mac]) in electron
https://github.com/electron/electron/issues/8793
So I'm wondering did something change?
I am on electron 4.0.6, Node v11.12.0.
Ok, I've found where they changed it: https://github.com/electron/electron/pull/12679
And others have this problem:
https://github.com/electron/electron/issues/12631#issuecomment-447495983
Still trying to determine the exact fix.
You should call the setVisualZoomLevelLimits method on the webFrame object instead of on the webcontent. As is described here: https://github.com/electron/electron/issues/15417
In your renderer you should add:
webFrame.setVisualZoomLevelLimits(1, 4);
I'm trying to resolve for my self the issue stated in this post from 2011:
https://bugreports.qt.io/browse/QTBUG-19008
Using the stylesheet approach does not work however.
What I would like to do (regarding my own GUI project) is ensure that the images on any disabled QLabels appears the same as when those QLabels are enabled.
Any help in resolving this particular problem would be awesome. Thanks.
Ok. So disabling the GUI is a problem if you have custom graphics for all the widgets because mid-grey boxes appear everywhere. So what is the solution?
Ekhumoro has provided one solution but here is another:
If you are using Animated GIFs there is no problem - they won't turn mid-grey.
If you are using static images (PNGs) all you have to do is make sure the background is transparent so that only the visible image will turn mid-grey for the duration that those graphics are disabled.
This may not be elegant but it is a workaround that can be considered.
Just like we can customize dimensions and color in values folder. Is there any way that we can do the same to fonts?
You can try these library
font-utils
CustomFontLib
I am using BadgeElement(s) in Xamarin iOS in my custom made slideout nav menu.
I just would like to set the background color (like with StyledStringElements), does anyone know how?
Try overriding the BadgeElement class or use an own created view and an Uiviewelement