Sublime Forum

Visual indicator for readonly tabs

#1

Is there a way to reflect a view’s readonly attribute visually ?

I am able to set a view’s readonly attribute to reflect the underlying’s file attribute though a plugin.
I understand how to style the “tab_close_button” according to a view’s transient / dirty nature.
i.e using a “theme” rule like :

"rules": [
{
    "class": "tab_close_button",
    "attributes": ["!hover"],
    "parents": [{"class": "tab_control", "attributes": ["transient"]}],
    "layer0.texture": "Theme - Default/common/tab_dirty.png",
    "layer0.tint": "green",
    "layer0.opacity": 0.9
} ]

Is it possible to do something similar for the readonly attribute ?

0 Likes

#2

Currently not possible.

0 Likes