Default colors for xi:include in programlisting unreadable
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 3
- Joined: Mon Mar 09, 2015 12:41 am
Default colors for xi:include in programlisting unreadable
I use include for programlisting elements.
However switching to the Dark theme the default settings makes included text unreadable.
In dark-theme.css the text color for programlisting is set as "" which is a light:ish green. This is fine for a dark background. However, for a reason I cannot figure out the text background of any text included with an "Xinclude" statement becomes grey (just the text background - not the overall block background) - (I set the parse element of the include to "text")
I've tried to figure out how the included text gets its grey text-background but I'm apparently not enough of a css wiz to figure this out. I cannot even find the color code which is used for the background which makes me think its some kind of inherited blended color.
So I guess this is
a) A minor bug report (since the text by default is not readable) when using include in a programlisting element
b) Question how I can change the text-background color until a version where this is fixed?
Cheers!
Johan
However switching to the Dark theme the default settings makes included text unreadable.
In dark-theme.css the text color for programlisting is set as "
Code: Select all
color:#179C32 !important;
I've tried to figure out how the included text gets its grey text-background but I'm apparently not enough of a css wiz to figure this out. I cannot even find the color code which is used for the background which makes me think its some kind of inherited blended color.
So I guess this is
a) A minor bug report (since the text by default is not readable) when using include in a programlisting element
b) Question how I can change the text-background color until a version where this is fixed?
Cheers!
Johan
-
- Posts: 9451
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Default colors for xi:include in programlisting unreadable
Hi Johan,
Thanks for the report, I will add an internal issue for this.
In the "dark-theme.css" there is a CSS selector like:
That is the color you should try to change. For each xi:include Oxygen creates a special node called a "reference" node pointing to the external content. And it is usually styled in a way to signify that it is read-only content.
Regards,
Radu
Thanks for the report, I will add an internal issue for this.
In the "dark-theme.css" there is a CSS selector like:
Code: Select all
oxy|reference,
oxy|entity{
background-color: rgb(128,128,128) !important;
}
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 3
- Joined: Mon Mar 09, 2015 12:41 am
Re: Default colors for xi:include in programlisting unreadable
Thanks!
Changing this fixed the issue I was having.
(When you address this issue might I suggest you set the entire background color of the (reference) block and not just the text-background?)
Cheers!
Johan
Changing this fixed the issue I was having.
(When you address this issue might I suggest you set the entire background color of the (reference) block and not just the text-background?)
Cheers!
Johan
-
- Posts: 9451
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Default colors for xi:include in programlisting unreadable
Hi Johan,
Regards,
Radu
I think this behavior comes from the fact that the oxy|reference node is considered in this case an inline element. An xi:include may also occur in the middle of a paragraph to refer to some product name for example so it makes sense for the oxy|reference to prefer being an inline element. Only a block element can change the background of the entire rectangle in which it is placed.When you address this issue might I suggest you set the entire background color of the (reference) block and not just the text-background?
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 9451
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Default colors for xi:include in programlisting unreadable
Hi,
Just to update this thread, the latest Oxygen version 19.0 we just released should have the proposed color changes implemented.
Regards,
Radu
Just to update this thread, the latest Oxygen version 19.0 we just released should have the proposed color changes implemented.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service