You are not logged in.
Version: 4.20.2
I was wondering if anyone knew if there was a way in the `gtk.css` file, to be able to choose the colors used for active and or inactive file pane when using `Split View`
mode?
As far as I know this is the only visual indicator that shows which pane is active and which pane is inactive.
To me with using darker themes, this is not always a clear indicator and can sometimes be confusing.
Some themes have the darker file pane background = active and others use the lighter file pane background = action.
I also sometimes change the file pane background in my `gtk.css` file which maybe in some cases overrides this visual indicator completely in some themes?
If anyone knows of any other visual indicators that Thunar uses in `Split View` mode, I would be interested in as `gtk.css` information shared about this topic.
Thank you to anyone who reads this and for any information provided.
Last edited by advice1010 (2025-08-22 23:04:03)
Offline
What version of thunar are you running? In 4.20 or later:
/* set active pane colour */
.thunar notebook scrolledwindow {background-color: green}
/* set inactive (split-pane) color
.thunar .split-view-inactive-pane .view {background-color: yellow}
Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
@ToZ
Thank you for providing this information.
Ahh yes sorry I forgot, I am using 4.20.x
Anyone, please correct me if I am wrong, but here are some things I noticed.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
SPLIT VIEW - ACTIVE FILE PANE - BACKGROUND COLOR
/* set active pane colour */
.thunar notebook scrolledwindow {background-color: green}
This line for me did not change the active file panes background color.
At first I did not think it did anything, but then when I opened a different window and applied focus to that window, I noticed that in the non active Thunar window, the cursor/highlight background color turned "green".
So I think this is for the cursor/highlight background color when Thunar window does NOT have focus.
My assumption is that the active file pane background color is using the same background color as the single file pane mode, which I believe is this code
.thunar .standard-view .view { background-color: black; }
Unless you know of any other code that changes the active file panes background color when in "Split View"?
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
SPLIT VIEW - INACTIVE FILE PANE - BACKGROUND COLOR
/* set inactive (split-pane) color */
.thunar .split-view-inactive-pane .view {background-color: yellow}
This is the line I was looking, this one works well, thank you for this.
SPLIT VIEW - INACTIVE FILE PANE - CURSOR HIGHLIGHT COLOR
Not sure if this one actually exists?
Do you or any other users by any chance know if there is a way to change the cursor highlight background color in the inactive file pane?
This is the only code I am aware of for the cursor highlight, which applies to both panes
.thunar .standard-view .view:selected {background-color: blue; }
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
SPLIT VIEW - OTHER VISUAL INDICATORS
Also curious if you or any other users know of any other visual indicators for "Split View" mode.
Maybe an outline around the active file pane (similar to if you drag an item from one file pane to another in "Split View" mode, the file pane you are dropping into will show an outline around that file pane).
Or anything else?
Thank You
Last edited by advice1010 (2025-08-08 13:56:14)
Offline
Sorry, I had a typo in my code. Try this instead:
/* set active pane colour */
.thunar notebook .view {background-color: green}
/* set inactive (split-pane) color */
.thunar .split-view-inactive-pane .view {background-color: yellow}
Also curious if you or any other users know of any other visual indicators for "Split View" mode.
Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
@ToZ
Thank you for your response.
Okay that worked.
So it appears that
/* set active pane colour */
.thunar notebook .view {background-color: green}
and
.thunar .standard-view .view { background-color: green; }
both do the same thing, which is change the background color of the "active" file pane.
Thank you again for your help
------------------------------------------------------------------------------------------------------------------------------
Added later 03 min 26 s:
@ToZ or any other users familiar with CSS + XFCE
LINK RESPONSE
I also took a look at that link you provided.
Ahh okay so there is not really anything official other then the color of the background for "Split View". Would rather not use a 3rd party modification as seen on that page.
QUESTION - FILE PANE BORDER?
In the top thread post of that link, user "va9iff" mentions that there is a "slight 1px border but that's unnoticeable"
I do not see a border personally, does anyone know if there is one there? If there is,
Can the color / px count be increased to show thicker outline?
I tried the following two but neither worked for me
.thunar notebook .view {border-width: 10px; border-color: red}
and
.thunar .standard-view .view {border-width: 10px; border-color: red}
QUESTION - ACTIVE TAB BORDER
In reply #3 this CSS code was mentioned to outline the "active tab"
.thunar notebook {border-width: 10px; border-color: red}
this sounds interesting, I tried this out but did not work for me.
Using Thunar 4.20.2, not sure if maybe this no longer works?
Would also be interested in code for active tabs background color if anyone knows it. I tried the following but also did not work for me.
.thunar notebook {background-color: green}
Thank you to anyone who reads this
Last edited by advice1010 (2025-08-16 17:02:58)
Offline
[ Generated in 0.016 seconds, 7 queries executed - Memory usage: 570.42 KiB (Peak: 587.7 KiB) ]