mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-30 22:34:13 +00:00
Remove border from sign in button
Co-authored-by: Piotr <piotr@zed.dev>
This commit is contained in:
parent
8235d78afe
commit
aac71fdcfe
1 changed files with 28 additions and 1 deletions
|
@ -42,6 +42,33 @@ export default function workspace(colorScheme: ColorScheme) {
|
||||||
border: border(layer, "variant", "active"),
|
border: border(layer, "variant", "active"),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
const signInButton = {
|
||||||
|
cornerRadius: 6,
|
||||||
|
padding: {
|
||||||
|
top: 1,
|
||||||
|
bottom: 1,
|
||||||
|
left: 8,
|
||||||
|
right: 8,
|
||||||
|
},
|
||||||
|
...text(layer, "sans", "variant", { size: "xs" }),
|
||||||
|
background: background(layer, "variant"),
|
||||||
|
//border: border(layer),
|
||||||
|
hover: {
|
||||||
|
...text(layer, "sans", "variant", "hovered", { size: "xs" }),
|
||||||
|
background: background(layer, "variant", "hovered"),
|
||||||
|
//border: border(layer, "variant", "hovered"),
|
||||||
|
},
|
||||||
|
clicked: {
|
||||||
|
...text(layer, "sans", "variant", "pressed", { size: "xs" }),
|
||||||
|
background: background(layer, "variant", "pressed"),
|
||||||
|
//border: border(layer, "variant", "pressed"),
|
||||||
|
},
|
||||||
|
active: {
|
||||||
|
...text(layer, "sans", "variant", "active", { size: "xs" }),
|
||||||
|
background: background(layer, "variant", "active"),
|
||||||
|
//border: border(layer, "variant", "active"),
|
||||||
|
},
|
||||||
|
}
|
||||||
const avatarWidth = 18
|
const avatarWidth = 18
|
||||||
const avatarOuterWidth = avatarWidth + 4
|
const avatarOuterWidth = avatarWidth + 4
|
||||||
const followerAvatarWidth = 14
|
const followerAvatarWidth = 14
|
||||||
|
@ -205,7 +232,7 @@ export default function workspace(colorScheme: ColorScheme) {
|
||||||
margin: {
|
margin: {
|
||||||
left: itemSpacing,
|
left: itemSpacing,
|
||||||
},
|
},
|
||||||
...titlebarButton,
|
...signInButton,
|
||||||
},
|
},
|
||||||
|
|
||||||
// Offline Indicator
|
// Offline Indicator
|
||||||
|
|
Loading…
Reference in a new issue