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?
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.
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.
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.
My current tab is the color of my toolbar, and the rest are dim. This is not enough contrast?
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.
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.