Skip to main content
Home Forums 68kMLA Kaleidoscope Scheme to Appearance Theme Conversion — #8
Post #8 by Dennis Nedry
Source Forum68kMLA
CategoryTroubleshooting
Post DateTue, 17 Apr 2012 - 23:04
Original URLhttps://68kmla.org/bb/threads/kaleidoscope-scheme-to-appearance-theme-conversion.25108/
Post
Not much to show for it, but I have made progress creating the clr# (theme text color) resource and have added the ability to update a color in the clr# based on a particular pixel in a cicn. Because cicns have color tables, the "get pixel color" function first finds the pixel based on x, y coordinates, reads the index stored there, and looks up that index in the color table. It returns the 3x16bit color. With that color, you are then able to call another function to overwrite a default color already stored in the clr# resource.

Since this functionality is similar to plut resources, I went ahead and polished plut first. It now supports user and required plut resources. Required pluts start with default values that can be overwritten just like the clr# resource.

The only visible effect is that now the document window's title text is converted to the right color automatically.

I have run into an issue when converting the inactive document window frame in Onyx. The image is 1-bit and for some reason it is not parsing correctly. It ends up being twice the width that it should be.

mp.ls