You are not logged in.

#1 2025-04-01 08:25:39

EBADFD
Member
Registered: 2025-03-31
Posts: 11

gnome-calculator doesn't respect dark mode (xfce)

I have keyboard shortcuts for these command to switch to light/dark mode
xfconf-query -c xsettings -p /Net/ThemeName -s "Adwaita"
xfconf-query -c xsettings -p /Net/ThemeName -s "Adwaita-dark"

In Setting Manager -> Appearance I have the "Set matching Xfwm4 theme if there is one" set. I may have done it wrong but I try putting https://gitlab.com/adwaita-xfwm4-themes … pact-xfwm4 into ~/.theme

I can't seem to get gnome-calculator in dark mode unless I run it using GTK_THEME=Adwaita:dark gnome-calculator
I could set my keyboard shortcut to run a script that runs the command but I wanted to know if there's a more proper fix? I didn't have this problem with my default install of linux mint

Offline

#2 2025-04-01 15:21:46

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,325

Re: gnome-calculator doesn't respect dark mode (xfce)

https://wiki.archlinux.org/title/Dark_m … #gsettings

I didn't have this problem with my default install of linux mint

And what version of GTK/libadwaita (libadwaita at all) - bansed on how often that topic came up recently, this is probably a "regression" towards xdg-portal and I'm not sure whether it'll even work w/o the gnome implementaion of that except…

unless I run it using GTK_THEME=Adwaita:dark gnome-calculator

this way.

#/bin/bash
FONT="IBM 3270"
FONT_SIZE=16
COLOR_BG='#363c29'
COLOR_FG='#9adb18'

URXVT_BACKGROUND="$HOME/wallpapers/urxvt/scanlines.png;style=tiled"
xbc_win="$(xdotool search --maxdepth 3 --limit 1 --classname Calculator)"
if [ -n "$xbc_win" ]; then
    xdotool windowmap $xbc_win windowactivate --sync $xbc_win windowmove $xbc_win 60% 6% >/dev/null 2>&1
    exit
fi

setxkbmap -symbols "+kpdl(dotoss)"
urxvt -bg "$COLOR_BG" -fg "$COLOR_FG" -cr "$COLOR_FG" -pixmap "$URXVT_BACKGROUND" \
           -fade 50 -fadecolor "$COLOR_BG" -fn "xft:$FONT-$FONT_SIZE" \
           -title "? Calculator" -sk -bc -uc -name Calculator -geometry 32x8 -e \
    rlwrap -pwhite -a -S'= ' bc -ql ~/.local/share/bc/code/funcs.bc ~/.local/share/bc/code/logic.bc
setxkbmap -symbols "+kpdl(commaoss)"

Offline

Board footer

Powered by FluxBB