material: add AppTopBar
This commit is contained in:
parent
47e36a354b
commit
bece50643f
3 changed files with 43 additions and 16 deletions
|
@ -32,6 +32,7 @@ import BackButton from "~platform/BackButton";
|
|||
import ItemSelectionProvider, {
|
||||
createSingluarItemSelection,
|
||||
} from "./toots/ItemSelectionProvider";
|
||||
import AppTopBar from "~material/AppTopBar";
|
||||
|
||||
let cachedEntry: [string, mastodon.v1.Status] | undefined;
|
||||
|
||||
|
@ -248,25 +249,18 @@ const TootBottomSheet: Component = (props) => {
|
|||
return (
|
||||
<Scaffold
|
||||
topbar={
|
||||
<AppBar
|
||||
sx={{
|
||||
backgroundColor: "var(--tutu-color-surface)",
|
||||
<AppTopBar
|
||||
style={{
|
||||
"background-color": "var(--tutu-color-surface)",
|
||||
color: "var(--tutu-color-on-surface)",
|
||||
}}
|
||||
elevation={1}
|
||||
position="static"
|
||||
>
|
||||
<Toolbar
|
||||
variant="dense"
|
||||
sx={{ paddingTop: "var(--safe-area-inset-top, 0px)" }}
|
||||
>
|
||||
<BackButton color="inherit" />
|
||||
<Title component="div" class="name" use:solid-styled>
|
||||
<span innerHTML={tootDisplayName() ?? "Someone"}></span>
|
||||
<span>'s toot</span>
|
||||
</Title>
|
||||
</Toolbar>
|
||||
</AppBar>
|
||||
<BackButton color="inherit" />
|
||||
<Title component="div" class="name" use:solid-styled>
|
||||
<span innerHTML={tootDisplayName() ?? "Someone"}></span>
|
||||
<span>'s toot</span>
|
||||
</Title>
|
||||
</AppTopBar>
|
||||
}
|
||||
class="TootBottomSheet"
|
||||
>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue