Colour of File title bar and different file types

Hi,

is it possible to change it so the file title bar of an item is a different colour depending the file type

Red for docx

Blue for .odt

etc

On GNOME (linux) you could create an application theme, then write a bash script and set up everything so that the bash script detects the file type and then executes libreoffice with a specific theme (e.g. GTK_THEME=red libreoffice --writer, where red is the theme that you created for the color red (→docx)).

However, we need to know basic infos like your OS, libreoffice info etc.
Only then might someone be able to help you.