Repository navigation
Windows: 画面・メニュー・トレイ・通知を実機で確かめ、見つかった問題を直す - #145
Merged
Merged
Conversation
Windows では役割のメニュー(ファイル・編集・ウィンドウ・ヘルプ)が Electron の既定の英語のまま出て、 「File・録音・Edit・表示」と日英が混ざっていた。macOS は OS が訳すが Windows は訳さないので、 Windows では役割の項目にも文言の表の名前とアクセスキー((&F) など)を付ける。macOS は今まで通り OS の訳に任せる。組み立ては純粋な関数(applicationMenuTemplate)に移してテストする。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
待機中のアイコンは黒のテンプレート画像で、macOS では OS が明暗に合わせて塗るが、Windows では setTemplateImage が効かず、ダークのタスクバーでほとんど見えなかった。タスクバーがダークなら白く塗る (形はそのまま、色を透明度に合わせる)。テーマが変わったら作り直す。Windows の慣例に合わせて、 左クリックでウィンドウを出し、右クリックでメニューを出す。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
英語の UI で最小幅(900px)にすると、横の説明が長いぶんボタンが押し縮められて「Test / Recording」と 折れていた。折り返すのは説明だけにする。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BrowserWindow に icon を渡しておらず、開発中は Electron の既定のアイコンがウィンドウの左上と タスクバーに出ていた。build/icon.png を electron-vite の ?asset で読み込み、macOS 以外のウィンドウに渡す。 macOS のウィンドウにはアイコンが出ず、Dock はアプリのアイコンを使うので渡さない。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
変更内容
Closes #134(#137 のフェーズ 2 の 7)。Windows 11 の実機で、画面・メニュー・トレイ・通知・ショートカットを確かめ、見つかった問題を直した。
直したもの
src/main/menu.ts/src/main/i18n.ts)ファイル(&F)など)を付ける。applicationMenuTemplateに移してテストした。src/main/tray.ts/src/main/trayIcon.ts)setTemplateImageが効かず、ダークのタスクバーではほとんど見えなかった。nativeTheme.shouldUseDarkColorsForSystemIntegratedUI)白く塗る(whitenBitmap。形は透明度のまま、色を透明度に合わせる)。テーマが変わったら作り直す。src/main/index.ts):BrowserWindowにiconを渡しておらず、開発中は Electron の既定のアイコンが出ていた。build/icon.pngを electron-vite の?assetで読み込み、macOS 以外のウィンドウに渡す。macOS のウィンドウにはアイコンが出ず、Dock はアプリのアイコンを使うので渡さない。src/renderer/styles.css):英語の UI を最小幅(900px)にすると「Test / Recording」と 2 行に折れていた。折り返すのは説明だけにした。macOS の英語でも起きていたはずの問題。実機で確かめて、問題なかったもの
Ctrl+Alt+Shift+Rで録音が始まり、止まる。この組み合わせを Exolobe が登録していることはRegisterHotKeyでも確かめたio.github.eddybean.exolobe)の名義で出る。Windows の通知の履歴から読むと、「録音を開始」のボタンも付いていた決めたこと
autoHideMenuBarにしない)。録音の操作をメニューからもたどれるようにするため。レビューで見てほしいこと(まだ確かめていないこと)
その他
RegisterHotKeyで確かめ、押したときの動きは手で確かめる。npm run typecheck/lint/fmt:check/testは通る(1784 件)。確認
npm run typecheck && npm run lint && npm testが通るdocs/decisions.html)を確認した🤖 Generated with Claude Code