Skip to main content
Home Forums 68kMLA Kaleidoscope Scheme to Appearance Theme Conversion — #37
Post #37 by Dennis Nedry
Source Forum68kMLA
CategoryTroubleshooting
Post DateWed, 30 May 2012 - 23:10
Original URLhttps://68kmla.org/bb/threads/kaleidoscope-scheme-to-appearance-theme-conversion.25108/
Post
This is parsed directly from a wnd# resource. I have done non-stretching parts of the top and bottom.

Stretch regions are going to be tricky. Sides with 1 or 2 stretch regions should be possible. Because I can only split things in half proportionally in themes, I think that we're stuck with 2^n numbers of stretch regions, otherwise they won't be evenly spaced. Even with, say, 4 stretch regions, all of the little "islands" would have to be the same size. I can calculate anything I want in the converter program, but unfortunately I don't have math functions available directly in themes, all I can do is cut things in half. There may not be many schemes that use more than 2 stretch regions per side, though.

The Close, Zoom and Collapse boxes will require the same color table combination code as the scroll arrows before they will work properly.

This wnd# code is VERY MESSY, most of the code is switch statements. There is nothing done for stretch regions, islands, or left/right sides yet. I did it that way to avoid copy/pasting the same code chunks with little changes, but I think there comes a point where the copy/pasting has an advantage.

Picture-2.gif

Picture-3.gif

mp.ls