Forum Archive

Tint Color can't be set

7points

iPad Pro 12.9 / IOS 11.2.2 / Pythonista 3.2

When using UI Designer, Tint Color can't be set (Button, Switch, Slider, SegmentedControl ...)
In the designer you see the changed color, but when running the script, the default color is shown.

This bug does not appear with iPad 3 / IOS 9.3.5 / Pythonista 3.2

zrzka

Can't reproduce with the same setup you have.

Can you share reproducible case? Python script & UI file?

cvp

With IPad mini 4, iOS 11.2.2., Pythonista 3.2

7points

Here are the screenshots:

ui-designer

running script

. . . . and the script / pyui-file

TintTest.py

TintTest.pyui

zrzka

Thanks, I can confirm this. Kind of curious how you did it. Did you edit the file manually somehow (.pyui)? Or just UI designer?

Inspector shows fffffffb, when I tap on color it shows fffffffa in the alert view, .pyui contains RGBA(1.000000,-0.021739,-0.021739,1.000000), ... Interesting ...

7points

I have created the files in the following order:
1. New ... Script with ui
2. added SegmentedControl in UI-Designer
3. changed Tint Color in UI-Designer

As I mentioned, the effect is only on the iPad Plus, not the iPad 3!
With the iPad Plus, I'm generally not able to change Tint Color on objects like Buttons, SegmentedControls and so on!
I reinstalled Pythonista, but did not succeed.

zrzka

@7points I did report it as #523.

7points

I think I have found the reason for the bug: the color picker of the ui-Designer. When sliding over the colors, the hex value sometimes jumps from 6 digits to eight digits. Since 8-digit values ​​are wrong for ipad pro edition 2015, they will be ignored.

zrzka

@7points thanks, did add it to the issue.