From a84d6cc50a4d72272973bfca4e3a7d5e5a2d1014 Mon Sep 17 00:00:00 2001 From: EquinusOcio Date: Tue, 25 Oct 2016 17:10:04 +0200 Subject: [PATCH] fix: Improve icon file type hover transition --- Material-Theme-Darker.sublime-theme | 7 +++++++ Material-Theme-Lighter.sublime-theme | 7 +++++++ Material-Theme-Palenight.sublime-theme | 11 ++++++++--- Material-Theme.sublime-theme | 6 ++++++ sources/themes/darker/sidebar.json | 7 +++++++ sources/themes/default/sidebar.json | 6 ++++++ sources/themes/lighter/sidebar.json | 7 +++++++ sources/themes/palenight/sidebar.json | 9 +++++++-- 8 files changed, 55 insertions(+), 5 deletions(-) diff --git a/Material-Theme-Darker.sublime-theme b/Material-Theme-Darker.sublime-theme index 27f3f401e..3c7711505 100755 --- a/Material-Theme-Darker.sublime-theme +++ b/Material-Theme-Darker.sublime-theme @@ -658,6 +658,13 @@ "layer0.opacity": 0.6, "content_margin": [9, 9] }, + + { + "class": "icon_file_type", + "parents": [{"class": "tree_row", "attributes": ["hover"]}], + "layer0.opacity": { "target": 1.0, "speed": 3.0, "interpolation": "smoothstep" } + }, + { "class": "icon_file_type", "parents": [{"class": "tree_row", "attributes": ["selected"]}], diff --git a/Material-Theme-Lighter.sublime-theme b/Material-Theme-Lighter.sublime-theme index 1be8968a7..6bd26b72b 100755 --- a/Material-Theme-Lighter.sublime-theme +++ b/Material-Theme-Lighter.sublime-theme @@ -663,6 +663,13 @@ "layer0.opacity": 0.6, "content_margin": [9, 9] }, + + { + "class": "icon_file_type", + "parents": [{"class": "tree_row", "attributes": ["hover"]}], + "layer0.opacity": { "target": 1.0, "speed": 3.0, "interpolation": "smoothstep" } + }, + { "class": "icon_file_type", "parents": [{"class": "tree_row", "attributes": ["selected"]}], diff --git a/Material-Theme-Palenight.sublime-theme b/Material-Theme-Palenight.sublime-theme index 312b44a7b..faa1306c7 100755 --- a/Material-Theme-Palenight.sublime-theme +++ b/Material-Theme-Palenight.sublime-theme @@ -668,11 +668,16 @@ "content_margin": [9, 9] }, + { + "class": "icon_file_type", + "parents": [{"class": "tree_row", "attributes": ["hover"]}], + "layer0.opacity": { "target": 1.0, "speed": 3.0, "interpolation": "smoothstep" } + }, + { "class": "icon_file_type", "parents": [{"class": "tree_row", "attributes": ["selected"]}], - "layer0.opacity": 1, - "content_margin": [9, 9] + "layer0.opacity": 1.0 }, // Secondary folder icon (original) used as main folder icon @@ -992,7 +997,7 @@ "attributes": ["horizontal"], "layer0.texture": "Material Theme/assets/palenight/thumb_horizontal.png", "layer0.opacity": 1.0, - "layer0.inner_margin": [10, 10], + "layer0.inner_margin": [10, 0], "content_margin": [16, 6], "blur": false }, diff --git a/Material-Theme.sublime-theme b/Material-Theme.sublime-theme index a1ff081e5..05e727cd6 100755 --- a/Material-Theme.sublime-theme +++ b/Material-Theme.sublime-theme @@ -667,6 +667,12 @@ "content_margin": [9, 9] }, + { + "class": "icon_file_type", + "parents": [{"class": "tree_row", "attributes": ["hover"]}], + "layer0.opacity": { "target": 1.0, "speed": 3.0, "interpolation": "smoothstep" } + }, + { "class": "icon_file_type", "parents": [{"class": "tree_row", "attributes": ["selected"]}], diff --git a/sources/themes/darker/sidebar.json b/sources/themes/darker/sidebar.json index f2cd6a313..c7c8f3b2f 100755 --- a/sources/themes/darker/sidebar.json +++ b/sources/themes/darker/sidebar.json @@ -136,6 +136,13 @@ "layer0.opacity": 0.6, "content_margin": [9, 9] }, + + { + "class": "icon_file_type", + "parents": [{"class": "tree_row", "attributes": ["hover"]}], + "layer0.opacity": { "target": 1.0, "speed": 3.0, "interpolation": "smoothstep" } + }, + { "class": "icon_file_type", "parents": [{"class": "tree_row", "attributes": ["selected"]}], diff --git a/sources/themes/default/sidebar.json b/sources/themes/default/sidebar.json index 078aedb38..9890cb7a0 100755 --- a/sources/themes/default/sidebar.json +++ b/sources/themes/default/sidebar.json @@ -144,6 +144,12 @@ "content_margin": [9, 9] }, + { + "class": "icon_file_type", + "parents": [{"class": "tree_row", "attributes": ["hover"]}], + "layer0.opacity": { "target": 1.0, "speed": 3.0, "interpolation": "smoothstep" } + }, + { "class": "icon_file_type", "parents": [{"class": "tree_row", "attributes": ["selected"]}], diff --git a/sources/themes/lighter/sidebar.json b/sources/themes/lighter/sidebar.json index 73562d5a0..3ee9bd01b 100755 --- a/sources/themes/lighter/sidebar.json +++ b/sources/themes/lighter/sidebar.json @@ -143,6 +143,13 @@ "layer0.opacity": 0.6, "content_margin": [9, 9] }, + + { + "class": "icon_file_type", + "parents": [{"class": "tree_row", "attributes": ["hover"]}], + "layer0.opacity": { "target": 1.0, "speed": 3.0, "interpolation": "smoothstep" } + }, + { "class": "icon_file_type", "parents": [{"class": "tree_row", "attributes": ["selected"]}], diff --git a/sources/themes/palenight/sidebar.json b/sources/themes/palenight/sidebar.json index d4bd43d81..cccc130bf 100755 --- a/sources/themes/palenight/sidebar.json +++ b/sources/themes/palenight/sidebar.json @@ -144,11 +144,16 @@ "content_margin": [9, 9] }, + { + "class": "icon_file_type", + "parents": [{"class": "tree_row", "attributes": ["hover"]}], + "layer0.opacity": { "target": 1.0, "speed": 3.0, "interpolation": "smoothstep" } + }, + { "class": "icon_file_type", "parents": [{"class": "tree_row", "attributes": ["selected"]}], - "layer0.opacity": 1, - "content_margin": [9, 9] + "layer0.opacity": 1.0 }, // Secondary folder icon (original) used as main folder icon