How investigate codes of linux mint themes?

About programming and getting involved with Linux Mint development
Post Reply
User avatar
Dan-cer
Level 3
Level 3
Posts: 148
Joined: Fri Jul 29, 2022 4:56 pm

How investigate codes of linux mint themes?

Post by Dan-cer »

Are there kind of developer tools for desktop windows available like the dev tools in browsers?

I want to do this:
Click on the window titlebar of any linux mint program to search for the right .css file where I can edit the colors.

I installed Oomox GUI editor. However, I have difficulties to find the right item and .css, because there are more than 1 css file within my theme (Cinnamox-Kashmir-Blue).
Cinnamon 20.3 on PC i5 Quadcore AsRock Z97 Extreme4 with Dual boot Win 10
Cinnamon 21.0 on PC i5-8400 6core Dell Optiplex 3060 with Dual boot Win 10
Cinnamon 21.0 on Thinpad T430 i7 dualcore
Vivaldi Browser as standard
User avatar
Termy
Level 9
Level 9
Posts: 2698
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

Re: How investigate codes of linux mint themes?

Post by Termy »

I highly doubt there's any such feature. AFAIK, windows just don't ordinarily work that way, unless you may have a special window manager which can share such information a program you describe could access. If you're just looking to adjust theme files (IE: '*.css'), then you should be easily able to see which theme you're using (I assume you selected it in the 'control panel'-type thing), then edit that accordingly. Sorry if I missed something.

I have since eaten most of those words, as a result of xenopeek's. :P Debugging hadn't occurred to me at all!
Last edited by Termy on Fri Aug 05, 2022 8:01 am, edited 1 time in total.
I'm also Terminalforlife on GitHub.
User avatar
xenopeek
Level 25
Level 25
Posts: 27361
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: How investigate codes of linux mint themes?

Post by xenopeek »

For GTK apps you can enable the built-in debugger aka inspector: https://blog.gtk.org/2017/04/05/the-gtk-inspector/. After enabling it you can press Ctrl+Shift+i in any GTK window to open the inspector. It has a CSS tab where you can insert CSS rules in the running window. Could be useful for testing things out. But it does not link you to which specific css file is being used for that window.

For Cinnamox-Kashmir-Blue I think the cinnamon directory is the Cinnamon desktop theme. The gtk-3.0 directory is probably what you're after. I have no idea about the gtk-3.20 directory but I'm not a theme person—I just stick with the defaults.
Image
User avatar
Dan-cer
Level 3
Level 3
Posts: 148
Joined: Fri Jul 29, 2022 4:56 pm

Re: How investigate codes of linux mint themes?

Post by Dan-cer »

Thank you for your answer. The built-in debugger could be useful some day. Here, your hint at gtk-3.0 directory let me find some interesting code.
Meanwhile I got an answer from the author of the theme. He gave me another hint. However, I still not got to the solution. The author has to have a look into the new Cinnamon 5.4.x for a new overview.

I'm confident I'll get the solution from him in near future.
Cinnamon 20.3 on PC i5 Quadcore AsRock Z97 Extreme4 with Dual boot Win 10
Cinnamon 21.0 on PC i5-8400 6core Dell Optiplex 3060 with Dual boot Win 10
Cinnamon 21.0 on Thinpad T430 i7 dualcore
Vivaldi Browser as standard
Post Reply

Return to “Programming & Development”