Xfce Forum

Sub domains
 

You are not logged in.

#1 2017-06-24 07:37:06

k-3.14
Member
From: Rhineland
Registered: 2017-02-18
Posts: 156

GTK3 DateTime Plugin Styling [SOLVED]

Trying to change clock font color in panel #2

FluxBB bbcode test

Added those lines from here and did a reboot. No change.

Might be to stupid for Xfce and have to stick with KDE  (-;

br and thank you for helping .....

style "xfdesktop-icon-view" {
  ## opacity of text background (0 - 255, 0 = transparent)
  XfdesktopIconView::label-alpha = 0
  XfdesktopIconView::selected-label-alpha = 150
XfdesktopIconView::cell-spacing = 1
XfdesktopIconView::cell-padding = 1
XfdesktopIconView::cell-text-width-proportion = 2.1
##  XfdesktopIconView::ellipsize-icon-labels = 0
  ## Text colors you can delete these if you want you use gtk theme colors
  fg[NORMAL] = "#ffffff"
}

#

style "appmenu_font_colour" {
        fg[NORMAL] = "#729fcf"
        fg[PRELIGHT] = "#729fcf"
        fg[SELECTED] = "#729fcf"
        fg[ACTIVE] = "#729fcf"
}
widget "*datetime-*" style "appmenu_font_colour"

#

widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"

style "my-details-view"
{
   GtkTreeView::horizontal-separator = 10
}
widget_class "*ThunarDetailsView*" style "my-details-view"

Last edited by k-3.14 (2017-06-24 17:57:04)

Offline

#2 2017-06-24 13:07:34

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

Re: GTK3 DateTime Plugin Styling [SOLVED]

Which version of the datetime plugin are you using? As of 0.7.0, it has been converted to a GTK3 plugin (in preparation for 4.14, as have many other plugins). In which case, to style it you need to use GTK3 styling configurations. So in your particular case, add to ~/.config/gtk-3.0/gtk.css the following snippet:

#datetime-8* {
   color: #729fcf;
}

Unfortunately, the datetime plugin doesn't appear to have a dedicated style class defined so you need to specify the actual plugin id (#datetime-8*) to access it.


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 2017-06-24 16:01:41

k-3.14
Member
From: Rhineland
Registered: 2017-02-18
Posts: 156

Re: GTK3 DateTime Plugin Styling [SOLVED]

This a a fresh DEBIAN Stretch.

xfce4-datetime-plugin 0.7.0-1

Will test this evening. Thank you. Report back then.

Maybe you can shift my post to a new thread, as this one is marked [SOLVED]

br

Offline

#4 2017-06-24 17:56:30

k-3.14
Member
From: Rhineland
Registered: 2017-02-18
Posts: 156

Re: GTK3 DateTime Plugin Styling [SOLVED]

So easy, but you have to know how wink

image.jpg

Offline

#5 2017-06-24 21:35:49

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

Re: GTK3 DateTime Plugin Styling [SOLVED]

but you have to know how

The rabbit hole starts here. Also helpful is the GTK Inspector which will allow you to see and manipulate the style classes, widgets, etc. With respect to xfce4-panel, you would do the following:

xfce4-panel -q
GTK_DEBUG=interactive xfce4-panel

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.008 seconds, 8 queries executed - Memory usage: 534.5 KiB (Peak: 535.34 KiB) ]