6 Replies Latest reply on Jul 8, 2014 10:45 AM by NickLightbody

    Theme corruption


      I wonder whether anyone else has observed the following or perhaps has a different view?


      Having lately had a problem with the the text labels on new buttons not being correctly vertically centred in FMWebDirect on Safari 7.0.4 I discovered that if I changed the layout to use an earlier version of my theme the problem disappeared.


      More specifically - the style I created locally - i.e. it is a local theme until it and any current amendments have been saved to the current page theme - worked correctly until I saved it to the current theme - when lost its vertical centreing - when viewed in FMWebDirect.


      When I changed the page to use an earlier version of my theme - and repeated the same steps - the style worked as expected after it had ceased to be a local style and was incorporated into the current page theme - in this case my earlier version of my theme.


      From this I deduce that the later version of my theme has become corrupt - so that it prevents the relevent style being rendered correctly when saved to the theme.


      So my conclusion is that it may prove good practice to save new versions of one's hard won custom themes on a regular basis - so that the process of reverting to an earlier one is not too painful - although I am not looking forward to changing the theme of every layout to the theme that works as expected.


      Interested to hear your observations on this?


      Cheers, Nick

        • 1. Re: Theme corruption

          Any chance that you accidentally removed the style and saved the (now unstyled) label changes up to your file-wide theme? That seems more likely than corruption to me. If you accidentally had a label selected along with some other object you were styling for instance.


          If you correct the style for the label and save the changes to the theme, do the changes not stick?

          • 2. Re: Theme corruption

            My best guess is that you have been a bit lumpy with managing styled and theme changes along the way and now it's coming to bite you. For what it's worth, my experience so far is that you have to be very disciplined with regard to theme modifications. It's easy—particularly if you've been using FM for a while and thus styles and themes is new thinking—to forget to save style changes as you go, and then save the theme change to incorporate the style change. I am finding that the best way is to use the appearance (and, in FM13, style) inspectors to make changes, as this focuses your mind on this approach.

            • 3. Re: Theme corruption

              Thanks Mike, but I think this is unlikely because my familarity with themes is pretty good nowadays ;-)

              FM Engineering told me some time ago that a Theme in FM13 can be corrupted by introducing an object from a file created with FM12 - you have to copy only the style not the object from your old to your new to avoid this.


              I understand that either the css or the way the css is controlled in FM13 is different to 12 - which makes sense as 13 introduced the ability to edit themes - hence the possibility of "corruption" from 12.


              It was with this fact in mind that I eventually decided that my problem was most likely corruption of the theme.


              Having reverted to an earlier version of my theme yesterday everything appears now to be behaving as expected.


              Look, I don't know for sure - but having worked extensively with themes my current best guess is that it was a theme corruption issue and hence my suggestion that saving ones hard won themes as new versions in a regular manner may just prove to be good practice - its only a suggestion - but I shall be doing this for sure myself.


              Cheers, Nick

              • 4. Re: Theme corruption

                Thanks Keywords, but I think in this case that is not the reason - please see my note to Mike just above.

                Thanks for responding

                Cheers, Nick

                • 5. Re: Theme corruption

                  "I understand that either the css or the way the css is controlled in FM13 is different to 12 - which makes sense as 13 introduced the ability to edit themes - hence the possibility of "corruption" from 12."


                  That makes sense. Thanks for sharing your experience.

                  • 6. Re: Theme corruption

                    for the record here is what I was told - in fact the issue was specifically from classic layouts - not necessarily from 12 layouts generally -


                    FMI said:


                    "one thing you could try to avoid it is to not copy and paste actual layout objects (which carry extra information with them) from Classic to 13 layouts. But instead just copy & paste their *styles*. For example, you could make a copy of your existing Classic layout, change its theme to a standard* 13 theme (which will replace all your custom object styles with theme defaults), and then copy and paste individual object styles from your original layout onto corresponding objects of the new layout (and then save the results as your new theme)."