question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`NoChrome` not work in Ubuntu

See original GitHub issue
<Window
    x:Class="ColorMC.UI.MainWindow"
    xmlns="https://github.com/avaloniaui"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:views="clr-namespace:ColorMC.UI.Views"
    Width="800"
    Height="450"
    MinWidth="800"
    MinHeight="450"
    d:DesignHeight="450"
    d:DesignWidth="800"
    ExtendClientAreaChromeHints="NoChrome"
    ExtendClientAreaTitleBarHeightHint="-1"
    ExtendClientAreaToDecorationsHint="True"
    mc:Ignorable="d">
    <Grid>
        <views:HeadControl
            Title="ColorMC 主界面"
            HorizontalAlignment="Stretch"
            VerticalAlignment="Top" />
        <Grid Margin="0,30,0,0">
            <Rectangle
                Fill="#FFF4F4F5"
                Stroke="#FF5ABED6"
                StrokeThickness="3" />

            <views:InfoControl Name="Info" IsVisible="False" />
        </Grid>
    </Grid>
</Window>

windows: image ubuntu: image

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
kekekekscommented, Oct 29, 2022

We are planning to create some kind of an API for handling CSD, but only for environments where it makes sense (like mentioned GNOME). Sway and KDE users won’t be happy with a custom-drawn border.

0reactions
yll690commented, May 6, 2023

I have removed the Ubuntu title bar successfully using XInternAtom and XChangeProperty. Then I found a simpler way: just set Window.SystemDecorations to BorderOnly then the title bar disappears and it is compatible with Windows. However, the window losts many features in Ubuntu like window shadow, drag move, resize, double click to maximize and so on. We have to implement them ourselves.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google chrome is not loading properly on ubunty 22.04
I'm running Chrome version 113.0.5672.126 on Kubuntu 22.04. Here's a fix I found elsewhere. Navigate to .config/google-chrome ...
Read more >
Google chrome not opening in Ubuntu 22.04 LTS
I have a fresh install of Ubuntu 22.04 on a Ryzen 5 CPU machine, I install Chrome from https://www.google.co.uk/chrome/ choosing the 64bit .deb ......
Read more >
Google Chrome not working after upgrading to 22.04
Re: Google Chrome not working after upgrading to 22.04. You could try removing the profile folder in home/hidden folders/ .config/google-chrome.
Read more >
Ubuntu 22.10 - Google-Chrome-Stable not loading any ...
Since last week, Google chrome stopped working on my Ubuntu 22.10 Laptop. When starting Chrome, I get a white page loading and 30...
Read more >
Fixing Google Chrome not opening in Ubuntu 20.04 LTS
To fix Google Chrome not opening in Ubuntu 20.04 LTS, you can try resetting the Chrome configuration by removing the ~/.config/google-chrome ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found