Coder Social home page Coder Social logo

charger-information-for-mac's Introduction

Hi there 👋

charger-information-for-mac's People

Contributors

michinarinukazawa avatar narikei avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

charger-information-for-mac's Issues

パッケージからインストールしたCharger-Information-for-Mac v0.1.0が起動しない

観察されたこと

メニューバーにアプリケーションが表示されない。

再現の手順

Charger-Information-for-Mac v0.1.0 のインストーラでインストールしてアプリケーションを起動。

その他

インストーラ v0.1.0 および、
GitHubリポジトリソース最新 commit df38b4d (v0.1.0) のnpm run startで再現。
環境:
MacBookPro (13-inch, 2017) / macosx 10.14.6 Mojave

ソースから起動の場合、一瞬だけエラーダイアログが出現する。
app.dock.hide();をコメントアウトして取得したエラーダイアログのスクリーンショット。

スクリーンショット 2019-12-09 21 00 27

確認したところ、私の環境では ioreg -rn AppleSmartBattery の出力に "AdapterDetails"が含まれていないようです。

output.txt

開いたトレイのメニューが5秒以内で勝手に閉じる

再現の手順

アイコンクリックしてメニューを開く。

観察されたこと

0〜5秒程度でメニューが勝手に閉じる。

「メニューが勝手に閉じない・少なくとも10秒程度は開いた状態を維持する」動きを想定していました。
定時間等で自動で閉じるべきかどうかは難しいところですが、最悪1秒待たずに閉じるのは、好ましくないと感じています。

その他

とりあえずでupdateMenu();updateコールバック外に移動したところ、現象自体は起こらなくなるようです。ここでのMenu再構築の際に(electronから向こうのどこかの動作として)一旦閉じるようになっているのだと思います。ただこれでは状態表示の更新が反映されないようなので、もう一仕事とデザイン上の判断が必要そうです。
(閉じないように表示だけ更新する方法を見つける・Menuオープン中は更新しない・開き直す、などがあると思います。)

メニューバーのアイコンの配置をOS標準のバッテリーに合わせる

メニューバーのアイコンの配置ですが、OS標準のバッテリーでは、左から順に数値・アイコンという配置になっています。
そちらに合わせたほうがメニューバー上に並んだ際に違和感がなくなるかと思います。
もっともこれは好みレベルの話なので、製作者の意思を尊重します。

スクリーンショット 2019-12-10 21 10 56
スクリーンショット 2019-12-10 21 11 01

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.