Skip to content

Commit

Permalink
fix: Improve icon file type hover transition
Browse files Browse the repository at this point in the history
  • Loading branch information
equinusocio committed Oct 25, 2016
1 parent ce6726e commit a84d6cc
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 5 deletions.
7 changes: 7 additions & 0 deletions Material-Theme-Darker.sublime-theme
Original file line number Diff line number Diff line change
Expand Up @@ -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"]}],
Expand Down
7 changes: 7 additions & 0 deletions Material-Theme-Lighter.sublime-theme
Original file line number Diff line number Diff line change
Expand Up @@ -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"]}],
Expand Down
11 changes: 8 additions & 3 deletions Material-Theme-Palenight.sublime-theme
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
},
Expand Down
6 changes: 6 additions & 0 deletions Material-Theme.sublime-theme
Original file line number Diff line number Diff line change
Expand Up @@ -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"]}],
Expand Down
7 changes: 7 additions & 0 deletions sources/themes/darker/sidebar.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]}],
Expand Down
6 changes: 6 additions & 0 deletions sources/themes/default/sidebar.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]}],
Expand Down
7 changes: 7 additions & 0 deletions sources/themes/lighter/sidebar.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]}],
Expand Down
9 changes: 7 additions & 2 deletions sources/themes/palenight/sidebar.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a84d6cc

Please sign in to comment.