Xfce Forum

Sub domains
 

You are not logged in.

#1 2019-07-02 19:41:04

MouseFan
Member
Registered: 2019-07-02
Posts: 8

Problem with Dusk theme

Hello. Why is the apps menu and background white? I used the Dusk theme on the other distribution there everything is dusk. I do not want other themes. I like Dusk. It can be fixed?
1.png

Last edited by MouseFan (2019-07-02 19:41:25)

Offline

#2 2019-07-02 21:27:59

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Problem with Dusk theme

Hello and welcome.

Can you provide some more information:
- the distro you are using?
- the version of Xfce (try running "xfsettingsd -V")

In all likelihood, you have a newer version of Xfce and GTK3 that does not support the Xfce-dusk theme - it is a GTK2-only theme. You'll need to find a compatible GTK3 theme. By compatible, I mean one that supports the version of GTK3 that your distro is using.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2019-07-03 06:35:41

MountainDewManiac
Member
From: Where Mr. Bankruptcy is Prez
Registered: 2013-03-24
Posts: 1,115

Re: Problem with Dusk theme

Since the OP appears to really like that particular theme, are there any FAQs around on the Internet somewhere explaining how to convert a GTK2 theme to a GTK3 one? Or is the process a lot more involved than "just" replacing each line with the newer equivalent?

Regards,
MDM


Mountain Dew Maniac

How to Ask for Help <=== Click on this link

Offline

#4 2019-07-03 07:00:51

MouseFan
Member
Registered: 2019-07-02
Posts: 8

Re: Problem with Dusk theme

I use Whonix https://www.whonix.org/
xfsettingsd 4.12.4 (Xfce 4.12)

In Whonix Dusk is set as the default theme. So all Whonix users have this problem. If I find a solution, I will publish it on the Whonix forum.

I also had a white badge Whisker menu and PulseAudio Plugin.
2.png
3.png

I fixed this by finding your solution here https://forum.xfce.org/viewtopic.php?pid=50780#p50780
Can there be a similar solution for the current problem?

Last edited by MouseFan (2019-07-03 07:02:05)

Offline

#5 2019-07-03 07:30:32

MountainDewManiac
Member
From: Where Mr. Bankruptcy is Prez
Registered: 2013-03-24
Posts: 1,115

Re: Problem with Dusk theme

MouseFan wrote:

I use Whonix https://www.whonix.org/
xfsettingsd 4.12.4 (Xfce 4.12)

In Whonix Dusk is set as the default theme. So all Whonix users have this problem.

In that case, you should probably consider reporting this as a bug to your OS developer/maintainer. See:
https://www.whonix.org/wiki/Reporting_Bugs

Regards,
MDM


Mountain Dew Maniac

How to Ask for Help <=== Click on this link

Offline

#6 2019-07-03 11:44:21

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Problem with Dusk theme

MouseFan wrote:

Can there be a similar solution for the current problem?

Not without re-writting the whole theme. Or in this, creating a gtk3 section.

What version of gtk3 is installed in Whonix? There is a gtk3 version of Xfce-dusk here, but it looks like it only works up until gtk3.16.

The other option it to pick another dark gtk3 theme like:
- adapta-notko
- materia-dark
- envi
- Qogir-dark
- Arc-dark
... to name a few.

EDIT: I just noticed that you are using "Whonix Dusk". Is this a custom version of Xfce-dusk? Where can I find the source to have a look?

Last edited by ToZ (2019-07-03 11:45:48)


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#7 2019-07-03 12:53:37

MouseFan
Member
Registered: 2019-07-02
Posts: 8

Re: Problem with Dusk theme

ToZ wrote:

What version of gtk3 is installed in Whonix? There is a gtk3 version of Xfce-dusk here, but it looks like it only works up until gtk3.16.

EDIT: I just noticed that you are using "Whonix Dusk". Is this a custom version of Xfce-dusk? Where can I find the source to have a look?

libgtk-3-0:amd64 3.24.5-1
libgtk2.0-0:amd64 2.24.32-3
I dont know custom version or no sad
Whonix source code https://github.com/Whonix/Whonix
I dont know where source code Xfce-dusk theme used in Whonix. I think developer just get it from Debian-Xfce.

Offline

#8 2019-07-03 13:14:20

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Problem with Dusk theme

I downloaded Whonix to have a look. Yes, it is using the base Xfce-dusk theme. Since it doesn't have a gtk3 component to that theme, it uses the default Adwaita theme for GTK3 elements. You can force the system to use the dark variant of the Adwaita theme. Add the following to your ~/.bashrc file:

export GTK_THEME=Adwaita:dark

...and log out and back in again.

See if that helps.

EDIT: If you want to make the highlight colours match, add the following to ~/.config/gtk-3.0/gtk.css:

@define-color theme_selected_bg_color #2f519a;

*:selected{
    background-color: @theme_selected_bg_color;
}

