I would also like to add my thanks to all those who have given us, often silent users of QLiberator, access to the source and updated for modern SMSQ/E systems.
One of my beefs with using QLiberator on my QPC2 SMSQ/E system is the rather old QRAM style colour of the QLiberator panel. So I decided I would use Per's latest version 3.46 to see what I could do, just out of interest. I wanted to minimise changes and ,if possible, keep the config items as they are. As the colours are coded as byte values, this meant I couldn't use the palette values which have $0201, etc. i.e. words. So I chose to the the 256 PAL colours (COLOUR_PAL) which would fit with the config byte items. What I found was that it was surprisingly easy and attached are the file of changes I used.
If anyone wants to use them, feel free. Do the following:
1. Load the QLIB_BAS source from Per's latest 3.46 source file release
2. Copy the code below into a SBASIC source file and merge into the loaded QLIB_BAS file
3. Compile the program as you usually would using your current version of QLiberator.
Some comments on the changes:
Line 239 Select 256 colour mode for the program
Line 240 Set the version. I used 3.50, but you could remove this line if you wanted
Line 610 Changed from INK#rpt,7 to the configured text ink colour _TICOL
Lines 27910, 27920 Commented out as overwritten by following two lines anyway
Line 27924 Changed banner title on Qliberator panel. Optional.
Line 28110 Changed from INK#console,7 to the configured text ink colour _TICOL
Line 29770 Changed value passed to "display_window" from a hard coded 4 to the cursor colour config item, _CUCOL
Code: Select all
239 COLOUR_PAL
240 QLIBversion$ = "3.50" : REMark Q_Liberator's Version number
610 INK #rpt, _TICOL
27910 REMark CURSOR #console, 0, 0
27920 REMark PRINT #console," Copyright 1993 Liberation Software Release " & QLIBversion$
27924 PRINT #console," The SMSQ/E Edition 2024 Release " & QLIBversion$
28110 INK #console, _TICOL : REMark INK #console, 7.......Change to Config value
29770 display_window _CUCOL : REMark Changed from display_window 4
Once you've compiled you will want to change the configured colours as the original ones will give a rather poor display. The following colours will give you a very similar look to the original QRAM style as a start point:
Text INK colour : 1
Background PAPER colour : 14
Selected ITEM colour : 2
Deselected item colour : 0
Cursor colour : 3
Then you can play around with these to get the colour combinations you like.
Have fun.
Jon