QssStylesheetEditor icon indicating copy to clipboard operation
QssStylesheetEditor copied to clipboard

[BUG] in-time preview seems to be broken (v.1.7.0)

Open nerypa opened this issue 2 years ago • 3 comments

Changes in the stylessheet dont show in the Preview window.

After making some changes to the stylesheet you have to either change the style back and forth via the Combobox in the toolbar or you have to disable and enable the DisableQss checkbox to get the preview window updated.

TESTED ON QssStylesheetEditor 1.7.0 Windows 10 64bit

nerypa avatar Jul 11 '21 11:07 nerypa

It may be not a bug. to accelerate the editor's working, the preview window will rerender when user inputed one line( such as input cr/lf, up or down arrow, mouse click to change position etc.), it would not update after just a letter changed.

hustlei avatar Jul 12 '21 00:07 hustlei

  1. I just checked again to make sure, but unfortunately it doesn't work for me at all.. Also not after putting in one or several new lines and/or features. The Preview window will always stay the same. Now the only way to update the Preview window is to change the style back and forth via the Combobox in the toolbar or by disabling and enabling the stylesheet via the DisableQss checkbox in the toolbar, which seems a bit tedious.

  2. This was actually working in previous versions like a charm and was in my opinion a really convenient feature. For example, after changing a color or border style the update was immediately visable in the Preview window.

Note: The Color variable window for example gets still updated in version 1.7.0 when a line is changed and/or added (for example when a new color variable is added or an existiing color variable is changed).

nerypa avatar Jul 12 '21 08:07 nerypa

I got it, when direct assign a color name such as "red" "blue" to a variable, the preview window won't update.

I fixed it in the source

hustlei avatar Jul 14 '21 04:07 hustlei