*.view:selected {
    background-color: @theme_selected_bg_color;
}

textview selection {
    background-color: @theme_selected_bg_color;
}

selection {
    background-color: @theme_selected_bg_color;
 } 

menu menuitem:hover,
.menu menuitem:hover {
     background-color: @theme_selected_bg_color;
}

switch:checked {
   background-color: @theme_selected_bg_color;
}

 notebook > header.top > tabs > tab:checked { 
    box-shadow: inset 0 -3px  @theme_selected _bg_color;
}

Last edited by ToZ (2019-07-03 13:28:43)


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#9 2019-07-03 14:05:21

MouseFan
Member
Registered: 2019-07-02
Posts: 8

Re: Problem with Dusk theme

ToZ wrote:

Add the following to your ~/.bashrc file:

export GTK_THEME=Adwaita:dark

To be honest, I'm not sure that I can do it right. I tried but nothing happens. How to do it right? My ~/.bashrc

# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

# Modified for Whonix, see COPYING for copying conditions.

# If not running interactively, don't do anything
case $- in
    *i*) ;;
      *) return;;
esac

# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth

# append to the history file, don't overwrite it
shopt -s histappend

# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar

# make less more friendly for non-text input files, see lesspipe(1)
#[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
    debian_chroot=$(cat /etc/debian_chroot)
fi

# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
    xterm-color) color_prompt=yes;;
esac

# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes

if [ -n "$force_color_prompt" ]; then
    if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
	# We have color support; assume it's compliant with Ecma-48
	# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
	# a case would tend to support setf rather than setaf.)
	color_prompt=yes
    else
	color_prompt=
    fi
fi

if [ "$color_prompt" = yes ]; then
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt

# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
    PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
    ;;
*)
    ;;
esac

# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
    test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
    alias ls='ls --color=auto'
    #alias dir='dir --color=auto'
    #alias vdir='vdir --color=auto'

    #alias grep='grep --color=auto'
    #alias fgrep='fgrep --color=auto'
    #alias egrep='egrep --color=auto'
fi

# some more ls aliases
#alias ll='ls -l'
#alias la='ls -A'
#alias l='ls -CF'

# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.

if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
  if [ -f /usr/share/bash-completion/bash_completion ]; then
    . /usr/share/bash-completion/bash_completion
  elif [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
  fi
fi

## Whonix /home/user/.bashrc

## Using /home/user/.bashrc because there is no /etc/bashrc.d (or similar).
## Editing /etc/bash.bashrc could cause conflicts when it gets updated by
## the bash maintainer.
## http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=675008

## If not running interactively, don't do anything.
if [ -z "$PS1" ]; then
   return
fi

## If running in a login shell, don't do anything.
## Login shells are greeted by /etc/motd.
shopt -q login_shell
var="$?"
if [ "$var" = "0" ]; then
   return
fi

## We run in a terminal emulator.

## Let's greet it with motd.
if [ -d /usr/lib/qubes ]; then
   if [ -f /etc/motd.qubes-whonix ]; then
      echo "$(cat /etc/motd.qubes-whonix)"
   fi
else
   if [ -f /etc/motd ]; then
      echo "$(cat /etc/motd)"
   fi
fi

## Output uwt settings.
## https://phabricator.whonix.org/T73
if test -x /usr/lib/uwt_settings_show ; then
   /usr/lib/uwt_settings_show
fi

## End of Whonix /home/user/.bashrc

Offline

#10 2019-07-03 14:34:12

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Problem with Dusk theme

Hmm, that doesn't work for me either (I was testing by manually executing the commands in a terminal). However, if you add:

GTK_THEME="Adwaita:dark"

...to /etc/environment, it works system-wide.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#11 2019-07-03 16:59:37

MouseFan
Member
Registered: 2019-07-02
Posts: 8

Re: Problem with Dusk theme

ToZ wrote:

Hmm, that doesn't work for me either (I was testing by manually executing the commands in a terminal). However, if you add:

GTK_THEME="Adwaita:dark"

...to /etc/environment, it works system-wide.

Thank you! It works for me. There are some problems for example with the browser (dark text on dark-gray background) but I think I'll think of something smile
2222.png

Last edited by MouseFan (2019-07-03 17:00:24)

Offline

#12 2019-07-04 05:50:04

MouseFan
Member
Registered: 2019-07-02
Posts: 8

Re: Problem with Dusk theme

Only one problem remained. I noticed that the background of the Adwaita theme is lighter (for example - Thunar, Putty, MousePad etc.) than the taskbar and differs from the background of some programs that use the same color as in the taskbar. The differences are very visible on my monitor. Can I change these colors in the file ~ / .config / gtk.css? Which commands does this? Please see image.
ps. I know how to change color in Whisker menu, Whisker icon and PulseAudio Plugin icon.
Screenshot-2019-07-04-05-21-34.png
Screenshot-2019-07-04-05-44-20.png

update:

My old xfce-dusk theme in the Whonix 14. I just try make same on the Whonix 15.
before.png

Last edited by MouseFan (2019-07-04 08:04:33)

Offline

#13 2019-07-04 10:06:00

Spass
Member
From: Poland
Registered: 2016-12-07
Posts: 133

Re: Problem with Dusk theme

About the dark elements in the browser, is the Tor Browser based on Firefox? If yes, you could try this solution:
1) Go to about:config (just type it in the address bar and press Enter)
2) Create a new string entry there called widget.content.gtk-theme-override and set it to Adwaita:light (or just Adwaita)
3) Restart your browser

