Skip to content

Commit

Permalink
settings: rename cssNight.js to cssDark.js
Browse files Browse the repository at this point in the history
Rename cssNight.js to cssDark.js and update required imports
  • Loading branch information
aritroCoder committed Dec 18, 2022
2 parents fff58b3 + 97b3fa3 commit 6530a23
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/howto/new-feature.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ list, which we show in a WebView.
type.

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

* If your new feature involves any interaction inside the message
list, it may require some JS logic running inside the WebView.
Expand Down
4 changes: 2 additions & 2 deletions src/webview/css/css.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Platform } from 'react-native';
import type { ThemeName } from '../../types';
import cssPygments from './cssPygments';
import cssEmojis from './cssEmojis';
import cssNight from './cssNight';
import cssDark from './cssDark';
import type { ServerEmojiData } from '../../api/modelTypes';

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

0 comments on commit 6530a23

Please sign in to comment.