Skip to content

Fixed: Improve dark mode support for settings and shared activities#5025

Open
salmon-21 wants to merge 1 commit intotermux:masterfrom
salmon-21:fix/dark-mode-settings-and-toolbar
Open

Fixed: Improve dark mode support for settings and shared activities#5025
salmon-21 wants to merge 1 commit intotermux:masterfrom
salmon-21:fix/dark-mode-settings-and-toolbar

Conversation

@salmon-21
Copy link
Copy Markdown

@salmon-21 salmon-21 commented Mar 21, 2026

Summary

  • Settings screen (SettingsActivity), ReportActivity, TextIOActivity, and message dialogs now properly follow system dark mode
  • Replaced hardcoded light-only colors in dialog_show_message.xml and MessageDialogUtils.java with theme attributes
  • Added setNightMode() call to TextIOActivity (was missing, unlike ReportActivity which already had it)
  • Updated toolbar to use neutral surface colors instead of the red brand color in both light and dark modes
  • Wrapped toolbar in AppBarLayout for proper elevation shadow
  • Added values-night/colors.xml for dark-appropriate markdown code block background colors

Screenshots

Light mode Dark mode
Before screenshot_before_light screenshot_before_dark
After screenshot_light screenshot_dark

Test plan

  • System dark mode ON → Settings screen displays with dark background and neutral toolbar
  • System light mode ON → Settings screen displays with white background/toolbar with elevation shadow
  • Terminal screen appearance unchanged
  • Sidebar (session list) appearance unchanged
  • Terminal long-press context menu appearance unchanged
  • use-black-ui=true setting still works
  • All PreferenceFragments (Termux, API, Float, Tasker, Widget) follow dark mode
  • ReportActivity and TextIOActivity follow dark mode
  • Message dialogs follow dark mode

Fixes #2900

🤖 Generated with Claude Code

Replace hardcoded light-only colors with theme attributes so that
SettingsActivity, ReportActivity, TextIOActivity, and message dialogs
follow the system dark mode setting. Also update toolbar styling to
use a neutral surface color instead of the red brand color, and wrap
the toolbar in AppBarLayout for proper elevation shadow.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@salmon-21 salmon-21 force-pushed the fix/dark-mode-settings-and-toolbar branch from e43d6e3 to d835c8d Compare March 21, 2026 08:49
@mio-19
Copy link
Copy Markdown

mio-19 commented Mar 31, 2026

looks better than before

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: In termux settings have a dark theme

3 participants