Skip to content

Conversation

@bplaat
Copy link
Member

@bplaat bplaat commented Aug 31, 2025

When you resize a window or go to another workspace you see a small overlay window, currently this overlay window always uses a shadow.png that is the fixed for all themes. But this window with a shadow seems out of place on themes without shadows for example Redmond. With this pr I have move the path to the overlay-rect-shadow.png to the themes .ini files. When no overlay shadow is defined the default window border will be used with a black background. This is needed because all the current overlays use white text and expect a dark background.

There was also a small style bug where the Emoji Input window didn't have a window frame style like all other popup windows.

Demo video

overlays.mp4

@github-actions github-actions bot added the 👀 pr-needs-review PR needs review from a maintainer or community member label Aug 31, 2025
@bplaat bplaat force-pushed the overlay-custimization branch from c63b872 to 67fa620 Compare August 31, 2025 13:12
@nico
Copy link
Contributor

nico commented Aug 31, 2025

Re last commit: Given #26165, does the command palette need something like that too? Or is it fine as is?

Can you say in the last commit's commit description why you're making that change?

Otherwise, looks good, thanks!

@bplaat
Copy link
Member Author

bplaat commented Aug 31, 2025

Re last commit: Given #26165, does the command palette need something like that too? Or is it fine as is?

That already used the correct Window frame style: https://github.com/SerenityOS/serenity/blob/master/Userland/Libraries/LibGUI/CommandPalette.cpp#L188

The EmojiInputDialogWidget currently has no frame style, so
on themes with no window shadow it looks out of place. The
similar CommandPalette dialog uses the Window frame style
like normal windows. With this style the Emoji dialog looks
more uniform and is more distinct from the background with
a window shadow.
@bplaat bplaat force-pushed the overlay-custimization branch from 67fa620 to a624289 Compare August 31, 2025 19:40
@nico nico merged commit 295d055 into SerenityOS:master Sep 1, 2025
12 checks passed
@github-actions github-actions bot removed the 👀 pr-needs-review PR needs review from a maintainer or community member label Sep 1, 2025
@bplaat bplaat deleted the overlay-custimization branch September 1, 2025 05:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants