1 Reply Latest reply on Jan 22, 2017 5:00 PM by Malcolm

    Converting layouts from Classic Theme


      Hello everyone,


      I am using FMPro Adv 14.0.6.

      I finally decided to convert my biggest solution from Classic Theme into a Custom Theme.

      I was aware that it will take a significant amount of time (34 tables, 285 layouts), but I considered this also as an opportunity for refreshing the look.


      So, I started like this: duplicate a layout, convert the new layout to the new Custom Theme, copy/paste everything from older to newer, assign a style to each field, label, button, etc.

      The nightmare has started...

      Many fields may have a different look in different layouts.

      For example, in one layout a field might have "font color Blue, size 12, bold, aligned left", while in an other layout I may need to display "color red, font 10, aligned center, plain". Same for buttons that may look black, grey or whatever. And labels that might be bold or plain, aligned left or right.

      I guess, I need to save different styles for each condition.

      So using the example above I would save one style like: "Field-blue-12-bold-left", but also a style like "Field-red-10-plain-center"...etc etc

      Then inside each layout I will need to peek the specific style for the specific group of fields...

      I have already collected quite a number of styles, FileMaker becomes slow quite often, need to quit and re-run, and the overall time needed is growing.


      My question:

      is the above procedure correct or is there a better/faster way to proceed ?

      Thanks for any input,


        • 1. Re: Converting layouts from Classic Theme

          One trick which may become very handy. Under the hood, converting the theme is a two step process.


          1. Assign the new theme to the layout
          2. Apply all the theme styles to the objects on the layout


          You can take advantage of this


          1. Convert your Classic theme by selecting another theme from the list
            1. Your beautiful layout will be ruined
          2. Immediately use control/command - Z
            1. All of the layout objects will now have "default" styles plus over-rides
            2. Your layout will look as it did before



          Before you start, choose an existing theme as the basis for your look and feel. Duplicate it and give it a distinct name.


          Next, duplicate a layout that has the most common layout objects on it. Use the trick above to convert the classic theme to your new theme. You can use your own styles to redefine the default styles for the theme and add new styles as necessary. When you have changed all the objects on the layout from default+over-ride to named styles you could try converting another layout using this method. At some point, you will be able to convert a layout to your theme and you will only need to apply existing styles to a few objects.

          3 of 3 people found this helpful