Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dark Mode doesn't automatically activate based upon the DE's colouration. #491

Open
RokeJulianLockhart opened this issue Sep 2, 2024 · 1 comment

Comments

@RokeJulianLockhart
Copy link

RokeJulianLockhart commented Sep 2, 2024

Expected Behavior

I expect Proton Bridge to adhere to my DE's colouration. This applies to at least Windows 10, Windows 11, KDE Plasma 5, KDE Plasma 6, and GNOME 30 and GNOME 40.

Possible Solution

Adhere to it.

Steps to Reproduce

#!/usr/bin/env -S pwsh

#```PS1
#Requires -PSEdition 'Core'
#```

Get-Command -Name 'protonmail-bridge'
If ($? -Eq $True) {& protonmail-bridge}
If ("$Env:XDG_CURRENT_DESKTOP" -Eq "KDE") {
	If (lookandfeeltool --list | Select-String -Pattern 'org.kde.breezedark.desktop') {
		lookandfeeltool --apply 'org.kde.breezedark.desktop'
	}
}

Current Behavior

Notice how it remains white?

Version Information

PS /home/RokeJulianLockhart> dnf5 info protonmail-bridge
Updating and loading repositories:
Repositories loaded.
Installed packages
Name            : protonmail-bridge
Epoch           : 0
Version         : 3.12.0
Release         : 1
Architecture    : x86_64
Installed size  : 168.1 MiB
Source          : protonmail-bridge-3.12.0-1.src.rpm
From repository : @commandline
Summary         : Proton Mail Bridge
URL             : https://proton.me/mail/bridge
License         : GPLv3
Description     : Proton Mail Bridge is a desktop application that runs in the background, encrypting and decrypting messages as they enter and leave your computer.
Vendor          : Proton AG

PS /home/RokeJulianLockhart>

Context (Environment)

I have to manually change the theme in the application every time I access it, because my DE automatically switches between dark and light themes based upon local sunset/sunrise times (I use https://github.com/oskarsh/Yin-Yang/releases/tag/v3.4).

Detailed Description

Merely change the boolean value currently set by that toggle in the GUI based upon the undermentioned.

Possible Implementation

The current theme is probably exposed via DBus, so you can wait for a command from there, rather than constantly poll for the current theme.

@RokeJulianLockhart

This comment was marked as off-topic.

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

No branches or pull requests

1 participant