Skip to content

Commit

Permalink
fix: Fix scrollbars black border with "overlay_scroll_bars": "disabled"
Browse files Browse the repository at this point in the history
Fix #1012
  • Loading branch information
equinusocio committed Oct 31, 2016
1 parent 354d8e5 commit c3f53b2
Show file tree
Hide file tree
Showing 8 changed files with 98 additions and 46 deletions.
14 changes: 10 additions & 4 deletions Material-Theme-Darker.sublime-theme
Original file line number Diff line number Diff line change
Expand Up @@ -913,9 +913,12 @@

{
"class": "scroll_bar_control",
"layer0.texture": "Material Theme/assets/darker/normal_bar_vertical.png",
"layer0.opacity": 1.0,
"layer0.tint": [33, 33, 33],
"layer0.inner_margin": [0, 6],
"layer0.opacity": 1.0,
"layer1.texture": "Material Theme/assets/darker/normal_bar_vertical.png",
"layer1.opacity": 1.0,
"layer1.inner_margin": [0, 6],
"blur": false
},

Expand All @@ -935,9 +938,12 @@
{
"class": "scroll_bar_control",
"attributes": ["horizontal"],
"layer0.texture": "Material Theme/assets/darker/normal_bar_horizontal.png",
"layer0.tint": [33, 33, 33],
"layer0.inner_margin": [0, 6],
"layer0.opacity": 1.0,
"layer0.inner_margin": [6, 0],
"layer1.texture": "Material Theme/assets/darker/normal_bar_horizontal.png",
"layer1.opacity": 1.0,
"layer1.inner_margin": [6, 0],
"blur": false
},

Expand Down
14 changes: 10 additions & 4 deletions Material-Theme-Lighter.sublime-theme
Original file line number Diff line number Diff line change
Expand Up @@ -923,9 +923,12 @@

{
"class": "scroll_bar_control",
"layer0.texture": "Material Theme/assets/lighter/normal_bar_vertical.png",
"layer0.opacity": 1.0,
"layer0.tint": [250, 250, 250],
"layer0.inner_margin": [0, 6],
"layer0.opacity": 1.0,
"layer1.texture": "Material Theme/assets/lighter/normal_bar_vertical.png",
"layer1.opacity": 1.0,
"layer1.inner_margin": [0, 6],
"blur": false
},

Expand All @@ -945,9 +948,12 @@
{
"class": "scroll_bar_control",
"attributes": ["horizontal"],
"layer0.texture": "Material Theme/assets/lighter/normal_bar_horizontal.png",
"layer0.tint": [250, 250, 250],
"layer0.inner_margin": [0, 6],
"layer0.opacity": 1.0,
"layer0.inner_margin": [6, 0],
"layer1.texture": "Material Theme/assets/lighter/normal_bar_horizontal.png",
"layer1.opacity": 1.0,
"layer1.inner_margin": [6, 0],
"blur": false
},

Expand Down
30 changes: 19 additions & 11 deletions Material-Theme-Palenight.sublime-theme
Original file line number Diff line number Diff line change
Expand Up @@ -928,9 +928,12 @@

{
"class": "scroll_bar_control",
"layer0.texture": "Material Theme/assets/palenight/normal_bar_vertical.png",
"layer0.opacity": 1.0,
"layer0.tint": [41, 45, 62],
"layer0.inner_margin": [0, 6],
"layer0.opacity": 1.0,
"layer1.texture": "Material Theme/assets/palenight/normal_bar_vertical.png",
"layer1.opacity": 1.0,
"layer1.inner_margin": [0, 6],
"blur": false
},

Expand All @@ -950,9 +953,12 @@
{
"class": "scroll_bar_control",
"attributes": ["horizontal"],
"layer0.texture": "Material Theme/assets/palenight/normal_bar_horizontal.png",
"layer0.tint": [41, 45, 62],
"layer0.inner_margin": [0, 6],
"layer0.opacity": 1.0,
"layer0.inner_margin": [6, 0],
"layer1.texture": "Material Theme/assets/palenight/normal_bar_horizontal.png",
"layer1.opacity": 1.0,
"layer1.inner_margin": [6, 0],
"blur": false
},

Expand Down Expand Up @@ -981,7 +987,7 @@

