Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-02-24 20:03:46

stephenbbb
Member
Registered: 2018-09-26
Posts: 10

modify window colors

Is there a way to modify the colors of the window title bar, menu bar and icon bar? right now they are all black and I would like to have the menu bar and icon bar different. Tried playing with desktop settings, but can't find it.
Thanks everybody.

Offline

#2 2023-02-24 21:21:23

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

Re: modify window colors

It kind of depends on a number of items:

- Window bar - is this a CSD (client side decorated) or SSD (server side decorated) bar? The former can be adjusted using CSS, while the later would involve editing the xfwm4 theme.

- menu bar/icon bar - this would depend on the toolkit that was used to program the app. GTK3 can be changed via CSS, QT has a separate method that I am unfamilair with, and there are other toolkits as well.

Perhaps you could post a screenshot so we could visually identify those elements?


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 2023-02-25 01:18:27

stephenbbb
Member
Registered: 2018-09-26
Posts: 10

Re: modify window colors

I hope the link works, it did not allow me to use the img tag.

https://drive.google.com/file/d/1vwLSH_ … sp=sharing

this is emacs installed from linux mint.

 This is GNU Emacs, one component of the GNU/Linux operating system.

GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.30, cairo version 1.16.0)
 of 2022-01-24, modified by Debian
Copyright (C) 2020 Free Software Foundation, Inc.

Offline

#4 2023-02-25 02:08:26

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

Re: modify window colors

Looks like its built with GTK. I have a later version so it might be different, but can you try the following snippet to see if it works?

Add to (or create if it  doesn't exist) the file ~/.config/gtk-3.0/gtk.css and add the following content:

#Emacs menubar {background-color: red}
#Emacs toolbar {backround-color: #0000ff}

...change the colours to suit.

Save the file and restart emacs to see the change.


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 2023-02-25 15:07:30

stephenbbb
Member
Registered: 2018-09-26
Posts: 10

Re: modify window colors

is there a way to modify all windows? thunar looks the same

https://drive.google.com/file/d/1ttD3QS … sp=sharing

the bar that says 'immanuel' (title bar) is black and the menu bar beneath is also black. this must be due to XFCE as windows don't look like that in Mate or Unity. there should be some XFCE setting to take care of all windows.
If there is no such thing I will try mucking with settings at the app level.
Cheers

Offline

#6 2023-02-25 16:42:48

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

Re: modify window colors

The widgets (toolbar and menubar) are standard in GTK3. If any application makes use of them you can affect them all (I believe thunar makes use of them). In that case, remove the "#Emacs" ID and the tweak will affect all GTK toolbars and menubars:

menubar {background-color: red}
toolbar {backround-color: #0000ff}

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.015 seconds, 7 queries executed - Memory usage: 536.59 KiB (Peak: 537.43 KiB) ]