Skip to content

doc: Add dark theme implementation plan - #1

Draft
oga5 with Copilot wants to merge 1 commit into
masterfrom
copilot/dark-theme-support
Draft

doc: Add dark theme implementation plan#1
oga5 with Copilot wants to merge 1 commit into
masterfrom
copilot/dark-theme-support

Conversation

Copilot AI commented Jun 25, 2026

Copy link
Copy Markdown

Documents the plan for adding app-controlled dark theme support to oedit/otbedit (MFC-based) without requiring OS-level dark mode.

Added: doc/dark_theme_plan.md

  • Option flagBOOL dark_theme in _st_option with INI persistence
  • Title barDwmSetWindowAttribute(DWMWA_USE_IMMERSIVE_DARK_MODE) per-app, Windows 10 Build 18985+
  • Dialogs/controlsWM_CTLCOLOR overrides via shared CDarkModeUtil utility in octrllib
  • Toolbar/statusbarSetWindowTheme(L"DarkMode_Explorer", NULL)
  • Editor colors — leverage existing solarized-dark preset in PresetColor.h; auto-apply on theme switch

Scope/Limitations

Target Feasibility
Title bar, dialogs, edit controls, listboxes ✅ Full
Toolbar / statusbar ✅ Full
Push buttons ⚠️ Owner-draw required
Menus ⚠️ Complex, needs further investigation
Common dialogs (file open, etc.) ❌ OS-controlled

Copilot AI changed the title doc: ダークテーマ対応 実装計画を追加 doc: Add dark theme implementation plan Jun 25, 2026
Copilot AI requested a review from oga5 June 25, 2026 23:17
Copilot finished work on behalf of oga5 June 25, 2026 23:17
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.

2 participants