{
"class": "puck_control",
"layer0.tint": [38, 50, 255, 255],
"layer0.tint": [41, 45, 62],
"layer0.opacity": 1.0,
"layer0.inner_margin": [10, 10],
"layer1.texture": "Material Theme/assets/palenight/thumb_vertical.png",
Expand All @@ -996,9 +1002,12 @@
{
"class": "puck_control",
"attributes": ["horizontal"],
"layer0.texture": "Material Theme/assets/palenight/thumb_horizontal.png",
"layer0.tint": [41, 45, 62],
"layer0.opacity": 1.0,
"layer0.inner_margin": [10, 0],
"layer0.inner_margin": [10, 10],
"layer1.texture": "Material Theme/assets/palenight/thumb_horizontal.png",
"layer1.opacity": 1.0,
"layer1.inner_margin": [8, 8],
"content_margin": [16, 6],
"blur": false
},
Expand Down Expand Up @@ -1034,19 +1043,18 @@
"class": "scroll_bar_control",
"settings": ["overlay_scroll_bars"],
"layer0.texture": "Material Theme/assets/palenight/normal_bar_vertical.png",
"layer0.inner_margin": [0, 5],
"blur": true
"layer0.inner_margin": [0, 6]
},

{
"class": "scroll_bar_control",
"settings": ["overlay_scroll_bars"],
"attributes": ["horizontal"],
"layer0.texture": "Material Theme/assets/palenight/normal_bar_horizontal.png",
"layer0.inner_margin": [5, 0],
"layer0.inner_margin": [6, 0],
"layer0.opacity": 0.0,
"layer1.texture": "Material Theme/assets/palenight/normal_bar_horizontal.png",
"layer1.inner_margin": [5, 0],
"layer1.inner_margin": [6, 0],
"layer1.opacity": 0.0,
"blur": true
},
Expand Down
14 changes: 10 additions & 4 deletions Material-Theme.sublime-theme
Original file line number Diff line number Diff line change
Expand Up @@ -927,9 +927,12 @@

{
"class": "scroll_bar_control",
"layer0.texture": "Material Theme/assets/default/normal_bar_vertical.png",
"layer0.opacity": 1.0,
"layer0.tint": [38, 50, 56],
"layer0.inner_margin": [0, 6],
"layer0.opacity": 1.0,
"layer1.texture": "Material Theme/assets/default/normal_bar_vertical.png",
"layer1.opacity": 1.0,
"layer1.inner_margin": [0, 6],
"blur": false
},

Expand All @@ -949,9 +952,12 @@
{
"class": "scroll_bar_control",
"attributes": ["horizontal"],
"layer0.texture": "Material Theme/assets/default/normal_bar_horizontal.png",
"layer0.tint": [38, 50, 56],
"layer0.inner_margin": [0, 6],
"layer0.opacity": 1.0,
"layer0.inner_margin": [6, 0],
"layer1.texture": "Material Theme/assets/default/normal_bar_horizontal.png",
"layer1.opacity": 1.0,
"layer1.inner_margin": [6, 0],
"blur": false
},

Expand Down
14 changes: 10 additions & 4 deletions sources/themes/darker/scrollbars.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@

{
"class": "scroll_bar_control",
"layer0.texture": "Material Theme/assets/darker/normal_bar_vertical.png",
"layer0.opacity": 1.0,
"layer0.tint": [<%= ui.background.primary.rgb %>],
"layer0.inner_margin": [0, 6],
"layer0.opacity": 1.0,
"layer1.texture": "Material Theme/assets/darker/normal_bar_vertical.png",
"layer1.opacity": 1.0,
"layer1.inner_margin": [0, 6],
"blur": false
},

Expand All @@ -29,9 +32,12 @@
{
"class": "scroll_bar_control",
"attributes": ["horizontal"],
"layer0.texture": "Material Theme/assets/darker/normal_bar_horizontal.png",
"layer0.tint": [<%= ui.background.primary.rgb %>],
"layer0.inner_margin": [0, 6],
"layer0.opacity": 1.0,
"layer0.inner_margin": [6, 0],
"layer1.texture": "Material Theme/assets/darker/normal_bar_horizontal.png",
"layer1.opacity": 1.0,
"layer1.inner_margin": [6, 0],
"blur": false
},

Expand Down
14 changes: 10 additions & 4 deletions sources/themes/default/scrollbars.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@

{
"class": "scroll_bar_control",
"layer0.texture": "Material Theme/assets/default/normal_bar_vertical.png",
"layer0.opacity": 1.0,
"layer0.tint": [<%= ui.background.primary.rgb %>],
"layer0.inner_margin": [0, 6],
"layer0.opacity": 1.0,
"layer1.texture": "Material Theme/assets/default/normal_bar_vertical.png",
"layer1.opacity": 1.0,
"layer1.inner_margin": [0, 6],
"blur": false
},

Expand All @@ -29,9 +32,12 @@
{
"class": "scroll_bar_control",
"attributes": ["horizontal"],
"layer0.texture": "Material Theme/assets/default/normal_bar_horizontal.png",
"layer0.tint": [<%= ui.background.primary.rgb %>],
"layer0.inner_margin": [0, 6],
"layer0.opacity": 1.0,
"layer0.inner_margin": [6, 0],
"layer1.texture": "Material Theme/assets/default/normal_bar_horizontal.png",
"layer1.opacity": 1.0,
"layer1.inner_margin": [6, 0],
"blur": false
},

