Graphite theme
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 1
- Joined: Thu Aug 05, 2021 2:34 pm
Graphite theme
How do I change individual element color for the theme?
The graphite theme (version 22.1) is mostly lovely as a dark theme, with the exception of a few elements in dita docments -- such as prolog and codeblock in the default theme.
They are a bit jarring in their current yellow background color form.
The file describing the file has many, many settings none of which obviously link to these elements, which means I cannot really work out what I need to change.
Cheers
The graphite theme (version 22.1) is mostly lovely as a dark theme, with the exception of a few elements in dita docments -- such as prolog and codeblock in the default theme.
They are a bit jarring in their current yellow background color form.
The file describing the file has many, many settings none of which obviously link to these elements, which means I cannot really work out what I need to change.
Cheers
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Graphite theme
Hi,
I added an internal issue to reconsider our color choices for codeblock and prolog in Graphite.
These colors are configured in this CSS:
OXYGEN_INSTALL_DIR/frameworks/dita/css/core/-colors.css
there are two selectors:
If you do not have access rights to edit and save the CSS directly (for example if Oxygen is installed on Windows in the Program Files folder) you would need to follow these steps to add an extra CSS for DITA editing:
https://blog.oxygenxml.com/topics/customizeDITACSS.html
and in the extra CSS you can re-define the selectors.
Regards,
Radu
I added an internal issue to reconsider our color choices for codeblock and prolog in Graphite.
These colors are configured in this CSS:
OXYGEN_INSTALL_DIR/frameworks/dita/css/core/-colors.css
there are two selectors:
Code: Select all
@media oxygen-high-contrast-black, oxygen-dark-theme {
*[class~="topic/pre"] {
color: black !important;
background-color: #FFE080 !important;
}
}
@media oxygen-high-contrast-black, oxygen-dark-theme {
*[class~="topic/prolog"],
*[class~="map/topicmeta"] {
color: black !important;
background-color: #FFE080 !important;
}
}
https://blog.oxygenxml.com/topics/customizeDITACSS.html
and in the extra CSS you can re-define the selectors.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Graphite theme
Hi,
As an update in Oxygen 24 which we released a couple of days ago we changed the colors used in prolog and codeblock elements for the Graphite theme.
Regards,
Radu
As an update in Oxygen 24 which we released a couple of days ago we changed the colors used in prolog and codeblock elements for the Graphite theme.
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)
- ↳ 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