Skip to content

Mixin Themes not loading correctly #1088

Closed

Description

@itg-assistant

Marian Ryt asked 2017-09-12 13:04:14 UTC

Hello,

I tried to use Mixin Themes to define some new colors and appearance keys. When I debug the project locally, everything works fine. But once I publish it, the stuff defined in the mixin theme file appears to be missing. I put the mixin theme file in the "Themes" directory and its Build Action is set to "Embedded Resource".

Here's how it looks when I debug it in VS:

Once I publish it to the server, it looks like this:

Which is just the default look of the MenuBar and a Button without any theming.

When I open the browser debugger, I see a couple of "qx.theme.manager.Appearance[24-0]: Missing appearance: xyz" lines in the console output, but I don't see any error messages about failing to load the mixin theme. I guess it simply doesn't exist. Any idea what might cause this? Could this be a server issue or is this more likely a problem with my project?

Activity

  1. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Luca answered 2017-09-12 16:53:20 UTC

    Wisej loads embedded resources only when the [assembly: WisejResources] attribute is set in AssemblyInfo. When that attribute is present all embedded .js files in /Resources and /Platform are bundled with wisej.js and minified (when not in debug mode), all embedded .css files in /Resources and /Platform are bundled with wisej.css and minified (when not in debug mode) and all embedded .mixin.theme files in /Themes are loaded and mixed in the current theme.

    Wisej does this for all assemblies loaded by the application, including the core assemblies, extensions, etc.

    Mixins are also loaded directly from the /Themes folder to let you change the theme without having to recompile the app. So you can either 1) deploy /Themes or 2) uncomment the WisejResources attribute.

    See this post for a downloadable example with mixins. However it looks like you already used the mixin correctly.

    http://wisej.com/support/question/themebuilder-usercontrol

    I will also add an enhancement request to see if we can load the embedded mixins from the application's assembly without having to add that attribute. Plus I noticed that the page "Embedded Resources" is not deployed in in the /docs.

    HTH

  2. added
    BugSomething is broken or behaving unexpectedly.
    on Jun 12, 2026
  3. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Luca answered 2017-09-12 16:55:21 UTC

    Correct, those are just warnings being logged as the theme styles get resolved into style sheet rules on demand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is broken or behaving unexpectedly.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions