Skip to content

Commit

Permalink
feat: add gradient atom one dark
Browse files Browse the repository at this point in the history
  • Loading branch information
shaobeichen committed Oct 9, 2024
1 parent bba90ef commit 910d1c7
Show file tree
Hide file tree
Showing 6 changed files with 2,148 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@
<b>Gradient Modern Dark</b>
<div>基于 <a href="">Modern Dark</a> ,添加了渐变效果。</div>
</td>
<td>
<b>Gradient Atom One Dark</b>
<div>基于 <a href="">Atom One Dark</a> ,添加了渐变效果。</div>
</td>
</tr>
<tr>
<td><img src=./images/gradient-modern-dark.png width=600/></td>
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,15 @@ To be honest, I was very mind at first, but after I ignored the "corrupted" warn
<b>Gradient Modern Dark</b>
<div>I added a gradient effect to in <a href="">Modern Dark</a> .</div>
</td>
<td>
<b>Gradient Atom One Dark</b>
<div>I added a gradient effect to in <a href="">Atom One Dark</a> .</div>
</td>
</tr>
<tr>
<td><img src=./images/gradient-modern-dark.png width=600/></td>
</tr>

</table>

# Inspiration
Expand Down
52 changes: 52 additions & 0 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,58 @@
}
</style>

<style data-gradient-theme-id>
.shaobeichen-gradient-theme-themes-gradient-atom-one-dark-json { /* git 待提交数量徽章样式 */
/* 选中标签栏上边框 */
/* html标签属性 */
/* html标签 */
}
.shaobeichen-gradient-theme-themes-gradient-atom-one-dark-json .activitybar > .content :not(.monaco-menu) > .monaco-action-bar .badge .badge-content {
background-image: linear-gradient(45deg, #d44a8e, #ffcb99);
border-width: 0 !important;
color: rgb(70, 70, 70) !important;
}
@keyframes tabBorderTopMoveGradient {
from {
background-position: 0%;
}
to {
background-position: 100%;
}
}
.shaobeichen-gradient-theme-themes-gradient-atom-one-dark-json .tab.tab-actions-right.sizing-fit.has-icon.tab-border-top.active {
--tab-border-top-color: transparent !important;
position: relative;
}
.shaobeichen-gradient-theme-themes-gradient-atom-one-dark-json .tab.tab-actions-right.sizing-fit.has-icon.tab-border-top.active:after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 2px;
z-index: 1;
background-image: linear-gradient(to right, #eacd61, #ea618e, #3cec85, #61afea);
animation: tabBorderTopMoveGradient 3s infinite alternate;
background-size: 200%;
}
.shaobeichen-gradient-theme-themes-gradient-atom-one-dark-json :not(.cursor).mtk7 {
color: #d19a66;
background-image: linear-gradient(45deg, #cb5c4f, #ffcb99);
-webkit-text-fill-color: transparent;
-webkit-background-clip: text;
font-weight: 700;
font-style: italic;
}
.shaobeichen-gradient-theme-themes-gradient-atom-one-dark-json :not(.cursor).mtk9 {
color: #e06c75;
background-image: linear-gradient(45deg, #df3389, #cc9696);
-webkit-text-fill-color: transparent;
-webkit-background-clip: text;
font-weight: 700;
}
</style>

<style data-gradient-theme-id>
.shaobeichen-gradient-theme-themes-gradient-modern-dark-dark-modern-json { /* git 待提交数量徽章样式 */
/* 选中标签栏上边框 */
Expand Down
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@
"uiTheme": "vs-dark",
"path": "./themes/gradient-monokai-pro.json"
},
{
"label": "Gradient Atom One Dark",
"uiTheme": "vs-dark",
"path": "./themes/gradient-atom-one-dark.json"
},
{
"label": "Gradient Modern Dark",
"uiTheme": "vs-dark",
Expand Down Expand Up @@ -86,4 +91,4 @@
"vsce": {
"dependencies": false
}
}
}
51 changes: 51 additions & 0 deletions src/gradient-atom-one-dark/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/* git 待提交数量徽章样式 */
.activitybar > .content :not(.monaco-menu) > .monaco-action-bar .badge .badge-content {
background-image: linear-gradient(45deg, #d44a8e, #ffcb99);
border-width: 0 !important;
color: rgb(70 70 70) !important;
}

/* 选中标签栏上边框 */
@keyframes tabBorderTopMoveGradient {
from {
background-position: 0%;
}
to {
background-position: 100%;
}
}
.tab.tab-actions-right.sizing-fit.has-icon.tab-border-top.active {
--tab-border-top-color: transparent !important;
position: relative;
}
.tab.tab-actions-right.sizing-fit.has-icon.tab-border-top.active:after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 2px;
z-index: 1;
background-image: linear-gradient(to right, #eacd61, #ea618e, #3cec85, #61afea);
animation: tabBorderTopMoveGradient 3s infinite alternate;
background-size: 200%;
}

/* html标签属性 */
:not(.cursor).mtk7 {
color: #d19a66;
background-image: linear-gradient(45deg, #cb5c4f, #ffcb99);
-webkit-text-fill-color: transparent;
-webkit-background-clip: text;
font-weight: 700;
font-style: italic;
}

/* html标签 */
:not(.cursor).mtk9 {
color: #e06c75;
background-image: linear-gradient(45deg, #df3389, #cc9696);
-webkit-text-fill-color: transparent;
-webkit-background-clip: text;
font-weight: 700;
}
Loading

0 comments on commit 910d1c7

Please sign in to comment.