Offline

#14 2019-07-04 12:50:07

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Problem with Dusk theme

@MouseFan, if I understand correctly, try using this as your ~/.config/gtk-3.0/gtk.css file:

* { background-color: #232323; }
button { background-image: none; background-color: #232323; }

.xfce4-panel.background { background-image: none; background-color: #232323; }

@define-color theme_selected_bg_color #2f519a;

*:selected{
    background-color: @theme_selected_bg_color;
}

*.view:selected {
    background-color: @theme_selected_bg_color;
}

textview selection {
    background-color: @theme_selected_bg_color;
}

selection {
    background-color: @theme_selected_bg_color;
 } 

menu menuitem:hover,
.menu menuitem:hover {
     background-color: @theme_selected_bg_color;
}

switch:checked {
   background-color: @theme_selected_bg_color;
}

 notebook > header.top > tabs > tab:checked { 
    box-shadow: inset 0 -3px  @theme_selected _bg_color;
}

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#15 2019-07-04 13:29:47

MouseFan
Member
Registered: 2019-07-02
Posts: 8

Re: Problem with Dusk theme

ToZ wrote:

@MouseFan, if I understand correctly, try using this as your ~/.config/gtk-3.0/gtk.css file

The colors have not changed. Only some oddities were added to the system.

I'll try to explain.
I had Whonix 14 where xfce-dusk was as default theme + axiomd for windows headers + icon fix (fix white colors in panel). My old workspace:

before.png

Now i have Whonix 15 based on Debian buster. At first the default xfce-dusk was with bug. With your help currently i got this result:

after.png

I add GTK_THEME="Adwaita:dark" in /etc/environment as you say. Looks not bad! But maybe there is a way to change the color scheme as in Whonix 14 use gtk.css?

Last edited by MouseFan (2019-07-04 14:24:06)

Offline

#16 2019-07-04 20:24:11

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Problem with Dusk theme

MouseFan wrote:

But maybe there is a way to change the color scheme as in Whonix 14 use gtk.css?

Not easily and not without, as I mentioned earlier, creating a gtk3 version of Xfce-dusk.

The alternative, and manually intensive way of doing this is to look for every instance of a colour discrepancy using the GTK Inspector, determining the class and/or widget name, and manually adding the adjustment code to gtk.css.

For example, to make the thunar background windows black, do the following:

  1. kill the thunar daemon (if it's running). This is necessary for the changes to be noticed because the running thunar instance will always supersede any manual instance that is run with respect to GTK3 configurations:

    thunar -q
  2. Run thunar in GTK interactive mode to enable the inspector:

    GTK_DEBUG=interactive thunar

    ...this will open thunar and an inspector window as per the link above.

  3. On the inspector window, in the top left corner, click on the Object Selector then click on the background of the thunar right-side pane

  4. Back on the inspector window, click on the "Miscellaneous" drop down box and select "CSS Nodes".

  5. Notice that the widget selected has the style class name "view". Also notice that the top level style class includes "thunar". This will help you direct the changes at the thunar application.

  6. Start your gtk configuration declaration with ".thunar .view" to access this widget and set it's background-color to black. To test, on the CSS tab, type in the following:

    .thunar .view { background-color: #121212; }
  7. this shoud change the thunar pane backgrounds to almost black.

  8. to make this permanent, add that line to ~/.config/gtk-3.0/gtk.css

.

Example 2, the thunar entry area. In the Inspector, go back to the Objects tab, click on the Object Selector, then on the entry area. Notice that in the inspector, there is no style class directly assigned to this element. Do make note that the gtk widget is an "entry" widget. Look up until you see the toolbar element with the ID "location-toolbar". This will affect everything on the location toolbar. To access widget IDs, preface them with an '#'. So to change the background colour of the entry, you would use:

#location-toolbar entry { background-color: #121212; }

Rinse and repeat with every element that you would like to change - but there may be many rinse and repeats that you will need to do keeping in mind that if it's a widget element that you want to change system wide, you should preface it with "* {" so that all elements are affected (like I did when I changed the background colour in my previous snippet.

EDIT: Whisker menu theming info can be found here.

Last edited by ToZ (2019-07-04 20:27:53)


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.012 seconds, 7 queries executed - Memory usage: 636.6 KiB (Peak: 669.45 KiB) ]