Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Improve styling of collab panel
Max Brunsfeld076b72cf2b12
diff --git a/styles/src/style_tree/collab_panel.ts b/styles/src/style_tree/collab_panel.tsindex fd6e75d9ec0..0979760b88f 100644--- a/styles/src/style_tree/collab_panel.ts+++ b/styles/src/style_tree/collab_panel.ts@@ -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 {channel_modal: channel_modal(),@@ -154,9 +208,6 @@ export default function contacts_panel(): any {...text(layer, "mono", "active", { size: "sm" }),background: background(layer, "active"),},- hovered: {- background: background(layer, "hovered"),- },clicked: {background: background(layer, "pressed"),},@@ -196,23 +247,22 @@ export default function contacts_panel(): any {},},state: {- hovered: {- background: background(layer, "hovered"),- },clicked: {background: background(layer, "pressed"),},},}),state: {+ inactive: {+ hovered: {+ background: background(layer, "hovered"),+ },+ },active: {default: {...text(layer, "mono", "active", { size: "sm" }),background: background(layer, "active"),},- hovered: {- background: background(layer, "hovered"),- },clicked: {background: background(layer, "pressed"),},