Modifying a theme does not take effect in the grid

Hello,

I am currently trying to customize my grids.
I created an own theme, by copying ScriptCase5Red theme.

Now I modified some values, like the toolbar’s background color and it’s padding and the padding of the blocks.
The effects are shown in the theme’s preview, but they are not taken over by the grid itself!

Is that a bug?

Regards,
Sascha.

Re: Modifying a theme does not take effect in the grid

When changing theme of a form or grid, did you notice that there are a lot of subfolders under the grid that have there own variables? I made some mistakes with that in the past. Check to make sure you make the adjustments on the right place.

You say you see changes in preview but not in grid itself. Do you run the form from within SC, or after deploying the grid?
Make sure that when you deploy the grid, that you check the checkboxes “deploy with the common files(css etc)”.

Re: Modifying a theme does not take effect in the grid

Hello,

Since I the modifications are immediately reflected in the preview, I suppose I made everything correct.
For example, I directly formatted the “toolbar” option, but without result :-/

At the moment, I still run from within SC…

Re: Modifying a theme does not take effect in the grid

I tested a simple case:

  1. created grid.
  2. opened theme “Scriptcase5_green”
  3. changed backgroud color in Grid -> Toolbar -> Line to red
  4. saved the theme with new name “test_theme”
  5. attached this new theme in the grid.
  6. run application (green triangle button)

It shows the toolbar in red, so it seems to work for me. Did you do the same steps?

Re: Modifying a theme does not take effect in the grid

At the moment I do not have access to my SC installation, so I’ll try to remember the steps I’ve taken.

  1. I created a copy of theme “Scriptcase5_red” as a theme in the “public” folder.
  2. I assigned that custom theme to my grid application, by setting Grid -> Layout -> Settings -> Theme
  3. Then I undertook changes: modified backgroud color in Grid -> Toolbar -> Line to red
  4. I ran the application

I even assignend the theme anew, which also did not work.

Re: Modifying a theme does not take effect in the grid

should work. I’m still on 5.1, could that be the problem?

Re: Modifying a theme does not take effect in the grid

Maybe that’s the reason.
I am on the newest version 5.2.007.

I postet the problem to the support, still waiting for the reply.

Re: Modifying a theme does not take effect in the grid

I see this in nested grids with the latest updates… theme is no obeyed.

Regards,
Scott.

Re: Modifying a theme does not take effect in the grid

How do I create a CSS personal on Grid Theme?

Regards,
Magen Sijabat

Re: Modifying a theme does not take effect in the grid

Tools, layout, Themes: New … save from an existing and name as your own… you can then edit as needed.

Regards,
Scott.

Re: Modifying a theme does not take effect in the grid

Tools, layout, Themes: New … save from an existing and name as your own… you can then edit as needed.

I’ve done before.
on the grid, layout, settting I have found a theme that I created.
But, when I run, the font color of the grid view has not changed.

Regards,
Magen Sijabat

Re: Modifying a theme does not take effect in the grid

I have had this happen before.

Solutions:
-delete ALL files in tmp DIR.
-make a change to the theme and save again
-generate all

The other solution was I had to reinstall SC.

I have found that the themes sometimes get lost in upgrades :frowning:

Regards,
Scott.

Re: Modifying a theme does not take effect in the grid

reinstall SC may no solution.

I have edit manual theme on :scriptcase/app/project_name/_lib/css/theme_name.

Regards,
Magen Sijabat

Re: Modifying a theme does not take effect in the grid

If I reinstall, I first rename the DIR and then install new version … then copy all of my themes, code back from the renamed version.

Regards,
Scott.