Hi Urs, sorry for the delay. This was a temporary hack, and now I'm looking at a proper solution! To address your points:
-"The white border is quite disturbing in standardwhite" - I thought the effect with this theme was barely noticeable (white on pale grey sideblock header background). I agree that other themes - cornflower, wood, chameleon?, and other user's themes would need modifying, so not ideal.
- "Why not create a real high contrast theme" - yes, that could be worthwhile ( http://moodle.org/mod/forum/discuss.php?d=85119 ) but is not sufficient on its own, because
1. many users who need high contrast, need it across their system not just in the browser (and hiding blocks may be very useful for these people to reduce screen clutter);
2. it needs to be configured per install;
3. users need to know about it.
–
On to my solution:
-It replaces <a href="#" onclick=".."><img src="spacer.gif" alt="[generic text]" /></a>, with
<input type="image" onclick=".." src="switch_minus.gif" alt="[specific text]" />
-The foreground image stays visible in "Windows High Contrast" mode.
-The SRC and ALT attributes are switched in Javascript.
The images can be themed using "smartpix": Admin - Miscellaneous - Experimental - smartpix (manipulates $CFG>pixpath).
-Specific text, example "Show Latest News block", "Hide Latest News block".
-Text is multi-language - passed in via PHP.
The attached patch is not final (it contains a bug to do with cookies/initialisation). It affects 6 files:
-blocks/moodleblock.class.php - block_base::_title_html method.
-lib/javascript-static.js - elementToggleHIde, elementCookieHide functions.
-lib/weblib.php - print_side_block_end function probably needs changing.
-lang/en_utf8/access.php
-theme/standard/styles_color.css - removing rules, including border hack.
-theme/standard/styles_layout.css
Comments welcome! Thanks, Nick
I was able to see Moodle under "Windows High Contrast Black" mode, but I could not see what buttons are not showing, could you please give us an example of what button is missing?