Skip to content

Commit 10cdb8f

Browse files
committed
feat(shell): add desktop wallpaper support
Display a background image on the Shell desktop with cover sizing and a dark overlay to maintain icon/text readability. Made-with: Cursor
1 parent b35cac3 commit 10cdb8f

2 files changed

Lines changed: 20 additions & 2 deletions

File tree

apps/webuiapps/src/components/Shell/index.module.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
.shell {
22
height: 100vh;
33
width: 100vw;
4-
background: #121214;
4+
background-color: #121214;
5+
background-repeat: no-repeat;
56
color: rgba(255, 255, 255, 0.9);
67
overflow: hidden;
78
position: relative;
@@ -16,6 +17,7 @@
1617
display: flex;
1718
align-items: flex-start;
1819
padding: 32px;
20+
background: rgba(0, 0, 0, 0.35);
1921
}
2022

2123
.iconGrid {

apps/webuiapps/src/components/Shell/index.tsx

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,15 @@ const DESKTOP_APPS = getDesktopApps().map((app) => ({
4949
IconComp: ICON_MAP[app.icon] || Circle,
5050
}));
5151

52+
const DEFAULT_WALLPAPER =
53+
'https://cdn.openroom.ai/public-cdn-s3-us-west-2/talkie-op-img/image/437110625_1772619481913_Aoi_default_Commander_Room.jpg';
54+
5255
const Shell: React.FC = () => {
5356
const [chatOpen, setChatOpen] = useState(false);
5457
const [reportEnabled, setReportEnabled] = useState(true);
5558
const [lang, setLang] = useState<'en' | 'zh'>('en');
59+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
60+
const [wallpaper, setWallpaper] = useState(DEFAULT_WALLPAPER);
5661
const windows = useWindows();
5762

5863
const handleToggleReport = useCallback(() => {
@@ -76,7 +81,18 @@ const Shell: React.FC = () => {
7681
}, []);
7782

7883
return (
79-
<div className={styles.shell}>
84+
<div
85+
className={styles.shell}
86+
style={
87+
wallpaper
88+
? {
89+
backgroundImage: `url(${wallpaper})`,
90+
backgroundSize: 'cover',
91+
backgroundPosition: 'center',
92+
}
93+
: undefined
94+
}
95+
>
8096
{/* Desktop with app icons */}
8197
<div className={styles.desktop}>
8298
<div className={styles.iconGrid}>

0 commit comments

Comments
 (0)