Improve styling of collab panel
This commit is contained in:
parent
ac1b2b18aa
commit
076b72cf2b
1 changed files with 60 additions and 10 deletions
|
@ -52,7 +52,61 @@ export default function contacts_panel(): any {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
const headerButton = toggleable_icon_button(theme, {})
|
const headerButton = toggleable({
|
||||||
|
state: {
|
||||||
|
inactive: interactive({
|
||||||
|
base: {
|
||||||
|
corner_radius: 6,
|
||||||
|
padding: {
|
||||||
|
top: 2,
|
||||||
|
bottom: 2,
|
||||||
|
left: 4,
|
||||||
|
right: 4,
|
||||||
|
},
|
||||||
|
icon_width: 14,
|
||||||
|
icon_height: 14,
|
||||||
|
button_width: 20,
|
||||||
|
button_height: 16,
|
||||||
|
color: foreground(layer, "on"),
|
||||||
|
},
|
||||||
|
state: {
|
||||||
|
default: {
|
||||||
|
},
|
||||||
|
hovered: {
|
||||||
|
background: background(layer, "base", "hovered"),
|
||||||
|
},
|
||||||
|
clicked: {
|
||||||
|
background: background(layer, "base", "pressed"),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
active: interactive({
|
||||||
|
base: {
|
||||||
|
corner_radius: 6,
|
||||||
|
padding: {
|
||||||
|
top: 2,
|
||||||
|
bottom: 2,
|
||||||
|
left: 4,
|
||||||
|
right: 4,
|
||||||
|
},
|
||||||
|
icon_width: 14,
|
||||||
|
icon_height: 14,
|
||||||
|
button_width: 20,
|
||||||
|
button_height: 16,
|
||||||
|
color: foreground(layer, "on"),
|
||||||
|
},
|
||||||
|
state: {
|
||||||
|
default: {
|
||||||
|
background: background(layer, "base", "active"),
|
||||||
|
},
|
||||||
|
clicked: {
|
||||||
|
background: background(layer, "base", "active"),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
channel_modal: channel_modal(),
|
channel_modal: channel_modal(),
|
||||||
|
@ -154,9 +208,6 @@ export default function contacts_panel(): any {
|
||||||
...text(layer, "mono", "active", { size: "sm" }),
|
...text(layer, "mono", "active", { size: "sm" }),
|
||||||
background: background(layer, "active"),
|
background: background(layer, "active"),
|
||||||
},
|
},
|
||||||
hovered: {
|
|
||||||
background: background(layer, "hovered"),
|
|
||||||
},
|
|
||||||
clicked: {
|
clicked: {
|
||||||
background: background(layer, "pressed"),
|
background: background(layer, "pressed"),
|
||||||
},
|
},
|
||||||
|
@ -196,23 +247,22 @@ export default function contacts_panel(): any {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
state: {
|
state: {
|
||||||
hovered: {
|
|
||||||
background: background(layer, "hovered"),
|
|
||||||
},
|
|
||||||
clicked: {
|
clicked: {
|
||||||
background: background(layer, "pressed"),
|
background: background(layer, "pressed"),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
state: {
|
state: {
|
||||||
|
inactive: {
|
||||||
|
hovered: {
|
||||||
|
background: background(layer, "hovered"),
|
||||||
|
},
|
||||||
|
},
|
||||||
active: {
|
active: {
|
||||||
default: {
|
default: {
|
||||||
...text(layer, "mono", "active", { size: "sm" }),
|
...text(layer, "mono", "active", { size: "sm" }),
|
||||||
background: background(layer, "active"),
|
background: background(layer, "active"),
|
||||||
},
|
},
|
||||||
hovered: {
|
|
||||||
background: background(layer, "hovered"),
|
|
||||||
},
|
|
||||||
clicked: {
|
clicked: {
|
||||||
background: background(layer, "pressed"),
|
background: background(layer, "pressed"),
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue