tint

Storyboard Global Tint UITabBar Tint changed in IOS 7.1

匿名 (未验证) 提交于 2019-12-03 02:06:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Have I overlooked something in just using the Global Tint to set the apps overall tint? My App that worked in IOS 7.06 has suddenly changed today after IOS 7.1 Update. Basic Storyboard, Tab based App with Global Tint (Orange) set in storyboard in IB. Today updated to IOS 7.1 IPhone 5S and it is showing the standard blue tint IPhone 4 IOS 7.06, same app TabBar tint is as it should be. Had to set as below [[UITabBar appearance] setTintColor:[UIColor orangeColor]]; in the TabBarControllers ViewDidLoad to correct the issue. Could it be I have

How to use selector to tint imageview in android

匿名 (未验证) 提交于 2019-12-03 01:55:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to tint my tabhost's icons using xml, instead of doing it programatically (I wasn't able to do that anyway)... So I found this thread on SO: Android imageview change tint to simulate button click That seems to be a pretty good solution, but I wasn't able to adapt it correctly in my project... I did the following changes: public class TintableImageView extends ImageView { private ColorStateList tint; public TintableImageView(Context context) { super(context); } //this is the constructor that causes the exception public

Using CSS custom properties (variables) with LESS functions

匿名 (未验证) 提交于 2019-12-03 01:40:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: In my LESS file, I have this: :root{ --base-color: red; } In my project --base-color may change "on the fly" from a user input so every instance of red may become for example green . The problem is I have some LESS functions for applying tint, shadow or saturations so I'm trying to do something like this: .tint{ color: tint(var(--base-color), 80%); } But I receive this error: Error: error evaluating function tint : color2.toHSL is not a function Obviously I can't store --base-color in a less variables because I would lose the instance of the

What's up with CITemperatureAndTint having vector inputs?

匿名 (未验证) 提交于 2019-12-03 01:39:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: OK, so the Core Image filter Temperature and Tint has two inputs, neutral and targetNeutral. However, my biggest issue is the fact that they're both two-component vectors, meaning each has two numeric inputs. I would expect the first to be from say 2500 to 10000. What would the vector be for? 回答1: The essential purpose of performing temperature and tint adjustment is to correct the white balance of a captured image: to account for the ambient illumination of the scene and adjust colors so that the image appears more like it was shot in

NSStatusItem change image for dark tint

匿名 (未验证) 提交于 2019-12-03 01:16:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: With OSX 10.10 beta 3, Apple released their dark tint option. Unfortunately, it also means that pretty much all status bar icons (with the exception of Apple's and Path Finder's that I've seen), including mine, remain dark on a dark background. How can I provide an alternate image for when dark tint is applied? I don't see an API change on NSStatusBar or NSStatusItem that shows me a change, I'm assuming it's a notification or something reactive to easily make the change as the user alters the tint. Current code to draw the image is

Java : How to tint this PNG programmatically?

匿名 (未验证) 提交于 2019-12-03 00:59:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Within the frame of a chess applet, I have a few sets of such greyscale/black & white (not sure) : Is there any way to give a color tint to a PNG picture via Java Code ? Tried to google the matter and didn't find anything really matching what I'm looking for. For the following piece for example, I'd like to give it white/yellow tint for the White player, and a flavour of black for the Black player. The idea of setting the color dynamically is to tweak themes at runtime. 回答1: It would be a lot simpler to give your program translucent images

UINavigationBar change Tint color with animation

对着背影说爱祢 提交于 2019-12-03 00:24:53
Is it possible to change the tint with animation for a smoother effect? This doesn't work for me: [UIView beginAnimations:nil context:nil]; [self.navigationController.navigationBar setTintColor:[UIColor greenColor]]; [UIView commitAnimations]; I a not sure if it is even possible using native apple components as I guess they will be using CG to generate the gradient ... just want to find out before I'll start building my own solution ... Cheers guys :) steipete You wouldn't believe the length I went through to actually make that possible; it annoyed me to no end that this isn't a stock iOS

Change colour of dark grey highlight when holding down custom UIButton?

我是研究僧i 提交于 2019-12-02 20:11:25
I have a custom UIButton which is a cloud, transparent black and white .png file, with no down state, just one image. When tapping and holding the finger over it, it turns dark grey. I'm trying to change that dark grey to something a little less oppressive. The button is out in the open in a view, not in a tab bar, tool bar, or navigation controller. I've already tried setting tintColor (which the documentation helpfully informs me is only suitable for 'some' types of buttons, which no indication as to which). I've also tried changing everything I can find in Interface Builder relating to

OpenGL ES: How to tint texture with color

自古美人都是妖i 提交于 2019-12-01 18:07:56
I have texture with alpha. And I want to tint it with some color, so it will be colored depending on color alpha value, but overal opacity will be defined only by texture alpha. This is similar to multi-texturing but with color instead of second texture. How to do it? (Updated) I have tried to set up texture combiner. Color is tinted fine, but there is problem with alpha - it doesn't take value from texture (like mask). My code at this moment: glActiveTexture (GL_TEXTURE0); // do we need stage #1? glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_COMBINE); glTexEnvi(GL_TEXTURE_ENV, GL_COMBINE

Tint Navigation Icon in Toolbar

*爱你&永不变心* 提交于 2019-11-30 18:31:59
How to tint menu icons is already covered a few times, like here: Toolbar icon tinting on Android Additionally to this solution there is still the problem of the navigation icon. Applying a Theme(Overlay) to your Toolbar just tints the text and the whitelisted icons (see: https://stackoverflow.com/a/26817918/2417724 ) If you set a custom icon (which happens to be quite easy the case, as you need to change it if you don't want to display the default back arrow) then this custom icon does not get tinted. How do you handle your Icons then? All my icons are per default black and I don't want to