Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] how to hide default window title in Linux when use sukiui? #326

Open
1 task done
Everyyx opened this issue Nov 8, 2024 · 7 comments
Open
1 task done

[Bug] how to hide default window title in Linux when use sukiui? #326

Everyyx opened this issue Nov 8, 2024 · 7 comments

Comments

@Everyyx
Copy link

Everyyx commented Nov 8, 2024

Check the following items

  • I have looked up relevant Issue

Description of the issue

4BC31E40-9119-401B-AE98-A5368B0CB891 3AF7D971-8CDA-4C00-B2F8-D781A87B12B6

Package Version

Avalonia 11.2,sukiui 6.0.0beta 2

Environment

Openkylin 2,linux 6.6.0.1

Expected Behavior

Hide window title in Linux

Reproduction

Just use sukiui

Additional Information

No response

@jeffersyuan1976
Copy link

I have the same issue

@kikipoulet
Copy link
Owner

Linux is quite tricky about that because it depends on the window manager your distro use, and there are quite a few.

So we're using the Avalonia property to hide the default window border, it works on most OS, but I suppose the Avalonia framework itself isn't tested for all different linux window managers.

Only think you can do is trying to find a way to hide it in a simple blank avalonia project, and if you find a "new" combination of window properties that hide it we can integrate the subtle case in SukiUI.

@jeffersyuan1976
Copy link

Checked the old post, it works fine in Ubuntu.

TransparencyLevelHint="Transparent"
ExtendClientAreaToDecorationsHint="True"
SystemDecorations="None"

@Everyyx
Copy link
Author

Everyyx commented Nov 26, 2024 via email

@kikipoulet
Copy link
Owner

Checked the old post, it works fine in Ubuntu.

TransparencyLevelHint="Transparent" ExtendClientAreaToDecorationsHint="True" SystemDecorations="None"

Used this as a reference to fix it in this commit 183ac3a

If someone can confirm it works on Linux it would be nice.

@jacobgeorge26
Copy link

It fixes the duplicate title bar but SystemDecorations="None" means you can't resize the window anymore, even with CanResize="True"

@kikipoulet
Copy link
Owner

It fixes the duplicate title bar but SystemDecorations="None" means you can't resize the window anymore, even with CanResize="True"

Is there a value for SystemDecorations where everything works ?

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

No branches or pull requests

4 participants