linebender/druid

Dark or light mode detection

開放

#2,190 建立於 2022年5月18日

 (2 則留言) (1 個反應) (0 位負責人)Rust (567 個分叉)batch import
enhancementhelp wanted

倉庫指標

星標
 (9,091 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Hello, is there any way to detect light or dark mode on the system an application is running on to change themes respectively?

After looking for a while I can't find any mention of it in Druid, and no Druid example seems to adhere to the dark/light mode setting (at least on MacOS) despite its theme containing keys for dark and light colors?

Should I just rely on the dark-light crate for now and check periodically?

貢獻者指南