Xfce Forum

Sub domains
 

You are not logged in.

#1 2019-03-01 23:51:03

to7m
Member
Registered: 2019-03-01
Posts: 6

Xubuntu 18.04: gtk3-engines-xfce issue menu padding

Hi all,

I'm having a slight problem with themes. I installed gtk2-engines-xfce to get more themes, and then gtk3-engines-xfce to sort out some problems with those themes, but some problems went away while others remained.

Using Xfce-dusk as an example, here is a comparison between with gtk3-engines-xfce and without:

4vMw8z0.png

jQHySLZ.png

The first has many problems such as light backgrounds and dark text in places. The second has other problems including a lack of menu padding.

Any ideas on what I might be missing?

All the best,
Tom

Offline

#2 2019-03-02 00:18:14

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

Re: Xubuntu 18.04: gtk3-engines-xfce issue menu padding

Hello and welcome.

gtk3-engines-xfce has been deprecated. It doesn't support the newer gtk3 versions. You need to use a gtk3 theme that supports the version of gtk3 that is installed on your system.

You can install and run the adwaita-dark theme (which is similar to Xfce-dusk) by installing "gnome-themes-standard".


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-03-03 19:21:02

to7m
Member
Registered: 2019-03-01
Posts: 6

Re: Xubuntu 18.04: gtk3-engines-xfce issue menu padding

Hi, thanks for the explanation! smile

I tried adwaita-dark but it problems with Audacity (white on white text) and bar colour in CPU Graph:

San9ggW.png

I'm guessing I should report that somewhere — would it be issues with the theme, or the programs?

Offline

#4 2019-03-03 19:51:50

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

Re: Xubuntu 18.04: gtk3-engines-xfce issue menu padding

For audacity, go to Edit > Preferences > Interface and choose the dark theme.

I'm not sure what the "bars color" is meant to do. I don't see any change when I change the color on my system. Feel free to create a bug report at the bug tracker to see if the developer can provide some insight (or potentially fix a bug).


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

#5 2019-03-03 20:53:11

to7m
Member
Registered: 2019-03-01
Posts: 6

Re: Xubuntu 18.04: gtk3-engines-xfce issue menu padding

For Audacity, this is with the dark theme, and light theme makes no difference to the text.
For CPU Graph, if you change the theme from adwaita to something like Greybird, the ‘Bars color’ takes effect.

I'm just not sure if I should file these to Audacity and CPU Graph, just to Adwaita-dark, or to all 3...

Offline

#6 2019-03-03 21:22:55

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

Re: Xubuntu 18.04: gtk3-engines-xfce issue menu padding

Interesting. Can you post the contents of the following files (if they exist)?
- ~/.gtkrc-2.0
- ~/.config/gtk-3.0/gtk.css


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-03-04 02:47:36

to7m
Member
Registered: 2019-03-01
Posts: 6

Re: Xubuntu 18.04: gtk3-engines-xfce issue menu padding

Neither of those exist on my system. I'll have a look for them soon. Is there a string that I could do a file search for?

Offline

#8 2019-03-04 03:21:02

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

Re: Xubuntu 18.04: gtk3-engines-xfce issue menu padding

Here is Audacity with Adwaita-Dark (and Audacity dark theme preference set) on my Xubuntu 18.04 system:
Screenshot-2019-03-03-21-58-39.png

As for the cpugraph bar, I had a closer look. Adwaita-dark uses the pixmap engine to draw the colors of the progress bars. In fact, many of the themes do. To change the color, you need to edit the /usr/share/theme/Adwaita-Dark/gtk-2.0/assets/progressbar* files. Note that this will affect the colour of all progress bars. I'm not sure how to override the engines.

There are also other dark themes you can try. Here is a recent reddit thread that lists a number of them.

As for the configuration files, what is the output of the following command:

cat $HOME/.gtkrc-2.0

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-03-04 03:36:01

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

Re: Xubuntu 18.04: gtk3-engines-xfce issue menu padding

Here is a way of overriding Adwaita's hard-coded color. Add the following snippet to $HOME/.gtkrc-2.0 (create the file if it doesn't exist):

style "my-cpugraph"
{
engine "pixmap" {
    image {
      function    = BOX
      detail      = "bar"
      file        = "color.png"
      stretch     = TRUE
      border      = {2, 2, 1, 1}
      orientation = HORIZONTAL
    }

    image {
      function    = BOX
      detail      = "bar"
      file        = "color.png"
      stretch     = TRUE
      border      = {1, 1, 2, 2}
      orientation = VERTICAL
    }
}
}
widget "*cpugraph*" style "my-cpugraph"

... then create the file $HOME/color.png using your favourite editor and create a 2x2 image filled with the colour that you want to use.

Finally, restart the panel:

xfce4-panel -r

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

#10 2019-03-10 22:22:49

to7m
Member
Registered: 2019-03-01
Posts: 6

Re: Xubuntu 18.04: gtk3-engines-xfce issue menu padding

Thanks for your help, it is much appreciated. It seems I have a broken system somehow as my Audacity install does not look like that...
For the bar colours, would you suggest CPUgraph should be fixed to override the theme as shown in the above solution?

Offline

#11 2019-03-10 23:15:59

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

Re: Xubuntu 18.04: gtk3-engines-xfce issue menu padding

to7m wrote:

For the bar colours, would you suggest CPUgraph should be fixed to override the theme as shown in the above solution?

Yes. Create a bug report and see what the developer says.


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

#12 2019-03-10 23:16:33

to7m
Member
Registered: 2019-03-01
Posts: 6

Re: Xubuntu 18.04: gtk3-engines-xfce issue menu padding

Will do!
Edit: https://bugzilla.xfce.org/show_bug.cgi?id=15186

Last edited by to7m (2019-03-10 23:25:35)

Offline

Board footer

Powered by FluxBB