Xfce Forum

Sub domains
 

You are not logged in.

#1 2019-08-12 13:02:25

qx4vv9a
Member
Registered: 2019-08-12
Posts: 26

tooltips, window button width, window button font color - in gtk3?

hi, i would like to ask if somebody can help to get these 3 different things into gtk-3.0/gtk.css:


OLD settings in .gtkrc-2.0

# tooltips off
gtk-enable-tooltips = 0
#
#
#
# window button width
style "xfce-tasklist-style"
{
  XfceTasklist::max-button-length = 150
}
class "XfceTasklist" style "xfce-tasklist-style"
#
#
#
# window button font color
style "gtk-theme-config-panel" {
    fg[NORMAL] = "#ffffff"
    fg[PRELIGHT] = "#ffffff"
    fg[SELECTED] = "#ffffff"
    fg[ACTIVE] = "#000000"
}
widget "*Xfce*Panel*" style "gtk-theme-config-panel"
class "*Xfce*Panel*" style "gtk-theme-config-panel"


thanks in advance,
Tim

Offline

#2 2019-08-12 13:28:04

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

Re: tooltips, window button width, window button font color - in gtk3?

Hello and welcome.

All of the following CSS snippets should be added to ~/.config/gtk-3.0/gtk.css.

qx4vv9a wrote:

# tooltips off
gtk-enable-tooltips = 0

GTK3 removed the disabling of tooltips in 3.10. The best you can do now is make them fully transparent (they are still displayed but not visible). To do so, use the following snippet:

tooltips { opacity: 0; }

window button width
style "xfce-tasklist-style"
{
  XfceTasklist::max-button-length = 150
}
class "XfceTasklist" style "xfce-tasklist-style"

Use:

.tasklist { -XfceTasklist-max-button-length: 150; }

window button font color
style "gtk-theme-config-panel" {
    fg[NORMAL] = "#ffffff"
    fg[PRELIGHT] = "#ffffff"
    fg[SELECTED] = "#ffffff"
    fg[ACTIVE] = "#000000"
}
widget "*Xfce*Panel*" style "gtk-theme-config-panel"
class "*Xfce*Panel*" style "gtk-theme-config-panel"

Use:

/* NORMAL */
.tasklist button {
	color: #ffffff;
}
/* PRELIGHT */
.tasklist button:hover {
	color: #ffffff;
}
/* ACTIVE - only while being clicked */
.tasklist button:active {
	color: #000000;
}
/* SELECTED */
.tasklist button:checked {
	color: #000000;
}

Adjust colours to suit.


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-08-12 14:37:30

qx4vv9a
Member
Registered: 2019-08-12
Posts: 26

Re: tooltips, window button width, window button font color - in gtk3?

thank you for your instant reply but nothing of this works. datetime is black again. icon text seems to work.
this is my gtk.css:

#icon text not truncated#
* {
   -XfdesktopIconView-ellipsize-icon-labels: 0;
}
#datetime font color#
#datetime-8* {
   color: #E4E4E4;
}
#tooltips off#
tooltips { opacity: 0; }
#window button width#
.tasklist { -XfceTasklist-max-button-length: 150; }
#window button font color#
/* NORMAL */
.tasklist button {
    color: #ffffff;
}
/* PRELIGHT */
.tasklist button:hover {
    color: #ffffff;
}
/* ACTIVE - only while being clicked */
.tasklist button:active {
    color: #000000;
}
/* SELECTED */
.tasklist button:checked {
    color: #000000;
}

Last edited by qx4vv9a (2019-08-12 14:47:10)

Offline

#4 2019-08-12 14:58:16

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

Re: tooltips, window button width, window button font color - in gtk3?

Don't use "#" as comments in css files - they are actually used as element indicators (use /* comment */ instead). Try the following gtk.css file:

/* icon text not truncated */
XfdesktopIconView.view {
   -XfdesktopIconView-ellipsize-icon-labels: 0;
}
/* datetime font color */
#datetime-8* {
   color: #E4E4E4;
}
/* tooltips off */
tooltips { opacity: 0; }

/* window button width */
.tasklist { -XfceTasklist-max-button-length: 150; }

/* window button font color */
/* NORMAL */
.tasklist button {
    color: #ffffff;
}
/* PRELIGHT */
.tasklist button:hover {
    color: #ffffff;
}
/* ACTIVE - only while being clicked */
.tasklist button:active {
    color: #000000;
}
/* SELECTED */
.tasklist button:checked {
    color: #000000;
}

You can always check your ~/.xsession-errors file after to see if any error messages are displayed.


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-08-12 15:17:00

qx4vv9a
Member
Registered: 2019-08-12
Posts: 26

Re: tooltips, window button width, window button font color - in gtk3?

thank you, that's pretty good. everything works but the opacity of tooltips. they are displayed with value 0 or 100. no difference.

Offline

#6 2019-08-12 15:27:29

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

Re: tooltips, window button width, window button font color - in gtk3?

qx4vv9a wrote:

everything works but the opacity of tooltips. they are displayed with value 0 or 100. no difference.

Sorry, my bad. It should be "tooltip", not "tooltips".


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-08-12 15:43:01

qx4vv9a
Member
Registered: 2019-08-12
Posts: 26

Re: tooltips, window button width, window button font color - in gtk3?

/* icon text not truncated */
XfdesktopIconView.view {
   -XfdesktopIconView-ellipsize-icon-labels: 0;
}
/* datetime font color */
#datetime-8* {
   color: #E4E4E4;
}
/* tooltips off */
tooltip { opacity: 0; }

/* window button width */
.tasklist { -XfceTasklist-max-button-length: 150; }

/* window button font color */
/* NORMAL */
.tasklist button {
    color: #ffffff;
}
/* PRELIGHT */
.tasklist button:hover {
    color: #ffffff;
}
/* ACTIVE - only while being clicked */
.tasklist button:active {
    color: #000000;
}
/* SELECTED */
.tasklist button:checked {
    color: #000000;
}

works, now i'm happy.
thank you very much!

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.015 seconds, 8 queries executed - Memory usage: 547.37 KiB (Peak: 548.21 KiB) ]