Skip to content

Commit 6530a23

Browse files
authored
settings: rename cssNight.js to cssDark.js
Rename cssNight.js to cssDark.js and update required imports
2 parents fff58b3 + 97b3fa3 commit 6530a23

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/howto/new-feature.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ list, which we show in a WebView.
296296
type.
297297

298298
* Your new feature may require some new CSS to style the new HTML.
299-
See `src/webview/static/base.css` and `src/webview/css/cssNight.js`.
299+
See `src/webview/static/base.css` and `src/webview/css/cssDark.js`.
300300

301301
* If your new feature involves any interaction inside the message
302302
list, it may require some JS logic running inside the WebView.

src/webview/css/css.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Platform } from 'react-native';
33
import type { ThemeName } from '../../types';
44
import cssPygments from './cssPygments';
55
import cssEmojis from './cssEmojis';
6-
import cssNight from './cssNight';
6+
import cssDark from './cssDark';
77
import type { ServerEmojiData } from '../../api/modelTypes';
88

99
/**
@@ -27,7 +27,7 @@ export default (theme: ThemeName, serverEmojiData: ServerEmojiData | null): stri
2727
<link rel='stylesheet' type='text/css' href='./base.css'>
2828
<link rel='stylesheet' type='text/css' href='./katex/katex.min.css'>
2929
<style>
30-
${theme === 'dark' ? cssNight : ''}
30+
${theme === 'dark' ? cssDark : ''}
3131
${cssPygments(theme === 'dark')}
3232
${cssEmojis(serverEmojiData)}
3333
</style>
File renamed without changes.

0 commit comments

Comments
 (0)