Show Share button for unshared projects when inside of a room
This commit is contained in:
@@ -17,6 +17,26 @@ export function workspaceBackground(theme: Theme) {
|
||||
|
||||
export default function workspace(theme: Theme) {
|
||||
const titlebarPadding = 6;
|
||||
const titlebarButton = {
|
||||
background: backgroundColor(theme, 100),
|
||||
border: border(theme, "secondary"),
|
||||
cornerRadius: 6,
|
||||
margin: {
|
||||
top: 1,
|
||||
},
|
||||
padding: {
|
||||
top: 1,
|
||||
bottom: 1,
|
||||
left: 7,
|
||||
right: 7,
|
||||
},
|
||||
...text(theme, "sans", "secondary", { size: "xs" }),
|
||||
hover: {
|
||||
...text(theme, "sans", "active", { size: "xs" }),
|
||||
background: backgroundColor(theme, "on300", "hovered"),
|
||||
border: border(theme, "primary"),
|
||||
},
|
||||
};
|
||||
|
||||
return {
|
||||
background: backgroundColor(theme, 300),
|
||||
@@ -81,24 +101,7 @@ export default function workspace(theme: Theme) {
|
||||
},
|
||||
border: border(theme, "primary", { bottom: true, overlay: true }),
|
||||
signInPrompt: {
|
||||
background: backgroundColor(theme, 100),
|
||||
border: border(theme, "secondary"),
|
||||
cornerRadius: 6,
|
||||
margin: {
|
||||
top: 1,
|
||||
},
|
||||
padding: {
|
||||
top: 1,
|
||||
bottom: 1,
|
||||
left: 7,
|
||||
right: 7,
|
||||
},
|
||||
...text(theme, "sans", "secondary", { size: "xs" }),
|
||||
hover: {
|
||||
...text(theme, "sans", "active", { size: "xs" }),
|
||||
background: backgroundColor(theme, "on300", "hovered"),
|
||||
border: border(theme, "primary"),
|
||||
},
|
||||
...titlebarButton
|
||||
},
|
||||
offlineIcon: {
|
||||
color: iconColor(theme, "secondary"),
|
||||
@@ -137,6 +140,9 @@ export default function workspace(theme: Theme) {
|
||||
color: iconColor(theme, "active"),
|
||||
},
|
||||
},
|
||||
shareButton: {
|
||||
...titlebarButton
|
||||
},
|
||||
contactsPopover: {
|
||||
background: backgroundColor(theme, 300, "base"),
|
||||
cornerRadius: 6,
|
||||
|
||||
Reference in New Issue
Block a user