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

Weird dark mode on Plasma #194

Open
thegrasshopper104 opened this issue Nov 3, 2024 · 3 comments
Open

Weird dark mode on Plasma #194

thegrasshopper104 opened this issue Nov 3, 2024 · 3 comments

Comments

@thegrasshopper104
Copy link

Describe the bug
The results are very hard to see, the icons and the headerbar are oversized.

Expected behavior
Support dark mode or just use the Elementary style
Screenshots
image

  • OS: openSUSE Tumbleweed
  • Desktop: KDE Plasma 6.2.2
  • Version 0.5.4-2.24
@priit123
Copy link

It doesn't like dark mode.
You can force light theme on it by editing /usr/share/applications/com.github.parnold-x.nasc.desktop
Add "env GTK_THEME=Adwaita:light" to "Exec=" line.

Basically:
Open .desktop file with nano
sudo nano /usr/share/applications/com.github.parnold-x.nasc.desktop

Replace Exec= line with this.
Exec=env GTK_THEME=Adwaita:light com.github.parnold-x.nasc

@undecided
Copy link

Just to say, I've been using this for over a year and loving it - but yeah, on Linux Mint, unfortunately same problem.

I made the following tweaks to force it to work:

src/InputView.vala line 321, replace

        if (NascSettings.get_instance ().dark_mode) {
            this.buffer.style_scheme = style_scheme_manager.get_scheme ("nasc_dark");
        } else {
            this.buffer.style_scheme = style_scheme_manager.get_scheme ("nasc");
        }

with

        this.buffer.style_scheme = style_scheme_manager.get_scheme ("nasc_dark");

Then, src/NascSettings.vala line 56, replace

dark_mode = gtk_settings.gtk_application_prefer_dark_theme

... with:

        dark_mode = true;

I presumed it was something weird to do with my setup (maybe gtk being loaded via flatpak or something) but I couldn't find any other way to set those variables correctly, and this did the job for me.

Otherwise it's a very useful app - I have it bound to a hotkey on my keyboard.

@parnoldx
Copy link
Owner

Happy to here this is useful for you. I am not on elementary anymore and not much time and motivation to code on it. eos did some dark mode stuff more like a recommendation. But since it isn't anymore available on the eos store I am happy to merge PRs that improve the behavior on other Desktop Environments.

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

4 participants