Skip to content

Commit

Permalink
Fix/markdown code block color (#863)
Browse files Browse the repository at this point in the history
**Background**

Makrdown code blocks on flipper update screen has wrong colors

**Changes**

- Fixed markdown theme colors

**Test plan**

- Find somewhere in app markdown with code block(for example in flipper
update to rc version)
- See that markdown code block now have readeable colors
- Also here's screenshot below
<img width="759" alt="image"
src="https://github.com/flipperdevices/Flipper-Android-App/assets/57789105/70b46033-a501-472c-a9c4-429c06206f63">
  • Loading branch information
makeevrserg authored May 23, 2024
1 parent c089430 commit 8c39d27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
- [FIX] Infrared editor screen bottom navigation padding
- [FIX] Display MfKey32 loading progress when no keys available
- [FIX] Return baseline profiles
- [FIX] Markdown code blocks background color
- [Feature] Add not connected, empty and syncing states to emulation button on key screen
- [Feature] Check app exist on apps catalog manifest loading
- [Feature] First version of device orchestrator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ fun ComposableMarkdown(

@Composable
fun markdownColors(
backgroundCode: Color = LocalPallet.current.text20,
backgroundCode: Color = LocalPallet.current.text8,
text: Color = LocalPallet.current.text100,
link: Color = LocalPallet.current.accentSecond,
dividerColor: Color = LocalPallet.current.divider12
Expand All @@ -48,7 +48,7 @@ fun markdownColors(
codeBackground = backgroundCode,
inlineCodeBackground = backgroundCode,
dividerColor = dividerColor,
inlineCodeText = backgroundCode
inlineCodeText = text
)

@Composable
Expand Down

0 comments on commit 8c39d27

Please sign in to comment.