HomePhabricator

[electrum] set dark-mode automatically for ShowPopupLabel

Description

[electrum] set dark-mode automatically for ShowPopupLabel

Summary:
There are currently two callsites for this function, and both set this flag in the same way. So just set it in the function so callers don't have to care about it.

ColorScheme.dark_scheme is a boolean, True if the user set the appeareance to Dark in the general settings.

Test Plan:
In electrumabc/version.py, decrease the version number (VERSION_TUPLE). Run Electrum ABC from source (./electrum-abc), wait for a few seconds, check that the update notification popup shows correctly in the status bar.

I tested it both in default mode and dark mode (menu Tools > Preferences > Color Theme, restart Electrum ABC).

Reviewers: #bitcoin_abc, bytesofman

Reviewed By: #bitcoin_abc, bytesofman

Differential Revision: https://reviews.bitcoinabc.org/D15384

Details

Provenance
PiRKAuthored on Feb 5 2024, 12:03
PiRKPushed on Feb 6 2024, 07:41
Reviewer
Restricted Project
Differential Revision
D15384: [electrum] set dark-mode automatically for ShowPopupLabel
Parents
rABC057a7344afeb: [linter doc] Specify prettier version to install globally
Branches
Unknown
Tags
Unknown