GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(tui): add appearance setting with dark/light/system modes by nguyenphutrong · Pull Request #7182 · anomalyco/opencode

Conversation

@nguyenphutrong

@nguyenphutrong nguyenphutrong commented Jan 7, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Summary

Adds an appearance config option to control the TUI color scheme with three modes:

  • dark: Always use dark variant of theme
  • light: Always use light variant of theme
  • system: Auto-detect from terminal background color (polls every 5s)

Changes

  • Added appearance field to config schema (dark | light | system)
  • Added appearance selector UI in theme dialog with ←/→ keyboard navigation
  • Implemented theme mode detection (analyzes theme JSON to determine dark-only/light-only/both support)
  • Auto-disables unsupported modes for single-mode themes (e.g., aura, catppuccin-macchiato are dark-only)
  • Real-time terminal background detection using renderer.getPalette() for cross-platform support
  • Regenerated SDK types to include appearance field

Usage

Via Config

{
  "appearance": "system"
}

Via TUI

  1. Press Ctrl+X T to open theme dialog
  2. Use ←/→ to switch between System/Light/Dark modes
  3. Use ↑/↓ to browse themes

Screenshots

Screenshot 2026-01-07 at 16 23 32@2x

The appearance selector appears at the top of the theme dialog. Unsupported modes are dimmed and cannot be selected.

Testing

  • Tested with dark-only themes (aura, ayu, catppuccin-macchiato, nightowl)
  • Tested with dual-mode themes (flexoki, github, opencode, tokyonight)
  • Verified real-time system mode polling works across terminal theme changes

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@nguyenphutrong
feat(tui): add appearance setting with dark/light/system modes
46db6da
- Add appearance field to config schema (dark/light/system)
- Add AppearanceSelector UI in theme dialog with radio buttons
- Auto-detect theme mode support (dark-only, light-only, or both)
- Disable unsupported appearance options for single-mode themes
- Auto-switch to supported mode when selecting dark/light-only themes
- Add real-time terminal background polling for system mode
- Remove Cycle appearance command (replaced by Switch theme dialog)
@github-actions

github-actions Bot commented Jan 7, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

I found 2 potentially related PRs:

  1. fix: auto-detect system theme changes at runtime #7162 - fix: auto-detect system theme changes at runtime

    • fix: auto-detect system theme changes at runtime #7162
    • May overlap with the system mode auto-detection feature that polls terminal background color every 5s
  2. feat: add theme hot-reload functionality #4879 - feat: add theme hot-reload functionality

    • feat: add theme hot-reload functionality #4879
    • Could be related to the theme mode detection and dynamic switching capabilities

The current PR (#7182) appears to be a comprehensive feature for appearance settings. Check these related PRs to ensure there's no duplicate work on system theme detection or theme management.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

nguyenphutrong and others added 2 commits January 7, 2026 16:20
@nguyenphutrong
Merge branch 'dev' into feature/appearance-setting
fe6157d
@nguyenphutrong
Merge remote-tracking branch 'upstream/dev' into feature/appearance-s…
447eb65
…etting

# Conflicts:
#	packages/opencode/src/cli/cmd/tui/context/theme.tsx
@github-actions github-actions Bot mentioned this pull request Jan 13, 2026
feat(desktop): Add command to /toggle-appearence #8239
Closed
This was referenced Jan 20, 2026
feat(tui): add system dark/light mode matching #9719
Closed
feat(opencode): support light appearance for all catppuccin themes #10513
Closed
@thdxr
thdxr force-pushed the dev branch from cbab81f to 2d3c7a0 Compare January 30, 2026 04:50
@opencode-agent
opencode-agent Bot force-pushed the dev branch from 00637c0 to 71e0ba2 Compare January 30, 2026 14:32
@thdxr
thdxr force-pushed the dev branch 3 times, most recently from f1ae801 to 08fa7f7 Compare January 30, 2026 14:37
@kavhnr kavhnr mentioned this pull request Feb 12, 2026
feat(tui): add Mode 2031 theme detection with tri-state appearance mode #13233
Closed
@github-actions github-actions Bot mentioned this pull request Feb 21, 2026
feat(config): add theme mode override option #14558
Closed
3 of 6 tasks
@kavhnr kavhnr mentioned this pull request Feb 25, 2026
feat(tui): add Mode 2031 theme detection with tri-state appearance mode #15089
Closed
4 of 6 tasks
@github-actions

github-actions Bot commented Mar 9, 2026

Copy link
Copy Markdown
Contributor

Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot closed this Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@nguyenphutrong
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.