Skip to content

Commit

Permalink
fix: Improve tree folder/arrow hover animation
Browse files Browse the repository at this point in the history
  • Loading branch information
equinusocio committed Oct 14, 2016
1 parent ee8ec38 commit 37879c9
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 20 deletions.
8 changes: 4 additions & 4 deletions Material-Theme-Palenight.sublime-theme
Original file line number Diff line number Diff line change
Expand Up @@ -696,9 +696,9 @@
"settings": ["material_theme_arrow_folders"],
"layer0.opacity": 0,
"layer1.texture": "Material Theme/assets/palenight/arrow_folder.png",
"layer1.opacity": 1,
"layer1.opacity": { "target": 1.0, "speed": 7.0, "interpolation": "smoothstep" },
"layer2.texture": "Material Theme/assets/commons/arrow_folder--hover.png",
"layer2.opacity": 0.0,
"layer2.opacity": { "target": 0.0, "speed": 7.0, "interpolation": "smoothstep" },
"layer3.texture": "Material Theme/assets/commons/arrow_folder--opened.png",
"layer3.opacity": 0.0
},
Expand All @@ -720,8 +720,8 @@
[
{ "class": "tree_row", "attributes": ["hover"] }
],
"layer1.opacity": 0.0,
"layer2.opacity": 1.0,
"layer1.opacity": { "target": 0.0, "speed": 7.0, "interpolation": "smoothstep" },
"layer2.opacity": { "target": 1.0, "speed": 7.0, "interpolation": "smoothstep" },
"layer3.opacity": 0.0,
},

Expand Down
8 changes: 4 additions & 4 deletions sources/themes/darker/sidebar.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@
"settings": ["material_theme_arrow_folders"],
"layer0.opacity": 0,
"layer1.texture": "Material Theme/assets/darker/arrow_folder.png",
"layer1.opacity": 1,
"layer1.opacity": { "target": 1.0, "speed": 7.0, "interpolation": "smoothstep" },
"layer2.texture": "Material Theme/assets/commons/arrow_folder--hover.png",
"layer2.opacity": 0.0,
"layer2.opacity": { "target": 0.0, "speed": 7.0, "interpolation": "smoothstep" },
"layer3.texture": "Material Theme/assets/commons/arrow_folder--opened.png",
"layer3.opacity": 0.0
},
Expand All @@ -188,8 +188,8 @@
[
{ "class": "tree_row", "attributes": ["hover"] }
],
"layer1.opacity": 0.0,
"layer2.opacity": 1.0,
"layer1.opacity": { "target": 0.0, "speed": 7.0, "interpolation": "smoothstep" },
"layer2.opacity": { "target": 1.0, "speed": 7.0, "interpolation": "smoothstep" },
"layer3.opacity": 0.0,
},

Expand Down
8 changes: 4 additions & 4 deletions sources/themes/default/sidebar.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@
"layer0.tint": [<%= ui.background.primary.rgb %>],
"layer0.opacity": 0,
"layer1.texture": "Material Theme/assets/default/folder.png",
"layer1.opacity": 1,
"layer1.opacity": { "target": 1.0, "speed": 7.0, "interpolation": "smoothstep" },
"layer2.texture": "Material Theme/assets/commons/folder--hover.png",
"layer2.opacity": 0.0,
"layer2.opacity": { "target": 0.0, "speed": 7.0, "interpolation": "smoothstep" },
"layer3.texture": "Material Theme/assets/commons/folder_opened--hover.png",
"layer3.opacity": 0.0,
},
Expand Down Expand Up @@ -196,8 +196,8 @@
[
{ "class": "tree_row", "attributes": ["hover"] }
],
"layer1.opacity": 0.0,
"layer2.opacity": 1.0,
"layer1.opacity": { "target": 0.0, "speed": 7.0, "interpolation": "smoothstep" },
"layer2.opacity": { "target": 1.0, "speed": 7.0, "interpolation": "smoothstep" },
"layer3.opacity": 0.0,
},

Expand Down
8 changes: 4 additions & 4 deletions sources/themes/lighter/sidebar.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@
"layer0.tint": [250, 250, 250],
"layer0.opacity": 0,
"layer1.texture": "Material Theme/assets/lighter/folder.png",
"layer1.opacity": 1,
"layer1.opacity": { "target": 1.0, "speed": 7.0, "interpolation": "smoothstep" },
"layer2.texture": "Material Theme/assets/commons/folder--hover.png",
"layer2.opacity": 0.0,
"layer2.opacity": { "target": 0.0, "speed": 7.0, "interpolation": "smoothstep" },
"layer3.texture": "Material Theme/assets/commons/folder_opened--hover.png",
"layer3.opacity": 0.0,
},
Expand Down Expand Up @@ -195,8 +195,8 @@
[
{ "class": "tree_row", "attributes": ["hover"] }
],
"layer1.opacity": 0.0,
"layer2.opacity": 1.0,
"layer1.opacity": { "target": 0.0, "speed": 7.0, "interpolation": "smoothstep" },
"layer2.opacity": { "target": 1.0, "speed": 7.0, "interpolation": "smoothstep" },
"layer3.opacity": 0.0,
},

Expand Down
8 changes: 4 additions & 4 deletions sources/themes/palenight/sidebar.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@
"settings": ["material_theme_arrow_folders"],
"layer0.opacity": 0,
"layer1.texture": "Material Theme/assets/palenight/arrow_folder.png",
"layer1.opacity": 1,
"layer1.opacity": { "target": 1.0, "speed": 7.0, "interpolation": "smoothstep" },
"layer2.texture": "Material Theme/assets/commons/arrow_folder--hover.png",
"layer2.opacity": 0.0,
"layer2.opacity": { "target": 0.0, "speed": 7.0, "interpolation": "smoothstep" },
"layer3.texture": "Material Theme/assets/commons/arrow_folder--opened.png",
"layer3.opacity": 0.0
},
Expand All @@ -196,8 +196,8 @@
[
{ "class": "tree_row", "attributes": ["hover"] }
],
"layer1.opacity": 0.0,
"layer2.opacity": 1.0,
"layer1.opacity": { "target": 0.0, "speed": 7.0, "interpolation": "smoothstep" },
"layer2.opacity": { "target": 1.0, "speed": 7.0, "interpolation": "smoothstep" },
"layer3.opacity": 0.0,
},

Expand Down

0 comments on commit 37879c9

Please sign in to comment.