Change windows outline in XFCE

Open the XFWM4 folder that I sent you and Select All items.

Open the Mint-X folder, then the XFWM4 folder.
Paste the items you copied from the folder I sent you - clicking the accept replacing any files.

Once done, select the Mint-x-sand window border and test.

Thank you very much for reworking the Mint theme! Everything looks really good now!

1 Like

Critical feedback is welcome. That was a fast and precursory look to see if that would work for you, allowing plenty of room (I set it to 10px) for grabbing the resize.

I think the reason some elements did not appear was because the Mint Team relies heavily on symlinks, which do not copy over.

I don't understand this. I can't choose this in window management. Should the window have a sand button to quit?
Do you mean Mod-x-sand?

If you follow the instructions I gave above, it is Mint-X-Sand

I did a quick test on Mint 24.04 and everything works. In Window Manager > Style, the theme includes Mint-X-Sand along with many others.

The folder I sent you would not and cannot delete or replace a theme in your themes folders. So, I have zero idea why you are not seeing it, when it was not replaced and you were using it before...

The mod-x-sand folder only contains some files to move into your mint-x-sand theme XFWM4 folder - it is not a full theme itself and should not be placed in .themes - it should have its inner contents moved into the folder for mint-x in your Themes Folder.

We didn't change the Mint-X-Sand folder yet. I can do this, no problem. My Mint-X-Sand theme contains no xfwm4 folder originally.

1 Like

The sand portion only adds elements of color to the gtk portion of Mint-x.

I pointed this out above.
The XFWM4 folder is in Mint-X
When you select Mint-x-sand in Window Manager > style, it redirects that portion - just the window borders, to Mint-X

Mint-X is the Base theme, with teal and sand and red and others only applying a widget color scheme to Mint-X.

Create a new folder in your ~.themes folder and name it Mod-X-Sand
Copy the XFWM folder into it.

Oops, I think I misunderstood you. I created a new empty folder in ~/.themes, called it Mod-X-Sand and then put the xfwm folder you sent me in there and left the text file out. I was very surprised about doing this...

Heh heh...
You want to move the mint-x themes from /usr/share/themes to ~/.themes in order to have a copy that you can work on easily, but still have the original safely in the root folder.
Then use right click > Properties > Permissions to give ownership and read/write access to yourself.

Once done, copy the contents of the mod-x-sand > xfwm4 folder into your ~/.themes/mint-x/xfwm4 folder.

1 Like

So I made this yesterday when changing the window borders. I always want to leave the original untouched. Good that the misunderstanding has now been cleared up! Now I realise why it didn't work straight away.

1 Like

How can you make the border two-colored: Inside a 1px wide border in gray and around it a 9px wide border in transparent?

It cannot be done.

Transparency is not recognized in XFWM4 as a grabbable area.
You can make it transparent - but it will not count toward the grab area if you do.

It also would be fully transparent on the window itself, so you would see your desktop Wallpaper through that gap - not the background color of the window.

My usual technique is to create a border that has the one pixel width you mention, than a 9 pixel width of the window background color, giving the illusion of a thin border.
However, the Mint-x theme looks odd if this is done, due to the contrasting bars at the top.

Yes, the normal transparency effect makes the whole window transparent. I've already tried that, but I don't find it very practical as it makes everything much harder to read. As there is only one line in the CSS file for the thickness of the border, I have not yet found a solution for my idea.

The Window Borders are not governed by .css in XFCE, but by XFWM4 - the Window Manager.
Unlike Gnome, XFCE has a fully developed and functional Window Manager.

Changing the borders in your themes .css file will not change any XFWM4 window borders. It can only affect any CSD-only applications you have installed.

Yes, you are right. Sorry, I just mixed it up and meant xfwm4.

Is there transparency recognized in another window manager as a grabbable area?

D.E.'s that can register transparent elements as interactive (Grabbable area to resize):
Gnome
Cinnamon
Plasma (KDE)

D.E.'s that do not register a transparent element as interactive:
LXQT
Mate
XFCE

I will note that inconstencies exist for this in LXQT and Mate, where sometimes it can, others it cannot.

I believe the reason for your question is that you want to see a very thin border while still having ample grab area.
You actually made me think about something here.
XFWM4 is a fully functional window manager, I said above. Well, the themes include a theme resource file themerc file which can define a borders interactive area, even if you render a different sized area in the theme image.
We can test this idea.

Set a copy of your original Mint-X theme (not modified in any way) in your ~/.themes folder.
In your ~/.themes/Mint-X/XFWM4/themerc file, add set these borders:

[frame]
active_left_width=10
active_right_width=10
active_top_height=10
active_bottom_height=10

inactive_left_width=10
inactive_right_width=10
inactive_top_height=10
inactive_bottom_height=10

save the file.
Log out and in, then test....

1 Like

Yes, exactly. I don't have access to this computer right now, but I'll try it out later.

1 Like

Good, because I just realized an error in my post.

The above should be tested using a modified theme, not an unmodified one - in which you set your transparency (If a transparency is what you want).

I blame how late the hour is here for my brain fog.

I don't see any change in the window frames.