MATE 19.1 Titlebar color

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
dld
Level 1
Level 1
Posts: 39
Joined: Sat Oct 29, 2011 4:12 pm

MATE 19.1 Titlebar color

Post by dld »

I have been using MATE 18 for some time and am very happy with it, but thought that I had better check out 19.1 as a replacement. So far the replacement answer is NO. I can't control the titlebar color for the Human-Clearlooks theme (or any other theme for that matter.) There have been suggestions on this forum for edits to alter Mint=Y themes, but they don't appear to me to apply to Human-Clearlook. MATE 18 had a "color" pick on the "Customize Theme" menu. That is what I would perfer.

All suggestions appreciated.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
smurphos
Level 18
Level 18
Posts: 8498
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: MATE 19.1 Titlebar color

Post by smurphos »

You are looking at either editing the relevant Metacity theme /usr/share/themes/Human/metacity-1/metacity-theme-1.xml or picking a different window borders theme in Customise Themes. The ability to edit title-bar colours on the the fly in MATE I think probably went with the transition to supporting metacity-theme-2.xml.

What to edit? Replace these these types of definitions <color value="shade/gtk:bg[SELECTED]/0.83"/> with hard coded color definitions of your choice e.g <color value="#2FD9E4"/>.

Code: Select all

<draw_ops name="title_background">
	<gradient type="vertical" x="0" y="1" width="width" height="top_height / 2">
		<color value="shade/gtk:bg[SELECTED]/0.83"/> <!-- 1.25 0.97 - 0.95 1.00 -->
		<color value="shade/gtk:bg[SELECTED]/0.64"/>
	</gradient>
	<gradient type="vertical" x="0" y="top_height / 2" width="width" height="top_height / 2">
		<color value="shade/gtk:bg[SELECTED]/0.62"/>
		<color value="shade/gtk:bg[SELECTED]/0.70"/>
	</gradient>
	
	<line color="shade/gtk:bg[SELECTED]/0.55" x1="0" y1="0" x2="width" y2="0"/>
	<!--<line color="shade/gtk:bg[SELECTED]/0.4" x1="7" y1="0" x2="width -8" y2="0"/>-->

	<tint color="shade/gtk:bg[SELECTED]/2" alpha="0.3" x="0" y="1" width="width" height="1"/>
	<tint color="shade/gtk:bg[SELECTED]/2" alpha="0.05" x="7" y="1" width="width -14" height="1"/>

	<line color="shade/gtk:bg[SELECTED]/0.65" x1="0" y1="top_height-2" x2="width" y2="top_height-2"/>
	<line color="shade/gtk:bg[SELECTED]/0.44" x1="0" y1="top_height-1" x2="width-1" y2="top_height-1"/>
	<tint color="shade/gtk:bg[SELECTED]/2" alpha="0.1" x="6" y="2" width="1" height="1"/>

	<tint color="#000000" alpha="0.05" x="width-6" y="1" width="1" height="1"/>
	<tint color="#000000" alpha="0.05" x="5" y="1" width="1" height="1"/>
</draw_ops>
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
dld
Level 1
Level 1
Posts: 39
Joined: Sat Oct 29, 2011 4:12 pm

[SOLVED]Re: MATE 19.1 Titlebar color

Post by dld »

Thank you. It worked but with undesirable side effects--title font changed, text color in terminal windows matched to titlebar color. i don't want to get into theme code. I will hang with MATE 18 and check back when 19.2 and 20 become available.
Locked

Return to “MATE”