Black box around UberWriter window

Bug #1394717 reported by Jan Polášek
52
This bug affects 11 people
Affects Status Importance Assigned to Milestone
UberWriter (moved to github!)
New
Undecided
Unassigned

Bug Description

I've found a bug in UberWriter on elementary OS Freya. When launching UberWriter, there's a black box around the window, most likely in the place of window shadows. This blackbox goes away only when switching to dark mode and back again.

Revision history for this message
Jan Polášek (jandurek) wrote :
Revision history for this message
rtud (rtud) wrote :

Same here.

Revision history for this message
Rok Fajfar (rfajfar) wrote :

Yup.

Revision history for this message
Afonso Silva (afonsojoao96) wrote :

Same here too

Revision history for this message
Sergey (tonkoshkurik) wrote :

same here

Revision history for this message
Cnly (minecnly) wrote :

Exactly same problem here.

Revision history for this message
Wolf Vollprecht (w-vollprecht) wrote :

Hi,

sorry all that you had to wait for so long for any response. I am unfortunately busy with studies a lot these days.

Please, could someone try to remove the border-radius property from the GtkWindow in style.css?

The file should be located at /opt/uberwriter/data/media/style.css

Does that fix the bug?

(Applies after restart of app).

Cheers,

Wolf

Revision history for this message
Wolf Vollprecht (w-vollprecht) wrote :
Revision history for this message
Jan Polášek (jandurek) wrote :

I would try that, but somehow I can't find the file. It's not in the path you wrote, because on my system (elementary OS Freya, UberWriter installed through a PPA) folder /opt/uberwriter doesn't exist.

Revision history for this message
Wolf Vollprecht (w-vollprecht) wrote : Re: [Bug 1394717] Re: Black box around UberWriter window

Hi Jan,

could you try

    locate uberwriter

to find the directory where uberwriter is installed on your system and then
look for the file? It's gotta be somewhere :)

Wol

2015-10-06 19:38 GMT+02:00 Jan Polášek <email address hidden>:

> I would try that, but somehow I can't find the file. It's not in the
> path you wrote, because on my system (elementary OS Freya, UberWriter
> installed through a PPA) folder /opt/uberwriter doesn't exist.
>
> --
> You received this bug notification because you are subscribed to
> UberWriter.
> https://bugs.launchpad.net/bugs/1394717
>
> Title:
> Black box around UberWriter window
>
> Status in UberWriter:
> New
>
> Bug description:
> I've found a bug in UberWriter on elementary OS Freya. When launching
> UberWriter, there's a black box around the window, most likely in the
> place of window shadows. This blackbox goes away only when switching
> to dark mode and back again.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/uberwriter/+bug/1394717/+subscriptions
>

Revision history for this message
Jan Polášek (jandurek) wrote :

I tried using 'locate uberwriter' before, but it didn't show any results, because I forgot to run 'updatedb' (I didn't realize that at first).

So I was able to find the style.css in '/opt/extras.ubuntu.com/uberwriter/share/uberwriter/media/style.css' (damn, that's one hell of a strange path) but removing border-radius line didn't fix the black rectangle.

BUT it had quite a nice side effect. It did fix window corners themselves. Before commenting this line out, window corners were kinda strange (I have quite low res screen, so every wrong pixel counts), but now they look exactly like in every other app.

Revision history for this message
Miguel Ángel Santamaría Rogado (gabiel) wrote :

Hi,

it seems to be some bug with client-side decorations and some themes.

I was able to fix the issue following this workaround http://www.webupd8.org/2015/11/fix-large-black-borders-around-header.html

tl;tr

1. Edit or create the file ~/.config/gtk-3.0/gtk.css
2. Add the following rule

.window-frame {
box-shadow: none;
margin: 0px;
}

3. Restart UberWriter

Regards.

Revision history for this message
Cheryl Mothrock (cfrancescameron) wrote :

I have had limited success with a combination of the above two suggestions. I had this black border on my old Elementary OS system, and now on Linux Mint 17.3.

Here's what seems to work for me.
I found the style.css file Wolf references. It's here on my system:
/opt/extras.ubuntu.com/uberwriter/share/uberwriter/media/style.css

In that I changed the css like so:

.window-frame {
box-shadow: none;
}

#UberwriterWindow {chrom
  gtk-key-bindings: window-bindings;
  border-radius: 0px 0px 0px 0px;
  margin: 0px;
  border: 0px white solid;
  background: #ffffff;
}

It may be that by twiddling with these styles you can find a more ideal arrangement.

By putting the border to 0 it gets rid of the line, but you can't easily resize the window. But at least you can bring the black line down to 1 pixel, not a big box, and I may keep it at 0 just for prettiness.

Cheers!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.