improve colors in dark and dark + compact modes

This commit is contained in:
Stewart Allen 2020-04-08 14:31:32 -04:00
commit 7b2dcb2201
3 changed files with 49 additions and 9 deletions

View file

@ -1605,6 +1605,7 @@ var gs_kiri_init = exports;
if (dark) { if (dark) {
SPACE.platform.setGrid(25, 5, 0x999999, 0x333333); SPACE.platform.setGrid(25, 5, 0x999999, 0x333333);
SPACE.platform.opacity(0.8); SPACE.platform.opacity(0.8);
DOC.body.classList.add('dark');
} else { } else {
SPACE.platform.setGrid(25, 5, 0x999999, 0xcccccc); SPACE.platform.setGrid(25, 5, 0x999999, 0xcccccc);
SPACE.platform.opacity(0.3); SPACE.platform.opacity(0.3);

View file

@ -4,6 +4,10 @@ input[type=range]::-moz-focus-outer {
.grouphead { .grouphead {
position: relative; position: relative;
} }
.dark .popper {
background-color: rgba(255,255,255,0.75);
color: black;
}
.popper { .popper {
position: absolute; position: absolute;
top: 0; top: 0;

View file

@ -20,7 +20,6 @@ body,div {
} }
label { label {
font-size: 14px; font-size: 14px;
border-bottom: 1px solid #ddd;
margin-right: 2px; margin-right: 2px;
} }
canvas { canvas {
@ -96,6 +95,15 @@ th, tr, td, span, div, label, button {
flex-basis: auto; flex-basis: auto;
width: 33.33%; width: 33.33%;
} }
.grouphead:first-of-type {
margin-top: 0;
}
.dark .grouphead {
background-color: rgba(100,120,150,0.75);
border: 1px solid #555;
color: #eee;
font-weight: normal;
}
.grouphead { .grouphead {
color: black; color: black;
background-color: rgba(170,221,255,0.7); background-color: rgba(170,221,255,0.7);
@ -182,6 +190,16 @@ th, tr, td, span, div, label, button {
margin-right: -14px !important; margin-right: -14px !important;
margin-bottom: -14px !important; margin-bottom: -14px !important;
} }
.dark .control {
border: 0 !important;
background-color: rgba(255,255,255,0.5);
}
.dark .control button {
border: 1px solid rgba(128,128,128,0.5);
}
.control {
background-color: rgba(255,255,255,0.75);
}
.control label { .control label {
padding: 2px; padding: 2px;
} }
@ -276,6 +294,10 @@ th, tr, td, span, div, label, button {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
#control > div:hover label {
text-decoration: underline;
text-decoration-color: #aaa;
}
#control-left { #control-left {
display: none; display: none;
position: fixed; position: fixed;
@ -284,12 +306,11 @@ th, tr, td, span, div, label, button {
top: 5px; top: 5px;
left: 0px; left: 0px;
padding: 5px; padding: 5px;
border-top: 3px solid #ddd; border-top: 2px solid #ddd;
border-right: 3px solid #ddd; border-right: 2px solid #ddd;
border-bottom: 3px solid #ddd; border-bottom: 2px solid #ddd;
border-top-right-radius: 3px; border-top-right-radius: 3px;
border-bottom-right-radius: 3px; border-bottom-right-radius: 3px;
background-color: rgba(255,255,255,0.75);
overflow-x: visible; overflow-x: visible;
overflow-y: scroll; overflow-y: scroll;
} }
@ -301,16 +322,27 @@ th, tr, td, span, div, label, button {
right: 0px; right: 0px;
bottom: 5px; bottom: 5px;
padding: 5px; padding: 5px;
border-top: 3px solid #ddd; border-top: 2px solid #ddd;
border-left: 3px solid #ddd; border-left: 2px solid #ddd;
border-bottom: 3px solid #ddd; border-bottom: 2px solid #ddd;
border-top-left-radius: 3px; border-top-left-radius: 3px;
border-bottom-left-radius: 3px; border-bottom-left-radius: 3px;
background-color: rgba(255,255,255,0.75);
color: #222; color: #222;
overflow-y: scroll; overflow-y: scroll;
overflow-x: visible; overflow-x: visible;
} }
.dark .compact .grouphead {
background-color: rgba(100,120,150,0.75);
border: 1px solid #555;
color: #eee;
xfont-weight: normal;
}
.dark .compact .grouphead:hover {
background-color: rgba(80,100,180,0.75);
}
.dark .compact.control {
background-color: rgba(128,128,128,0.2) !important;
}
.compact { .compact {
overflow: visible !important; overflow: visible !important;
bottom: auto !important; bottom: auto !important;
@ -360,6 +392,9 @@ th, tr, td, span, div, label, button {
#control-left::-webkit-scrollbar, #control-right::-webkit-scrollbar { #control-left::-webkit-scrollbar, #control-right::-webkit-scrollbar {
display: none; display: none;
} }
.dark #control-left:hover, .dark #control-right:hover {
background-color: rgba(255,255,255,0.6);
}
#control-left:hover, #control-right:hover { #control-left:hover, #control-right:hover {
background-color: #ffffff; background-color: #ffffff;
} }