Add support for light themes

This commit is contained in:
2022-01-17 17:40:03 +01:00
parent 2e1315432a
commit 118a5db158
78 changed files with 328 additions and 260 deletions

View File

@@ -161,8 +161,11 @@ const example = () => {
<button class:button_highlight={style==="canta"} on:click={() => {set_style("canta")}}>
Canta
</button>
<button class:button_highlight={style==="arc"} on:click={() => {set_style("arc")}}>
Arc
<button class:button_highlight={style==="nord"} on:click={() => {set_style("nord")}}>
Nord
</button>
<button class:button_highlight={style==="snowstorm"} on:click={() => {set_style("snowstorm")}}>
Snowstorm
</button>
<button class:button_highlight={style==="deepsea"} on:click={() => {set_style("deepsea")}}>
Deep sea

View File

@@ -201,7 +201,7 @@ const drop = (e, index) => {
text-align: left;
}
.icon_container.editing {
box-shadow: inset 0 60px 40px -40px #000000;
box-shadow: inset 0 60px 40px -40px var(--shadow_color);
}
.icon_container > i:hover {
color: var(--highlight_color);

View File

@@ -385,6 +385,7 @@ const node_click = (index) => {
flex-shrink: 0;
text-align: left;
background-color: var(--layer_1_color);
color: var(--layer_1_text_color);
padding: 4px;
}

View File

@@ -71,7 +71,7 @@ const keydown = e => {
right: 0;
bottom: 0;
left: 0;
background-color: rgba(0, 0, 0, 0.5);
background-color: rgba(0, 0, 0, 0.7);
}
.window {
position: absolute;
@@ -89,7 +89,7 @@ const keydown = e => {
border-radius: 20px 20px 16px 16px;
overflow: hidden;
text-align: left;
box-shadow: var(--shadow_color) 0px 0px 50px;
/* box-shadow: var(--shadow_color) 0px 0px 50px; Does not work with light theme */
}
.header {
flex-grow: 0;
@@ -98,6 +98,7 @@ const keydown = e => {
flex-direction: row;
padding: 1px;
background-color: var(--layer_1_color);
color: var(--layer_1_text_color);
}
.title {
flex-grow: 1;