Classic-2 theme added

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!
1
0

Added the Classic-2 theme. It has metrics similar to VWG. The problem with going from VWG to Wisej is that VWG messed up the size/client-size of forms.
In VWG the form sets and serializes Size instead of ClientSize.
It also applies the Size as if it was the ClientSize and enforces MinSize and MaxSize on the client instead of the overall size.

Wisej preserves the ClientSize and enforces MaxSize and MinSize on the overall size, which is the correct implementation.

To go from VWG to Wisej without messing up the size of a form, regardless of the theme:

– Replace all this.Size to this.ClientSize in Form.desiger.cs/

– Either remove or recalculate MinSize and MaxSize to enforce the overall size.

  • You must to post comments
0
0

Update Classic-2 theme with active state

  • blue title bar
  • white title and buttons (inc. tool buttons)
  • DGV add row icon
Attachment
  • You must to post comments
0
0

Update Classic-2 theme  with active state

  • blue title bar
  • white title and buttons (inc. tool buttons)
Attachment
  • You must to post comments
0
0

Actually the themes definition docs are there:

http://wisej.com/docs/html/Themes.htm

  • You must to post comments
0
0

Inactive caption:

In Windows 10 I get the same white caption, only the thin border and the title text change color when inactive.

In any case, that is easy to personalize with a mixin.

{
   "colors":
   {
     "inactiveCaption": rgb(1,2,3)
   }
}

I just typed this so I’m not sure it works and the rgb() color is a placeholder. You can use the #rrggbb or rgba() formats as well.

Make a custom theme available to multiple projects:

Good question. Custom themes are single files that the project needs to find somewhere. You can either copy them in the /Themes folder (in which case the folder and the theme must be deployed), or you can make your theme become an embedded resource in your shared assembly and it will be available to all the projects that use that assembly.

In the shared assembly, make the theme file become an “EmbdeddedResource” and ion AssemblyInfo.cs add

using Wisej.Core;

[assembly: WisejResources()]

 

I haven’t tried this in a while as well. Will try next and let you know if I got it wrong.

  • You must to post comments
0
0

One issue:

  • On Classic-2, the activeCaption and the inactiveCaption are the same white colour. Shouldn’t the activeCaption should be some shade of blue?

One question:

  • Since the documentation was updated only up to Designer that is just before Themes, how should I do in order to make my themes available to all projects? Must I copy it to every single project Themes folder?
  • You must to post comments
0
0

It’s available on the themes download page.

  • You must to post comments
Showing 6 results
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Attachment
File Name Size
There are currently no files uploaded.
Maximum number of files 1, maximum file size 3.9MB.
Supported file formats: zip pdf gif jpg bmp png cs vb theme json