From 178db658ebc8935748e1a4c9c434db43f40ea975 Mon Sep 17 00:00:00 2001 From: Amjad Ben Hedhili Date: Thu, 27 Jan 2022 01:25:23 +0100 Subject: [PATCH] Added `disabled` theme attribute (#361) --- .../Completions/Attributes (in-string).sublime-completions | 4 ++++ .../Completions/Attributes.sublime-completions | 5 +++++ Package/Sublime Text Theme/Sublime Text Theme.sublime-syntax | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Package/Sublime Text Theme/Completions/Attributes (in-string).sublime-completions b/Package/Sublime Text Theme/Completions/Attributes (in-string).sublime-completions index 6b65b5cf..1a59240a 100644 --- a/Package/Sublime Text Theme/Completions/Attributes (in-string).sublime-completions +++ b/Package/Sublime Text Theme/Completions/Attributes (in-string).sublime-completions @@ -109,6 +109,10 @@ "trigger": "pressed", "kind": ["snippet", "a", "Attribute"], }, + { + "trigger": "disabled", + "kind": ["snippet", "a", "Attribute"], + }, { "trigger": "confirm", "kind": ["snippet", "a", "Attribute"], diff --git a/Package/Sublime Text Theme/Completions/Attributes.sublime-completions b/Package/Sublime Text Theme/Completions/Attributes.sublime-completions index 41547796..977f3d0d 100644 --- a/Package/Sublime Text Theme/Completions/Attributes.sublime-completions +++ b/Package/Sublime Text Theme/Completions/Attributes.sublime-completions @@ -136,6 +136,11 @@ "contents": "\"pressed\"", "kind": ["snippet", "a", "Attribute"], }, + { + "trigger": "disabled", + "contents": "\"disabled\"", + "kind": ["snippet", "a", "Attribute"], + }, { "trigger": "confirm", "contents": "\"confirm\"", diff --git a/Package/Sublime Text Theme/Sublime Text Theme.sublime-syntax b/Package/Sublime Text Theme/Sublime Text Theme.sublime-syntax index 7285bf6e..1bbd2916 100644 --- a/Package/Sublime Text Theme/Sublime Text Theme.sublime-syntax +++ b/Package/Sublime Text Theme/Sublime Text Theme.sublime-syntax @@ -88,7 +88,7 @@ variables: | (?:left|right)(?:_overhang|_of_(?:selected|hover))? # tab_control | panel_visible # status_bar | dark | horizontal # stat_bar_control - | pressed | confirm | highlighted # button_control + | pressed | disabled | confirm | highlighted # button_control | left | right # icon_button_control | h?scrollable # scroll_area_control | ignored | untracked | modified | missing | added | staged | deleted | unmerged # file_system_entry & vcs_status_badge