|
[
Permalink
| « Hide
]
Urs Hunkler added a comment - 05/Oct/06 12:36 AM
Andy, do you see a way to solve Thimothy's needs with the Chameleon Hotspots?
Hi Timothy/Urs,
Yes, Chameleon hotspots may help a bit here. They can be enabled with a tiny modification in the file moodle/theme/[your_chameleon_theme]/ui/chameleon_js.php Search this file for the line // UI.HotSpots.init(); it should be around line 3110. Remove the // from the start of it, then save the file. Now when you view a page using your chameleon theme, you should see an option at the top of the page to load hotspots. Clicking this will add a bunch of icons "hotspots" next to various sections of the page. Clicking an icon will give you a description of what elements in your site the hotspot will style (for example something like the "text in the block headings") You can then set colours, fonts, borders etc... and save your modified theme. More flexible themes with CSS constants: An option for Moodle retro themes and easy colour palette variants.
I adopted Shaun Inman's "CSS Server-side Constants" to Moodle: http://www.shauninman.com/post/heap/2005/08/09/css_constants With setting "cssconstants" to true in "config.php" you activate the CSS constants. If "cssconstants" is missing or set to "false" the replacement function is not used. $THEME->cssconstants = true; The constant definitions are written into a separate CSS file named like "constants.css" and loaded first in config.php. You can use constants for any CSS properties. The constant definition looks like: @server constants { The lines in the CSS files using CSS constants look like: body { All CSS constants are replaced in weblib.php in the "function style_sheet_setup( )" after all CSS files are collected. The replacing function I took from Shaun Inman and pasted into "libdir/cssconstants.php". I'll commit "weblib.php" and "libdir/cssconstants.php" and add a test theme here. Petr or Martin can you please check if there are any problems. Thanks. Moodle test theme "css_constants" with CSS constants - two different CSS constant definitions are included. Works only when CSS constants are integrated into "weblib.php"
With CSS constants you can change themes very similar to the Moodle 1.4 themes. We need now a basic theme giving an example. But that is another story
Thanks very much indeed. That will make my eventual upgrade so much easier.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||