vkohaupt / vokoscreenNG

vokoscreenNG is a powerful screencast creator in many languages to record the screen, an area or a window (Linux only). Recording of audio from multiple sources is supported. With the built-in camera support, you can make your video more personal. Other tools such as systray, magnifying glass, countdown, timer, Showclick and Halo support will help
https://linuxecke.volkoh.de/vokoscreen/vokoscreen.html
GNU General Public License v2.0
1.14k stars 92 forks source link

[Feature Request] Support for dark theme #211

Closed yozachar closed 2 years ago

yozachar commented 2 years ago
Cutefish DE Xfce DE
image image

Requesting support for dark theme.

vkohaupt commented 2 years ago

Last night I was working on a dark theme, I can't understand how anyone can do this. And when I went to bed I had chills, anxiety and nightmares. What's worse, how are you supposed to work meaningfully with a dark theme? On my working environment, the Qt Creator, I see absolutely nothing. I see black writing or also blue or red writing on a black background. A compensation for pain and suffering is required for a dark theme.

Anyone who finds black humor may keep it. And if you still need a dark theme, you are welcome to make a big donation and I'll build a dark theme.

yozachar commented 2 years ago

Apparently vokoscreenNG picks up a dark theme neatly! And no, it's no black magic.

image

This is what I did:

Method 1 (Update: doesn't seem to work, see: https://github.com/vkohaupt/vokoscreenNG/issues/211?notification_referrer_id=NT_kwDOAkosGLMzMzY1NzExNjM1OjM4NDE1Mzg0#issuecomment-1218214779 - try Method 2)

  1. Install kvantum
  2. [optional] Install any theme for kvantum [1] [2].
  3. Open kvantum theme manager and navigate to "Change/Delete Theme". Here you can choose any theme.

OR

Method 2

  1. Edit (or create) ~/.config/gtk-2.0/settings.ini file. Paste the following lines:

    [Settings]
    gtk-application-prefer-dark-theme=true
    gtk-enable-animations=true # (optional)
    gtk-font-name="Inter 10" # (optional) your font name
    gtk-icon-theme-name="Tela-circle-manjaro-dark" # your icon theme name
    gtk-theme-name="Orchis-Green-Dark-Compact" # your gtk theme name
  2. Create or a file called ~/.config/Trolltech.conf and add the following content:

    [Qt]
    style=GTK+
  3. Add these lines to /etc/environment

    QT_QPA_PLATFORMTHEME=gtk2
    QT_STYLE_OVERRIDE=gtk2
  4. Re-login / Restart

Keeping this open for anyone who wants in-app theme switch.

vkohaupt commented 2 years ago

You're right, it's not black magic. Like every Qt program, vokoscreenNG also supports dark themes. I understood Joe733 that he wants a built-in dark theme for desktops that don't support it.

Under KDE, or xfce with adwaita, a dark theme is set with two mouse clicks.

What desktop are you using?

yozachar commented 2 years ago

I'm using the XFCE DE. But I'm planning to switch to one of the WM.

Update: I've to mention this. When experimenting, I did Method 2 first, then Method 1. Later I reverted Method 2 and surprise, the dark theme was gone. So it looks like Method 1 has no effect or I'm doing it the wrong way.

I understood Joe733 that he wants a built-in dark theme for desktops that don't support it.

In my personal opinion, there should be a shared understanding between OS and user apps (here) on theming. The part - "should each OS/App developer enforce it" - is very subjective.

Closing this issue for now.

Unable to gaze the screen, due to the beloved vokoscreen, art thou much keen, for an in-app dark theme?

Feel free to bump the thread, suggesting the issue to be re-opened