Is it possible to add a top edge to the active folder tab?

I might be missing something obvious, but I couldn't find an option to add a top edge to the active tab for easier visual identification. It looks like this is only available for locked tabs.

Is it possible to add a top edge to the active tab as well, or am I currently limited to only changing the active tab's background and text color?

Many thanks

You can change the color of the whole active tab.

Yes, I'm aware of that and it's fine.

I just hoped there would also be a way of adding an edge to the top of the active tab because it's a personal preference of mine. I find it useful as an indicator. I'm also used to it from other programs so hoped to add this in DOpus as well for consistency.

This may prove helpful: Tab Color Based on Folder Content - #38 by Chuck

Thanks and well done on the script.

Unfortunately, I don't think it helps me in this particular case because all I want to do is add a top edge to the active tab, and it seems currently only the TABCOLOR parameter is exposed to scripting.

That's what the TABCOLOR parameter changes.

Ah, that’s on me. I misunderstood how the TABCOLOR parameter works. After reading the documentation, I assumed it changed the tab’s background color rather than adding a top edge.

I’ll go back to @Chuck 's script and try to use it as a guide for coming up with what I need.

Thank you both.

My current tab is the color of my toolbar, and the rest are dim. This is not enough contrast?

Current Tab

You want an edge color on the top? All I’m seeing in the ā€˜Settings > Folder Tabs > Edge Colors’ is an option for a wildcard; not sure how you could put in ā€œcurrentā€.

The code is to change it manually, but you want it to be automatic. I agree that might be handy.

What does that script do? :thinking:

It is. The existing options for adjusting background and text colors to distinguish the active tab are definitely sufficient.
I was just wondering if I could implement a personal preference for a slightly different visual style.

I have some basic JavaScript knowledge, but I'm not a programmer by any stretch. After a bit of trial and error, I put together a small script that adds a top edge to the active tab. It skips locked tabs, since I've already assigned those a different top edge color via Preferences > Colors and Fonts > Directory Opus Colors > Locked edge color.

function OnInit(initData) {
    initData.name = 'Add top edge to active tab';
    initData.version = '1.0';
    initData.copyright = '(c) 2026 Shai';
    initData.desc = 'Highlights the active tab with a color on its top edge';
    initData.default_enable = true;
    initData.min_version = '13.0';
}
function OnActivateTab(activateTabData) {
    var cmd = DOpus.Create().Command();
    cmd.SetSourceTab(activateTabData.oldtab);
    cmd.RunCommand('Go TABCOLOR=reset');
    if (activateTabData.newtab.lock == 'off') {
        cmd.SetSourceTab(activateTabData.newtab);
        cmd.RunCommand('Go TABCOLOR #bd93f9');
    }
}

It works, but I'm not sure if this is the best or most efficient approach. I'd really appreciate any feedback or suggestions on how it could be improved or made more robust if there are glaring oversights.
I haven't tested this long enough so there may be edge cases I haven't run into yet, and therefore I consider this more of a draft for now.

1 Like