iOS:色调颜色实际上有什么作用?

发布于 2024-12-18 13:01:16 字数 179 浏览 3 评论 0原文

假设分段控件的色调颜色设置为 RGB(69, 175, 225),但颜色选择器的实际颜色范围从(最顶部)RGB(146, 181, 211) 到(最底部)RGB(82, 118, 147) )。

那么我怎样才能期望分段控件的实际显示颜色呢?例如,如果我想要最底部点的颜色是RGB(69,175,225),我应该设置什么RGB值?

Suppose a segmented control's tint color is set to RGB(69, 175, 225) but the actually color from color picker range from (top most) RGB(146, 181, 211) to (bottom most) RGB(82, 118, 147).

So how can I expect the actually displayed color of the segmented control. For example, if I want the color of the bottom most point is RGB(69, 175, 225), what is the RGB value should I set?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

街道布景 2024-12-25 13:01:16

色调是一种应用了一些奇特视觉效果(光泽反射等)的颜色。 iOS 将它们应用于应用程序图标、选项卡栏、导航栏和许多其他东西。我认为您对给定色调的给定像素的本地颜色做出任何假设都是错误的,因为这些视觉效果因 UIElement 而异,并且可能因一个操作系统版本而异到另一个。

The tint is a color on which some fancy visual effects (glossy reflections and so on) is applied. iOS applies them to app icons, tab bars, navigation bars and many other things. I think it would be wrong for you to make any assumptions as to what the local color for a given pixel is for a given tint, given these visual effects vary from UIElement to UIElement and probably from one OS version to another.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文