diff --git a/styles/src/styleTree/workspace.ts b/styles/src/styleTree/workspace.ts index c31003992870118b7c6ae8329478a27bb327fe7d..d0003f79c2297309968971ecf5df0a58116d45b8 100644 --- a/styles/src/styleTree/workspace.ts +++ b/styles/src/styleTree/workspace.ts @@ -48,15 +48,20 @@ export default function workspace(colorScheme: ColorScheme) { }, statusBar: statusBar(colorScheme), titlebar: { - avatarWidth: 18, - avatarMargin: 8, height: 33, // 32px + 1px for overlaid border background: background(layer), + border: border(layer, { bottom: true, overlay: true }), padding: { left: 80, right: titlebarPadding, }, - title: text(layer, "sans"), + + // Project + title: text(layer, "sans", "variant"), + + // Collaborators + avatarWidth: 18, + avatarMargin: 8, avatar: { cornerRadius: 10, border: { @@ -67,30 +72,29 @@ export default function workspace(colorScheme: ColorScheme) { avatarRibbon: { height: 3, width: 12, - // TODO: The background for this ideally should be - // set with a token, not hardcoded in rust + // TODO: Chore: Make avatarRibbon colors driven by the theme rather than being hard coded. }, - border: border(layer, { bottom: true, overlay: true }), + + // Sign in buttom + // FlatButton, Variant signInPrompt: { ...text(layer, "sans", { size: "xs" }), background: background(layer), - border: border(layer, "on"), + border: border(layer), cornerRadius: 6, - margin: { - top: 1, - }, padding: { top: 1, bottom: 1, - left: 7, - right: 7, + left: 8, + right: 8, }, hover: { ...text(layer, "sans", "hovered", { size: "xs" }), background: background(layer, "hovered"), - border: border(layer, "hovered"), }, }, + + // Offline Indicator offlineIcon: { color: foreground(layer, "on"), width: 16, @@ -101,20 +105,23 @@ export default function workspace(colorScheme: ColorScheme) { right: 4, }, }, + + // Notice that the collaboration server is out of date outdatedWarning: { ...text(layer, "sans", "warning", { size: "xs" }), - background: background(layer, "warning"), + background: withOpacity(background(layer, "warning"), 0.3), border: border(layer, "warning"), margin: { left: titlebarPadding, }, padding: { - left: 6, - right: 6, + left: 8, + right: 8, }, cornerRadius: 6, }, }, + toolbar: { height: 34, background: background(elevation.top), diff --git a/styles/src/themes/common/ramps.ts b/styles/src/themes/common/ramps.ts index 32cd0b10a838d6914f0d24f7217cba2c56a36cf6..9e218e421706154238931ed2a162a0a9f69e756f 100644 --- a/styles/src/themes/common/ramps.ts +++ b/styles/src/themes/common/ramps.ts @@ -307,7 +307,7 @@ function bottomLayer(ramps: RampSet, isLight: boolean): Layer { let warningSet = buildStyleSet(ramps.yellow, { background: { - default: 0, + default: 0.1, hovered: 0.1, pressed: 0.2, active: 0.4, @@ -321,7 +321,7 @@ function bottomLayer(ramps: RampSet, isLight: boolean): Layer { disabled: 0.1, }, foreground: { - default: 0.9, + default: 0.6, hovered: 0.9, pressed: 0.9, active: 0.9,