Closed GoogleCodeExporter closed 9 years ago
I asked on your forum at MobileRead if this can be configured through tweaking
some underlying config file (I know already that this can't be done in the
Preferences). I was informed that the syntax colouring can't be changed. How is
this possible, surely it's not hardcoded? :-O
Original comment by niccig...@gmail.com
on 8 Feb 2012 at 1:10
> How is this possible, surely it's not hardcoded?
It is. The editor is a custom component and accessibility is not a priority.
Original comment by john@nachtimwald.com
on 9 Feb 2012 at 12:12
Original comment by john@nachtimwald.com
on 9 Feb 2012 at 12:12
John,
I understand that getting bugs fixed for existing features is of high priority.
I think however, that accessibility - especially the basic ability to be able
to cope with other UI background colours - should be a foundational priority in
UI design in the first place. Enabling the user to change the UI colours should
be a foundational and basic requirement.
Note that the rest of the Sigil UI handles a black background quite well, but
it's the code view that lets it down in this regard.
I would be happy in investigating in fixing this problem for myself, even if
not a high priority for others. Please would you give me some information on
which editor component is being used and some pointers to where this component
is included in the code.
Many thanks in advance
Glen
Original comment by niccig...@gmail.com
on 20 Feb 2012 at 12:53
I've just re-read your answer. I understand now that it's a custom editor
component. I revise my previous request to - please would you point me to the
code for this custom editor component and where it hooks into the rest of the
UI?
Then I can either try to refactor the code to read the syntax colouring from a
config file, or as a short-term solution just hack it for my own purposes so I
can change the colours for myself.
Thanks
Glen
Original comment by niccig...@gmail.com
on 20 Feb 2012 at 1:01
Color selection for highlighting is in
http://code.google.com/p/sigil/source/browse/src/Sigil/Misc/XHTMLHighlighter.cpp
Color selection for the line number area as well as font size in
http://code.google.com/p/sigil/source/browse/src/Sigil/ViewEditors/CodeViewEdito
r.cpp
See ResetFont in CodeViewEditor.cpp for where the font face is set.
Original comment by john@nachtimwald.com
on 20 Feb 2012 at 1:22
Excellent! Thanks for your help
Original comment by niccig...@gmail.com
on 23 Feb 2012 at 11:31
Issue 1331 has been merged into this issue.
Original comment by meme90...@gmail.com
on 26 Mar 2012 at 8:16
Original title: Code View does not pass basic accessibility guidelines for
people who have a vision impairment and use a black background.
Code View / CSS / TOC / NCX now allows colours to be set for font, foreground,
background, and highlighting.
Original comment by daveheil...@gmail.com
on 24 Aug 2012 at 6:21
Original issue reported on code.google.com by
niccig...@gmail.com
on 8 Feb 2012 at 12:59