Skip to content

Commit

Permalink
code_block [nfc]: Update outdated comment
Browse files Browse the repository at this point in the history
This referred to the dark theme that web was using before it
switched to Pygments Monokai, in zulip/zulip#26898. No particular
need to explain the choice of background color, especially as we
intend to replace these styles anyway; that's zulip#754.
  • Loading branch information
chrisbobbe committed Jun 21, 2024
1 parent 155895a commit 99f6a8b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/widgets/code_block.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ class CodeBlockTextStyles {
c: TextStyle(color: const HSLColor.fromAHSL(1, 180, 0.33, 0.37).toColor(), fontStyle: FontStyle.italic),

// TODO: Borders are hard in TextSpan, see the comment in `_buildInlineCode`
// So, using a lighter background color for now (precisely it's
// the text color used in web app in `.err` class in dark mode)
// So instead, using a background color for now.
//
// .err { border: 1px solid hsl(0deg 100% 50%); }
err: const TextStyle(backgroundColor: Color(0xffe2706e)),
Expand Down

0 comments on commit 99f6a8b

Please sign in to comment.