Expand Down
14 changes: 10 additions & 4 deletions sources/themes/lighter/scrollbars.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@

{
"class": "scroll_bar_control",
"layer0.texture": "Material Theme/assets/lighter/normal_bar_vertical.png",
"layer0.opacity": 1.0,
"layer0.tint": [<%= ui.background.primary.rgb %>],
"layer0.inner_margin": [0, 6],
"layer0.opacity": 1.0,
"layer1.texture": "Material Theme/assets/lighter/normal_bar_vertical.png",
"layer1.opacity": 1.0,
"layer1.inner_margin": [0, 6],
"blur": false
},

Expand All @@ -29,9 +32,12 @@
{
"class": "scroll_bar_control",
"attributes": ["horizontal"],
"layer0.texture": "Material Theme/assets/lighter/normal_bar_horizontal.png",
"layer0.tint": [<%= ui.background.primary.rgb %>],
"layer0.inner_margin": [0, 6],
"layer0.opacity": 1.0,
"layer0.inner_margin": [6, 0],
"layer1.texture": "Material Theme/assets/lighter/normal_bar_horizontal.png",
"layer1.opacity": 1.0,
"layer1.inner_margin": [6, 0],
"blur": false
},

Expand Down
30 changes: 19 additions & 11 deletions sources/themes/palenight/scrollbars.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@

{
"class": "scroll_bar_control",
"layer0.texture": "Material Theme/assets/palenight/normal_bar_vertical.png",
"layer0.opacity": 1.0,
"layer0.tint": [<%= ui.background.primary.rgb %>],
"layer0.inner_margin": [0, 6],
"layer0.opacity": 1.0,
"layer1.texture": "Material Theme/assets/palenight/normal_bar_vertical.png",
"layer1.opacity": 1.0,
"layer1.inner_margin": [0, 6],
"blur": false
},

Expand All @@ -29,9 +32,12 @@
{
"class": "scroll_bar_control",
"attributes": ["horizontal"],
"layer0.texture": "Material Theme/assets/palenight/normal_bar_horizontal.png",
"layer0.tint": [<%= ui.background.primary.rgb %>],
"layer0.inner_margin": [0, 6],
"layer0.opacity": 1.0,
"layer0.inner_margin": [6, 0],
"layer1.texture": "Material Theme/assets/palenight/normal_bar_horizontal.png",
"layer1.opacity": 1.0,
"layer1.inner_margin": [6, 0],
"blur": false
},

Expand Down Expand Up @@ -60,7 +66,7 @@

{
"class": "puck_control",
"layer0.tint": [38, 50, 255, 255],
"layer0.tint": [<%= ui.background.primary.rgb %>],
"layer0.opacity": 1.0,
"layer0.inner_margin": [10, 10],
"layer1.texture": "Material Theme/assets/palenight/thumb_vertical.png",
Expand All @@ -75,9 +81,12 @@
{
"class": "puck_control",
"attributes": ["horizontal"],
"layer0.texture": "Material Theme/assets/palenight/thumb_horizontal.png",
"layer0.tint": [<%= ui.background.primary.rgb %>],
"layer0.opacity": 1.0,
"layer0.inner_margin": [10, 0],
"layer0.inner_margin": [10, 10],
"layer1.texture": "Material Theme/assets/palenight/thumb_horizontal.png",
"layer1.opacity": 1.0,
"layer1.inner_margin": [8, 8],
"content_margin": [16, 6],
"blur": false
},
Expand Down Expand Up @@ -113,19 +122,18 @@
"class": "scroll_bar_control",
"settings": ["overlay_scroll_bars"],
"layer0.texture": "Material Theme/assets/palenight/normal_bar_vertical.png",
"layer0.inner_margin": [0, 5],
"blur": true
"layer0.inner_margin": [0, 6]
},

{
"class": "scroll_bar_control",
"settings": ["overlay_scroll_bars"],
"attributes": ["horizontal"],
"layer0.texture": "Material Theme/assets/palenight/normal_bar_horizontal.png",
"layer0.inner_margin": [5, 0],
"layer0.inner_margin": [6, 0],
"layer0.opacity": 0.0,
"layer1.texture": "Material Theme/assets/palenight/normal_bar_horizontal.png",
"layer1.inner_margin": [5, 0],
"layer1.inner_margin": [6, 0],
"layer1.opacity": 0.0,
"blur": true
},
Expand Down

0 comments on commit c3f53b2

Please sign in to comment.