From aac71fdcfef70557cfb186441cfb88e77b3c4232 Mon Sep 17 00:00:00 2001 From: Mikayla Maki Date: Fri, 9 Jun 2023 08:42:16 -0700 Subject: [PATCH] Remove border from sign in button Co-authored-by: Piotr --- styles/src/styleTree/workspace.ts | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/styles/src/styleTree/workspace.ts b/styles/src/styleTree/workspace.ts index ae8de178f8..bf0c5d3af3 100644 --- a/styles/src/styleTree/workspace.ts +++ b/styles/src/styleTree/workspace.ts @@ -42,6 +42,33 @@ export default function workspace(colorScheme: ColorScheme) { 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 avatarOuterWidth = avatarWidth + 4 const followerAvatarWidth = 14 @@ -205,7 +232,7 @@ export default function workspace(colorScheme: ColorScheme) { margin: { left: itemSpacing, }, - ...titlebarButton, + ...signInButton, }, // Offline Indicator