Uploaded image for project: 'Kopano WebApp'
  1. Kopano WebApp
  2. KW-2564

Add support for simple JSON themes

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.4.17
    • Security Level: Public
    • Labels:
      None

      Description

      Theming should be simplified. Since most themes only create a simple branding of the WebApp we can make it possible to do this without writing a full blown plugin with a (not very nice looking) css file.

      It should be possible to create a theme by adding a directory to the plugins directory that contains a file called 'theme.json'. In this file the following properties can be set:

      display-name = the name of the theme as shown in the theme dropdown in Settings
      primary-color = the color of the main tabbar, the sign-in button and the titlebar of the welcome page
      primary-color:hover = the primary color for hovered buttons
      action-color = the color of action buttons
      action-color:hover = the color of hovered action buttons
      logo-large = the (relative or full) url of the logo used on the sign in pagelogo-small = the (relative or full) url of the logo used inside the WebApp
      background-image = the (relative or full) url of the background image of the login page
      spinner-image = the (relative or full) url of the image used as spinner when logging in 

      When a primary color is given but not the primary hover color, the latter will be generated automatically.

      When a action color is given but not the action hover color, the latter will be generated automatically.

      When a large logo is given but not a small logo, the large logo will also be used (resized by the browser) as small logo

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rtoussaint Ronald Toussaint
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: