Setting secondaryColor in .ambience-file does not have effect

asked 2020-03-30 18:10:05 +0300

hsjpekka gravatar image

I have Nuuksio 3.2.1.20 in my Xperia 10, Xperia X, and Jolla 1. secondaryColor in xx.ambience-file doesn't have effect in any of those.

I made a qml app to verify my color recognition, added a label with color: Theme.secondaryColor and text: "color " + Theme.secondaryColor. In dark ambiences, the secondary color is always #b0FFFFFF, and in light ambiences it is always #b0000000.

If I set myAmbience in /usr/share/ambience/ambience-myAmbience, I'm able to define the sounds and other colors but not the secondary color. And if I modify the secondary color in the Jolla's ambiences, that doesn't affect either.

I used systemctl --user restart ambienced.service, removed files in ~/.local/share/system/privileged/Ambienced, and restarted. (https://together.jolla.com/question/222453/how-to-edit-colors-in-a-theme/)

I have

    "clockAlarmToneFile"        : { "file": "kastanja_kello.ogg",    "enabled": 1 },
"wallpaper"                 : "ambience-kastanja.jpg",
"highlightColor"            : "#FFB9FE80",
"secondaryHighlightColor"   : "#B5B9FE80",
"primaryColor"              : "#FFFFFFA0",
"secondaryColor"            : "#B0FFFFA0",
"ringerVolume"              : 70,

in my kastanja.ambience, and as explained earlier, everything else works except secondaryColor.

If I modify airy.ambience to

"primaryColor"              : "#FF000044",
"secondaryColor"            : "#B0004400",

the primary color changes, but the secondary doesn't.

Using dconf write /desktop/jolla/theme/color/secondary works, but that has to be run after each ambience change.

Others having the same problem?

edit retag flag offensive close delete

Comments

Odd, I changed all colours in my allblack ambience and nothing changes at all, even after restarting the device. Clearly there is a problem.

+1

Spam Hunter ( 2020-03-30 20:51:41 +0300 )edit

@Edz Did you try removing the files in ~/.local/..../Ambienced/ ? That seemed to refresh the ambience colors in my case. Restarting ambienced.service or rebooting the phone didn't do much without removing the files.

hsjpekka ( 2020-03-31 10:54:52 +0300 )edit

I did not, but in the past, it was not necessary, restarting the ambienced.service was all that was needed. I'll give it a go and see what happens, thanks.

EDIT: there is no data in the path you gave, ...the plot thickens!

Spam Hunter ( 2020-03-31 11:13:27 +0300 )edit