Show Share button for unshared projects when inside of a room

This commit is contained in:
Antonio Scandurra
2022-10-04 15:56:20 +02:00
parent de917c4678
commit 57930cb88a
4 changed files with 154 additions and 100 deletions
+24 -18
View File
@@ -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,