# Reset tab color in tab context menu

**URL:** https://resource.dopus.com/t/reset-tab-color-in-tab-context-menu/52619
**Category:** Help & Support
**Created:** [September 3, 2024, 11:19am UTC](https://resource.dopus.com/t/reset-tab-color-in-tab-context-menu/52619 "2024-09-03T11:19:29Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![AlbatorV](https://resource.dopus.com/user_avatar/resource.dopus.com/albatorv/32/25847_2.png) [@AlbatorV](https://resource.dopus.com/u/AlbatorV)
#### Post date: [September 3, 2024, 11:19am UTC](https://resource.dopus.com/t/reset-tab-color-in-tab-context-menu/52619/1 "2024-09-03T11:19:29Z")

</div>

I create an item in tab context menu : `Go TABCOLOR=reset`

Is it possible to :

- Hide it if color is not set to tab
- Hide it if right clic in empty space of tab bar

---

<div class="post-metadata">

### Author: ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)
#### Post date: [September 3, 2024, 1:27pm UTC](https://resource.dopus.com/t/reset-tab-color-in-tab-context-menu/52619/2 "2024-09-03T13:27:16Z")

</div>

> [@AlbatorV](#):
>
> Hide it if color is not set to tab

AFAIK there isn't currently a way to do that.

> [@AlbatorV](#):
>
> Hide it if right clic in empty space of tab bar

You can do that by adding `@hideiftab:sel==-1` on a line at the top of the command.

That isn't documented yet, but here are some quick notes:

These can be used in the _Folder Tabs_ context menu:

- `@showiftab`
- `@hideiftab`
- `@enableiftab`
- `@disableiftab`

The tests use the Evaluator, and can use these variables:

- `sel` - tab index, or `-1` if the background is right-clicked.
- `dual` - true if the lister is a dual display
- `count` - number of tabs (on the clicked side)
- `countdual` - number of tabs on the other side (if dual display)
- `right` - true if the right tab (or tab bar) was clicked
- `path` - path of the clicked tab (if applicable)

(Edit: The variables are already documented here: [Tab Context Menus [Directory Opus Manual]](https://docs.dopus.com/doku.php?id=evaluator:applicable_contexts:tab_context_menus) )
