Xfce Forum

Sub domains
 

You are not logged in.

#1 2018-04-04 08:12:21

Swedneck
Member
From: Sweden
Registered: 2018-04-04
Posts: 9

Datetime and battery monitor plugin have bright backgrounds

Hi, just recently took a liking for XFCE and i've been trying to make stuff look nice, but i've run into an aesthetic problem.

https://i.imgur.com/dTriNxW.png

As you can see the panel is brighter under the datetime and battery monitor plugins, i have tested with other themes and this still appears. Rebooting/logging out does not fix it. Any help is appreciated.

Offline

#2 2018-04-04 10:34:17

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Datetime and battery monitor plugin have bright backgrounds

Hello and welcome.

What version of Xfce and which distro are you using? Also, are these the gtk2 or gtk3 versions of the plugins? You can tell by running the following commands:

ldd $(locate libdatetime.so) | grep gtk
ldd $(locate libbattery.so) | grep gtk

If they are gtk2, can you post back the contents of ~/.gtkrc-2.0?
And if they are gtk3, the contents of ~/.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

#3 2018-04-04 13:11:36

Swedneck
Member
From: Sweden
Registered: 2018-04-04
Posts: 9

Re: Datetime and battery monitor plugin have bright backgrounds

Xfce 4.12 on fedora 27 workstation.
plugins are gtk3.
Contents:
@import url('/home/tim/.local/share/gnome-shell/extensions/no-title-bar@franglais125.gmail.com/stylesheet.css');
@import url('/home/tim/.local/share/gnome-shell/extensions/no-title-bar@franglais125.gmail.com/stylesheet-tiled.css');

Strangely enough they work fine on my thinkpad, which is running the same stuff..
Update: Just moved to Xfce on my desktop (also running fedora) and I'm having the same issue there.

Last edited by Swedneck (2018-04-04 21:47:51)

Offline

#4 2018-04-04 22:27:43

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Datetime and battery monitor plugin have bright backgrounds

If you mv the gtk.css file (rename it to save it as a backup) and restart the panel:

xfce4-panel -r

...does it help?


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 2018-04-05 05:29:50

Swedneck
Member
From: Sweden
Registered: 2018-04-04
Posts: 9

Re: Datetime and battery monitor plugin have bright backgrounds

No, there's no change on the panel.

Offline

#6 2018-04-05 10:30:54

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Datetime and battery monitor plugin have bright backgrounds

Would you be able to provide the versions of those plugins? I believe "dnf info" is the command to use as in:

dnf info xfce4-datetime-plugin
dnf info xfce4-battery-plugin

You can also try to adjust the background transparency of the plugin using a tweak. First, you'll need to get the plugin id. To do so, go to the panel preferences Items tab and hover over the plugin. You should see something llike: "battery-9" or "datetime-8". Then create or add to the ~/.config/gtk-3.0/gtk.css file the following:

#battery-9>box { background: rgba(0,0,0,0.5) }
#datetime-8>button>box { background: rgba(0,0,0,0.5) }

