begtognen wrote: ⤴Mon Dec 07, 2020 8:10 pm
I'm wondering if there's a way to change the colour of the entire titlebar.
My test:
Yes, there is a way to do that. I have done this a long time ago, when there was not much contrast difference between focused and unfocused window titles. Even now i still have to look two times to be sure which one is focused or not. So i agree this is a good idea. I just didn’t want to change the theme too much, trying to please everyone...
Thanks for your positive comments, but i have to admit i am still not sure i have done the best yet. Maybe i shouldn’t have made some colours subdued for the "darkest" themes, in this current latest version. And i have another blue colour in mind to be tried soon.
So there is possibly a 99th new version coming soon...
Here is the answer to your question, quick and easy way:
When you want to test things, you may prefer to work in the
~/.themes directory. This directory overrides /usr/share/themes/ and you don’t need any "sudo" and passwords there.
- File manager > View > Show hidden files (Ctrl+H)
- Terminal:
mkdir -p ~/.themes
- Copy an entire theme into ~/.themes folder. Example:
cp -rf /usr/share/themes/Mint-Yz-Base-MintSoda ~/.themes/Mint-Yz-Base-MintSoda
- Right-click ~/.themes/Mint-Yz-Base-MintSoda/metacity-1/metacity-theme-3.xml to open it in your text editor.
- Change
<constant name="C_wm_bg_focused" value="rgba(217,217,217,1.0)" />
. Example: <constant name="C_wm_bg_focused" value="rgba(85,221,153,1.0)" />
(RGBA stands for red,green,blue,alpha and values are 0-255,0-255,0-255,0-1)
- Do the same on ~/.themes/Mint-Yz-Base-MintSoda/metacity-1/metacity-theme-2.xml but using #HEX values. Example: #55DD99
- Save those files.
- Open Menu > Preferences > Themes and switch back and forth from some old theme and back to your freshly edited theme to refresh. Try it.
- When everything is OK, you should copy your new theme into /usr/share/themes/ and then delete it from ~/.themes to make it available systemwide, i.e for root access, other users, your login screen, etc.
That was just the "quick and easy" way. But you would probably want to do this for each theme, for each Base and Darkest variants: 11 colours X 2 variants = 22 themes. The "real", "professional" way to do this "right" is to clone my repository from GitHub and then edit the 4 metacity files found in ~/mint-yz-theme/src/Mint-Y/metacity-1/, using this colour: #92b372. Only this colour. This old Mint-Y colour would then be replaced automatically with each new accent colour, when going through the whole big process described here:
https://github.com/SebastJava/mint-yz-t ... ourself.md But that’s far too complex for just changing the window title background colour (
C_wm_bg_focused
). You should prefer the "quick and easy" method listed above. Yes, i know, it is not so quick and easy.