From 1364e5c6354ce7878d3edb87a5601adf4850a8fe Mon Sep 17 00:00:00 2001 From: EquinusOcio Date: Sat, 29 Oct 2016 22:41:37 +0200 Subject: [PATCH] fix: Fix tabset spacing Fix #1008 --- Material-Theme-Darker.sublime-theme | 8 +++++++- Material-Theme-Lighter.sublime-theme | 9 ++++++++- Material-Theme-Palenight.sublime-theme | 9 ++++++++- Material-Theme.sublime-theme | 8 +++++++- sources/themes/commons/options.json | 6 ++++++ sources/themes/darker/tabs.json | 2 +- sources/themes/default/tabs.json | 2 +- sources/themes/lighter/tabs.json | 4 ++-- sources/themes/palenight/tabs.json | 3 ++- 9 files changed, 42 insertions(+), 9 deletions(-) diff --git a/Material-Theme-Darker.sublime-theme b/Material-Theme-Darker.sublime-theme index df45746b3..b6f56a837 100755 --- a/Material-Theme-Darker.sublime-theme +++ b/Material-Theme-Darker.sublime-theme @@ -269,7 +269,7 @@ "tint_index": 1, "layer0.inner_margin": [2, 6], "layer0.opacity": 1.0, - "content_margin": [12, 0, 8, 0], + "content_margin": [6, 0, 8, 0], "tab_overlap": 0, "tab_width": 180, "tab_min_width": 64, @@ -7322,6 +7322,12 @@ "tab_width": 0 }, + { + "class": "tabset_control", + "settings": ["!enable_tab_scrolling"], + "content_margin": [0, 0, 8, 0], + }, + { "class": "tab_control", "settings": ["material_theme_small_tab"], diff --git a/Material-Theme-Lighter.sublime-theme b/Material-Theme-Lighter.sublime-theme index 141c4379e..d797e2f30 100755 --- a/Material-Theme-Lighter.sublime-theme +++ b/Material-Theme-Lighter.sublime-theme @@ -268,7 +268,7 @@ "tint_index": 1, "layer0.inner_margin": [2, 6], "layer0.opacity": 1.0, - "content_margin": [12, 0, 8, 0], + "content_margin": [6, 0, 8, 0], "tab_overlap": 0, "tab_width": 180, "tab_min_width": 64, @@ -519,6 +519,7 @@ "layer1.opacity": { "target": 1.0, "speed": 8.0, "interpolation": "smoothstep" } }, + /* @ SIDEBAR * Sidebar panel settings and behavioring ========================================================================= */ @@ -7321,6 +7322,12 @@ "tab_width": 0 }, + { + "class": "tabset_control", + "settings": ["!enable_tab_scrolling"], + "content_margin": [0, 0, 8, 0], + }, + { "class": "tab_control", "settings": ["material_theme_small_tab"], diff --git a/Material-Theme-Palenight.sublime-theme b/Material-Theme-Palenight.sublime-theme index 4c6744881..4ac0e0d20 100755 --- a/Material-Theme-Palenight.sublime-theme +++ b/Material-Theme-Palenight.sublime-theme @@ -271,13 +271,14 @@ "tint_index": 1, "layer0.inner_margin": [2, 6], "layer0.opacity": 1.0, - "content_margin": [12, 0, 8, 0], + "content_margin": [6, 0, 8, 0], "tab_overlap": 0, "tab_width": 180, "tab_min_width": 64, "tab_height": 54, "mouse_wheel_switch": false }, + { "class": "tabset_control", "settings": ["mouse_wheel_switches_tabs", "!enable_tab_scrolling"], @@ -7335,6 +7336,12 @@ "tab_width": 0 }, + { + "class": "tabset_control", + "settings": ["!enable_tab_scrolling"], + "content_margin": [0, 0, 8, 0], + }, + { "class": "tab_control", "settings": ["material_theme_small_tab"], diff --git a/Material-Theme.sublime-theme b/Material-Theme.sublime-theme index df6b2b86c..b7543ab50 100755 --- a/Material-Theme.sublime-theme +++ b/Material-Theme.sublime-theme @@ -270,7 +270,7 @@ "tint_index": 1, "layer0.inner_margin": [2, 6], "layer0.opacity": 1.0, - "content_margin": [12, 0, 8, 0], + "content_margin": [6, 0, 8, 0], "tab_overlap": 0, "tab_width": 180, "tab_min_width": 64, @@ -7337,6 +7337,12 @@ "tab_width": 0 }, + { + "class": "tabset_control", + "settings": ["!enable_tab_scrolling"], + "content_margin": [0, 0, 8, 0], + }, + { "class": "tab_control", "settings": ["material_theme_small_tab"], diff --git a/sources/themes/commons/options.json b/sources/themes/commons/options.json index 9371cf87b..a6ba1a339 100644 --- a/sources/themes/commons/options.json +++ b/sources/themes/commons/options.json @@ -18,6 +18,12 @@ "tab_width": 0 }, + { + "class": "tabset_control", + "settings": ["!enable_tab_scrolling"], + "content_margin": [0, 0, 8, 0], + }, + { "class": "tab_control", "settings": ["material_theme_small_tab"], diff --git a/sources/themes/darker/tabs.json b/sources/themes/darker/tabs.json index a3bd88f57..e89b31dde 100755 --- a/sources/themes/darker/tabs.json +++ b/sources/themes/darker/tabs.json @@ -11,7 +11,7 @@ "tint_index": 1, "layer0.inner_margin": [2, 6], "layer0.opacity": 1.0, - "content_margin": [12, 0, 8, 0], + "content_margin": [6, 0, 8, 0], "tab_overlap": 0, "tab_width": 180, "tab_min_width": 64, diff --git a/sources/themes/default/tabs.json b/sources/themes/default/tabs.json index 6f98fc9f3..9fca16c37 100755 --- a/sources/themes/default/tabs.json +++ b/sources/themes/default/tabs.json @@ -10,7 +10,7 @@ "tint_index": 1, "layer0.inner_margin": [2, 6], "layer0.opacity": 1.0, - "content_margin": [12, 0, 8, 0], + "content_margin": [6, 0, 8, 0], "tab_overlap": 0, "tab_width": 180, "tab_min_width": 64, diff --git a/sources/themes/lighter/tabs.json b/sources/themes/lighter/tabs.json index e206dbf07..481432cb1 100755 --- a/sources/themes/lighter/tabs.json +++ b/sources/themes/lighter/tabs.json @@ -10,7 +10,7 @@ "tint_index": 1, "layer0.inner_margin": [2, 6], "layer0.opacity": 1.0, - "content_margin": [12, 0, 8, 0], + "content_margin": [6, 0, 8, 0], "tab_overlap": 0, "tab_width": 180, "tab_min_width": 64, @@ -259,4 +259,4 @@ "class": "show_tabs_dropdown_button", "attributes": ["hover"], "layer1.opacity": { "target": 1.0, "speed": 8.0, "interpolation": "smoothstep" } - }, \ No newline at end of file + }, diff --git a/sources/themes/palenight/tabs.json b/sources/themes/palenight/tabs.json index 121db3af2..af44ca718 100755 --- a/sources/themes/palenight/tabs.json +++ b/sources/themes/palenight/tabs.json @@ -10,13 +10,14 @@ "tint_index": 1, "layer0.inner_margin": [2, 6], "layer0.opacity": 1.0, - "content_margin": [12, 0, 8, 0], + "content_margin": [6, 0, 8, 0], "tab_overlap": 0, "tab_width": 180, "tab_min_width": 64, "tab_height": 54, "mouse_wheel_switch": false }, + { "class": "tabset_control", "settings": ["mouse_wheel_switches_tabs", "!enable_tab_scrolling"],