fix button colors, better lightbulb, button hovers

This commit is contained in:
sawka 2024-09-13 10:24:16 -07:00
parent 555ab07861
commit 33407715a0
4 changed files with 26 additions and 1 deletions

View File

@ -33,6 +33,9 @@
&.primary, &.primary,
&.secondary { &.secondary {
background: var(--accent-color); background: var(--accent-color);
&:hover {
color: var(--main-text-color);
}
i { i {
fill: var(--main-text-color); fill: var(--main-text-color);
@ -49,6 +52,7 @@
&.primary.ghost { &.primary.ghost {
background: none; background: none;
border: 1px solid var(--accent-color);
i { i {
fill: var(--accent-color); fill: var(--accent-color);
@ -68,6 +72,13 @@
&.secondary.ghost { &.secondary.ghost {
background: none; background: none;
border: 1px solid var(--secondary-text-color);
color: var(--secondary-text-color);
&:hover {
border: 1px solid var(--main-text-color);
color: 1px solid var(--main-text-color);
}
} }
&.secondary.danger { &.secondary.danger {

View File

@ -3,6 +3,17 @@
opacity: 0.7; opacity: 0.7;
align-items: center; align-items: center;
&.bulb {
color: var(--bulb-color);
opacity: 1;
&:hover i::before {
content: "\f672";
position: relative;
left: -1px;
}
}
&:hover { &:hover {
opacity: 1; opacity: 1;
} }

View File

@ -104,4 +104,6 @@
--conn-icon-color-6: #ffa24e; --conn-icon-color-6: #ffa24e;
--conn-icon-color-7: #dbde52; --conn-icon-color-7: #dbde52;
--conn-icon-color-8: #58c142; --conn-icon-color-8: #58c142;
--bulb-color: rgb(255, 221, 51);
} }

View File

@ -357,8 +357,9 @@ export class PreviewModel implements ViewModel {
tipIcon = [ tipIcon = [
{ {
elemtype: "iconbutton", elemtype: "iconbutton",
icon: "lightbulb-on", icon: "lightbulb",
iconColor: "var(--warning-color)", iconColor: "var(--warning-color)",
className: "bulb",
click: () => { click: () => {
const tips: UserInputRequest = { const tips: UserInputRequest = {
requestid: "", requestid: "",