With version: '8.x-2.0' and with color support enabled when subtheme was generated, when trying to adjust theme settings I get a drop down for color scheme and the ability to type in hex codes for base, text color and links. Fine. But after saving them nothing happens. Clear all cache, clear browser cache, nothing happens. When I come back to the settings screen all the original colors are still in the color selection boxes.

I can see in color.inc that there is a nice set of color schemes with pre-selected colors that will probably work together well and beat my color blind selections. But I don't see how to activate any of these.

Comments

fkelly created an issue. See original summary.

Jeff Burnz’s picture

Version: 8.x-1.x-dev » 8.x-2.x-dev
fkelly12054@gmail.com’s picture

My mistake. I have 8.x-2.x-dev installed. From my at_core.info.yml file:
"# Information added by Drupal.org packaging script on 2017-03-02
version: '8.x-2.0'
core: '8.x'
project: 'adaptivetheme'
datestamp: 1488495488"

This does not result in the ability to select colors. I have experimented locally with modifying the default colors in color.inc to use those in the "goodearth" scheme. This results in the colors changing in the appearance/color scheme settings page. But nothing "saves" or affects the colors on my site. It sounds like the color module should modify the colors in the colors.css file and base those modifications on color shifts from the base, text and link fields in color.inc. I have the color module activated on the extend screen. But googling around it appears there is some other setup needed to get this to work.

fkelly12054@gmail.com’s picture

Loaded latest pixture_reloaded theme. Version from the info.yml file (version: '8.x-1.0-rc1'). The color settings on that work. As, I think intended, when you save color settings it writes a color directory out to sites/default/files and puts a modified copy of color.css in it. So that works for pixture_reloaded but does not appear to work for my at theme (version: 8.x-2.0) generated from Adaptivetheme.

Curiously, if I switch the default theme from pixture_reloaded back to my AT theme the default/files/color directory remains behind and the colors I get are from what was last generated by pixture_reloaded. If I manually delete the default/files/color directory my AT theme returns to its default colors.

Jeff Burnz’s picture

I'll take a look, apologies for the slow response , been a bit flat out this week!

fkelly12054@gmail.com’s picture

Understand ... from what I've seen on Drupal dot org the support you give is unmatched.

That said, I've been hacking away ... I've got my wife's sculpture site buried inside my home site (fkelly.org) and she won't abide by the default Adaptivetheme color scheme. So, I'm kind of stuck on my local system figuring this out. I'd love to move past Bartik.

I just wiped out the first copy of the generated theme (uninstall, delete) and regenerated. When the color scheme settings come up I get the color wheel and a list of the base, text and link colors. But the list of schemes that should be above (Carbon, Good Earth etc.) doesn't show. If I type the hex values in and do save, nothing happens. If I come back to color settings the originals are in there. That said, several times I've seen /default/files/color write out a new set of colors ... but even then it does not appear to be picked up back on the site. I've even closed out Windows file manager and my PHPeditor in case they were somehow write protecting the files/color directory. No effect.

fkelly12054@gmail.com’s picture

Something related to color.inc because when I save the pixture_reloaded color inc over the one from the generated adaptivetheme one I get a list of schemes on the color picker screen. Using the color.inc from the AT I get no list of schemes.

Looking at the color module it's a bit confusing to me when it's going to write to files/color and when it's going to write back over the color.css in the theme directory.

Just for kicks I "merged" the list of schemes for pixture_reloaded into that in the AT theme. Different array syntax but otherwise it should work? Noticed that pixture reloaded gives the color module a few more "hints" as to colors to use. Don't know if that would result in a substantive improvement or not.

fkelly12054@gmail.com’s picture

Seems like when AT theme is set as default, color settings do not appear. Set another theme (Bartik) as default, then go into AT theme settings and color schemes magically appear. Tested this behavior locally and on my "real" site, fkelly.org and it's consistent. Not exactly sure why using a color.inc from pixture_reloaded would give me a list of schemes while the one that comes with AT theme would not. Despite differences in array notation (AT uses the new Drupal standard), both look perfect.

As reference Bartik color settings seem to work even when it set as default, both for "normal" use and as admin theme. It also offers a preview.

Jeff Burnz’s picture

Whats your admin theme?

fkelly12054@gmail.com’s picture

My admin theme is AT. At least when color settings don't work.

I usually try to set normal theme and admin theme the same.

jtjones23’s picture

Version: 8.x-2.x-dev » 8.x-3.x-dev

Same issue so I'll paraphrase the original comment

"With version: '8.x-3.0' and with color support enabled when subtheme was generated, when trying to adjust theme settings, I get a drop down for color scheme and the ability to type in hex codes for base, text color and links. Fine. But after saving them nothing happens. Clear all cache, clear browser cache, nothing happens. When I come back to the settings screen all the original colors are still in the color selection boxes."

mayan62’s picture

I have this issue with the same Version of AT Subtheme and AT theme but for all definitions i could change in the backoffice like fonts layout overwrites etc everything i try to change return back to default after saving.fkelley i wonder if its the same for you or if its just the colors. For me it happened after i tried to update AT to 3 but aftere wiching back to 2 and clearing cache still the possibilty to edit is not working, I can see all in the backoffice but no change can be saved. Thanks a lot Susanne.

Jeff Burnz’s picture

Check if the color file is being generated, should be in the files foler, e.g. something like this:

sites/default/files/color/MY-THEME-NAME-69a6678c

It's hard for me to know whats going on because I can't replicate it, could be permissions, caching - generally I've found this can happen when there's a non-fatal typo in the color.inc file, but since I can't replicate it and can't see one it's a bit opaque to me why this happens.