Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-10016

SWF Editor - Add API to set SWF theme and refresh the Canvas

    XMLWordPrintable

Details

    Description

      Implement and expose an js API to set  "dark" or "light" theme on the SWF Canvas and refresh the canvas to apply the style changes.

      The theme should be changed by calling the javascript function "applyTheme('[light/dark])"  exposed in the editorFrame similar to the way the functions "set/getContent()" are called.   

       

      How to test:

      • From the console tab select the Active Frame(VsCode) / editorFrame(Browser)
      • Similar to the set/getContent functions call the applyTheme("[dark/light]")
        • e.g.
          • await gwtEditorBeans.get("SWDiagramEditor").get().applyTheme("dark")
          • await gwtEditorBeans.get("SWDiagramEditor").get().applyTheme("light")

       

      Expected Behavior:

      • By calling applyTheme() function it must be possible to switch in between light and dark themes.
      • Theme changes on loaded diagram will cause the diagram to reload.
      • The theme should remain the same if the diagram is modified from text editor.

      Attachments

        Issue Links

          Activity

            People

              handreyrc Handrey Cunha
              handreyrc Handrey Cunha
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: