<ahref="#Generating_a_night-mode_CSS_from_scratch"><spanclass="tocnumber">2.4</span><spanclass="toctext">Generating a night-mode CSS from scratch</span></a>
</li>
<liclass="toclevel-2 tocsection-7">
<ahref="#Specifying_a_night-mode_CSS_per_wiki"><spanclass="tocnumber">2.5</span><spanclass="toctext">Specifying a night-mode CSS per wiki</span></a>
<ahref="#Flashing_white_background_when_viewing_new_pages"><spanclass="tocnumber">3.2</span><spanclass="toctext">Flashing white background when viewing new pages</span></a>
<ahref="#Flashing_white_background_when_opening_new_tabs"><spanclass="tocnumber">3.3</span><spanclass="toctext">Flashing white background when opening new tabs</span></a>
<ahref="#Various_icons_are_hard_to_see_in_night_mode"><spanclass="tocnumber">3.4</span><spanclass="toctext">Various icons are hard to see in night mode</span></a>
<b>Options</b>: Go to <ahref="http://xowa.org/home/wiki/Special:XowaCfg%3Fgrp%3Dxowa.gui.nightmode.html"id="xolnki_2"title="Special:XowaCfg?grp=xowa.gui.nightmode">Special:XowaCfg?grp=xowa.gui.nightmode</a> and check <code>Enabled</code>
By default, a simple white on black theme is chosen. Exact colors can be chosen through <ahref="http://xowa.org/home/wiki/Special:XowaCfg%3Fgrp%3Dxowa.gui.nightmode.html"id="xolnki_3"title="Special:XowaCfg?grp=xowa.gui.nightmode">Special:XowaCfg?grp=xowa.gui.nightmode</a>.
Colors for all HTML content are specified through the CSS. By default, XOWA uses a global css at C:\xowa\bin\any\xowa\html\css\nightmode\xowa_night.css.
Go to <ahref="http://userstyles.org"rel="nofollow"class="external free">http://userstyles.org</a>
</li>
<li>
Search for Wikipedia
</li>
<li>
Pick a user-style. For the current global CSS, I used <ahref="https://userstyles.org/styles/105844/wikipedia-dark-st"rel="nofollow"class="external free">https://userstyles.org/styles/105844/wikipedia-dark-st</a>
</li>
<li>
Click the "Show CSS" link
</li>
<li>
Copy the CSS and place it in C:\xowa\bin\any\xowa\html\css\nightmode\xowa_night.css.
</li>
<li>
Remove any line that starts with "@-moz-document"
</li>
<li>
Remove any line that loads external urls (for example, loading images from <ahref="http://imgur.com"rel="nofollow"class="external free">http://imgur.com</a>)
<b>Wiki-specific</b>: XOWA first checks for a night-mode CSS in this location: C:\xowa\user\anonymous\wiki\your_wiki_name\html\xowa_night.css
</li>
<li>
<b>User global</b>: If XOWA doesn't find a wiki-specific file, it checks for a user-defined global file here: C:\xowa\user\anonymous\app\overrides\bin\any\xowa\html\css\nightmode\xowa_night.css.
</li>
<li>
<b>XOWA global</b>: If XOWA still doesn't find a CSS file, it uses the global file that is distributed with the XOWA application package here: C:\xowa\bin\any\xowa\html\css\nightmode\xowa_night.css
</li>
</ul>
<dl>
<dd>
<b>Note that the XOWA global file should not be modified. Any modifications here will be lost in the next update.</b>
The HTML browser can sometimes flash white when viewing new pages. This seems to be an issue with the SWT browser control. It can be mitigated through the following
</p>
<ul>
<li>
Go to <ahref="http://xowa.org/home/wiki/Special:XowaCfg%3Fxowa.app.security.html"id="xolnki_4"title="Special:XowaCfg?xowa.app.security">Special:XowaCfg?xowa.app.security</a>
</li>
<li>
Change <code>Load HTML to browser method</code> to <code>url</code>
</li>
</ul>
<p>
Note that this option is not changed automatically because it has a minor privacy implication (pages are saved temporarily to the disk instead of being set directly through memory)
The HTML browswer can still flash sometimes when opening new tabs (Ctrl+T). This is an issue with the SWT tab control. Unfortunately, this cannot be changed
For example, the save button on the New Personal Wikis screen is a black floppy disk. This is hard to distinguish against a black background.
</p>
<p>
By default, XOWA is designed for a non-night-mode setting ("day mode"). Most icons will look fine for day mode. Unfortunately, resources are not available to always support both a "day mode" and a "night mode" theme.
Of course, contributions are always welcome. If you want to contribute a unified night mode theme, please contact me via <ahref="http://xowa.org/home/wiki/Help/Feedback.html"id="xolnki_5"title="Help/Feedback">Help/Feedback</a>
<li><ahref="http://dumps.wikimedia.org/backup-index.html"title="Get wiki datababase dumps directly from Wikimedia">Wikimedia dumps</a></li>
<li><ahref="https://archive.org/search.php?query=xowa"title="Search archive.org for XOWA files">XOWA @ archive.org</a></li>
<li><ahref="http://en.wikipedia.org"title="Visit Wikipedia (and compare to XOWA!)">English Wikipedia</a></li>
</ul>
</div>
</div>
<divclass="portal"id='xowa-portal-donate'>
<h3>Donate</h3>
<divclass="body">
<ul>
<li><ahref="https://archive.org/donate/index.php"title="Support archive.org!">archive.org</a></li><!-- listed first due to recent fire damages: http://blog.archive.org/2013/11/06/scanning-center-fire-please-help-rebuild/ -->