...play around with the last value in oth those lines (from 0.0 to 1.0 to see if you can get the transparency correct. You can also try changing the first 3 values (rgb values) to try to match the colour.

And finally, what is the current appearance theme that you are 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

#7 2018-04-05 13:26:16

Swedneck
Member
From: Sweden
Registered: 2018-04-04
Posts: 9

Re: Datetime and battery monitor plugin have bright backgrounds

datetime version: 0.7.0
battery version: 1.1.0

Setting the opacity in css doesn't work, however setting the color works fine. I have to specify hover colors as well though.

I'm using geeko-dark, but as i said this affects every theme i have (except arc for some reason).

Offline

#8 2018-04-05 19:28:41

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Datetime and battery monitor plugin have bright backgrounds

Swedneck wrote:

(except arc for some reason).

If it works on Arc, then make sure that the themes you are using support the version of GTK that is installed on your system (many don't). The Greybird theme is kept up to date. Can you try it? You can get the latest version here: https://github.com/shimmerproject/Greybird if the one in your repositories is dated.

Edit: it looks like geeko-dark only supports up to gtk 3.22 (https://github.com/LelCP/geeko-gtk-them … /README.md


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 2018-04-05 20:05:20

Swedneck
Member
From: Sweden
Registered: 2018-04-04
Posts: 9

Re: Datetime and battery monitor plugin have bright backgrounds

The latest version of Greybird (from github) has the same issue.

Offline

#10 2018-04-05 20:14:54

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Datetime and battery monitor plugin have bright backgrounds

Swedneck wrote:

The latest version of Greybird (from github) has the same issue.

I just installed geeko-dark on my arch system and it works fine. Can you create a second account on your computer and try with a clean profile? Lets see if this is a system issue or a profile issue.

Edit: My geeko-dark panel looks different from yours. Where did you get your version of that theme from? I got my copy from https://github.com/LelCP/geeko-gtk-theme.


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 2018-04-05 20:53:15

Swedneck
Member
From: Sweden
Registered: 2018-04-04
Posts: 9

Re: Datetime and battery monitor plugin have bright backgrounds

The issue is still there on a fresh user account.

Offline

#12 2018-04-06 00:51:43

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Datetime and battery monitor plugin have bright backgrounds

I edited my previous post. Where did you get this theme? Is it included in the fedora repositories or did you download it. If downloaded, make sure you have the latest version (see link above).

Also, can you post back the following:

cat ~/.config/gtk-3.0/gtk.css
ls /etc/gtk-3.0
locate gtk.css | grep -v themes

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

#13 2018-04-06 08:56:06

Swedneck
Member
From: Sweden
Registered: 2018-04-04
Posts: 9

Re: Datetime and battery monitor plugin have bright backgrounds

I got Geeko from github, it's the latest version.

@import url('/home/tim/.local/share/gnome-shell/extensions/no-title-bar@franglais125.gmail.com/stylesheet.css');
@import url('/home/tim/.local/share/gnome-shell/extensions/no-title-bar@franglais125.gmail.com/stylesheet-tiled.css');
ls: cannot access '/etc/gtk-3.0': No such file or directory
/home/tim/.config/gtk-3.0/gtk.css.no
/home/tim/.local/share/Trash/files/geeko-gtk-theme/common/gtk-3.0/3.14/gtk.css
/home/tim/.local/share/Trash/files/geeko-gtk-theme/common/gtk-3.0/3.16/gtk.css
/home/tim/.local/share/Trash/files/geeko-gtk-theme/common/gtk-3.0/3.18/gtk.css
/home/tim/.local/share/Trash/files/geeko-gtk-theme/common/gtk-3.0/3.20/gtk.css
/home/tim/Greybird/gtk-3.0/gtk.css
/home/tim/Greybird/xfce-notify-4.0/gtk.css
/home/tim/Greybird/xfce-notify-4.0_bright/gtk.css
/usr/share/anaconda/anaconda-gtk.css

Offline

#14 2018-04-06 12:34:20

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Datetime and battery monitor plugin have bright backgrounds

Hmmm. I'm downloading the fedora 27 xfce iso now. I'll give it a try. Can I see your panel configuration so I can replicate it?

xfconf-query -c xfce4-panel -lv

...and your xsettings:

xfconf-query -c xsettings -lv

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 2018-04-06 13:15:43

Swedneck
Member
From: Sweden
Registered: 2018-04-04
Posts: 9

Re: Datetime and battery monitor plugin have bright backgrounds

Panel:

/configver                                2
/panels                                   <<UNSUPPORTED>>
/panels/panel-1/background-alpha          100
/panels/panel-1/disable-struts            false
/panels/panel-1/enter-opacity             100
/panels/panel-1/leave-opacity             100
/panels/panel-1/length                    100
/panels/panel-1/length-adjust             true
/panels/panel-1/mode                      0
/panels/panel-1/plugin-ids                <<UNSUPPORTED>>
/panels/panel-1/position                  p=6;x=960;y=16
/panels/panel-1/position-locked           true
/panels/panel-1/size                      42
/plugins/plugin-11                        battery
/plugins/plugin-12                        datetime
/plugins/plugin-15                        separator
/plugins/plugin-15/expand                 true
/plugins/plugin-15/style                  0
/plugins/plugin-2                         whiskermenu
/plugins/plugin-3                         tasklist
/plugins/plugin-3/flat-buttons            true
/plugins/plugin-3/include-all-workspaces  true
/plugins/plugin-3/show-handle             false
/plugins/plugin-3/show-labels             false
/plugins/plugin-4                         separator
/plugins/plugin-4/style                   0
/plugins/plugin-5                         datetime
/plugins/plugin-6                         systray
/plugins/plugin-6/names-hidden            <<UNSUPPORTED>>
/plugins/plugin-6/names-visible           <<UNSUPPORTED>>
/plugins/plugin-6/show-frame              false
/plugins/plugin-6/size-max                32
/plugins/plugin-7                         pager
/plugins/plugin-7/miniature-view          false
/plugins/plugin-7/rows                    1
/plugins/plugin-8                         weather

xsettings:

/Gtk/ButtonImages               true
/Gtk/CanChangeAccels            false
/Gtk/ColorPalette               black:white:gray50:red:purple:blue:light blue:green:yellow:orange:lavender:brown:goldenrod4:dodger blue:pink:light green:gray10:gray30:gray75:gray90
/Gtk/CursorThemeName            Breeze-geeko
/Gtk/CursorThemeSize            0
/Gtk/DecorationLayout           menu:minimize,maximize,close
/Gtk/FontName                   Sans 10
/Gtk/IconSizes                  
/Gtk/KeyThemeName               
/Gtk/MenuBarAccel               F10
/Gtk/MenuImages                 true
/Gtk/MonospaceFontName          Monospace 10
/Gtk/ToolbarIconSize            3
/Gtk/ToolbarStyle               both-horiz
/Net/CursorBlink                true
/Net/CursorBlinkTime            1200
/Net/DndDragThreshold           8
/Net/DoubleClickDistance        5
/Net/DoubleClickTime            400
/Net/EnableEventSounds          false
/Net/EnableInputFeedbackSounds  false
/Net/IconThemeName              Origami-dark
/Net/SoundThemeName             default
/Net/ThemeName                  Geeko-Dark
/Xft/Antialias                  1
/Xft/Hinting                    1
/Xft/HintStyle                  hintslight
/Xft/RGBA                       none

Offline

#16 2018-04-06 14:57:06

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Datetime and battery monitor plugin have bright backgrounds

Okay, got it. It's a theme issue.

Create the file ~/.config/gtk-3.0/gtk.css and place the following content into it:

.xfce4-panel.panel {
  background-color: rgba(56, 56, 56, 0.95);
  text-shadow: none;
  -gtk-icon-shadow: none; }

...save the file and restart xfce4-panel:

xfce4-panel -r

It's odd that I can't replicate this issue on my arch install though.


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

#17 2018-04-06 17:31:51

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

Re: Datetime and battery monitor plugin have bright backgrounds

ToZ wrote:

Hmmm. I'm downloading the fedora 27 xfce iso now. I'll give it a try. Can I see your panel configuration so I can replicate it?

Now that's service. My mother cannot get her mailman to consistently close the flap on her mailbox, even when it is pouring rain - and he's getting paid.

The developers of Xfce should use your avatar for the next release version of their DE, in recognition for all you do for their flock, lol. Complete with a t-shirt that has "ToZ" on it.

Best regards,
MDM


Mountain Dew Maniac

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

Offline

#18 2018-04-06 17:48:00

Swedneck
Member
From: Sweden
Registered: 2018-04-04
Posts: 9

Re: Datetime and battery monitor plugin have bright backgrounds

I'll use this fix until i can pester LCP to fix the theme, thanks!

And i agree with MDM, 10/10 support tongue

Offline

Board footer

Powered by FluxBB