Planner: Black frame outside of the main ui

Created on 9 Apr 2020  路  26Comments  路  Source: alainm23/planner

Describe the bug
The app has a black frame outside of the ui

To Reproduce
Open the app

Screenshots
Screenshot_20200409_041157

Desktop (please complete the following information):

  • OS or DE: OS: (k)ubuntu; DE: KDE
    OS: Ubuntu 19.10
    KDE: 5.16.5
    Qt: 5.12.4
Help Wanted Bug

All 26 comments

https://imgur.com/nqz69Ox.png

it spams the following log:
(com.github.alainm23.planner:7584): Gtk-CRITICAL **: 14:13:46.580: _gtk_widget_get_preferred_size_for_size: assertion 'size >= -1' failed

system information
OS: Fedora 31
DE: XFCE 4.14
GTK2: 2.24.32
GTK3: 3.24.13
GTK4: 3.96.0

dnf package info
elementary-planner: 2.2.14-1.fc31
elementary-xfce-icon-theme: 0.14-1.fc31
elementary-icon-theme: 5.1.0-2.fc31
elementary-theme: 5.4.2-1.fc31

i confirm that "byte", the music player has the same problem

I found that the following css class in elementary theme causes the problem :

decoration {
    border-radius: 4px 4px 0 0;
    box-shadow:
        0 0 0 1px @decoration_border_color,
        0 14px 28px rgba(0, 0, 0, 0.35),
        0 10px 10px rgba(0, 0, 0, 0.22);
    margin: 12px;
}

before

Then, I set box-shadow to none and margin to 1px (to able to resize). Now, it is working.

window decoration {
    box-shadow: none;
    margin: 1px;
}

after

You can save this css snippet to ~/.config/gtk-3.0/gtk.css file to make it permanently.

Duplicate of #268

@tncga Thanks a lot, that's a great solution, I'm trying it out now on elementary OS and Planner looks a little weird. I think we can add that style when Planner runs on another distribution.

Guys could confirm if this works for everyone?

It didnt work here but i think its because im using the flatpak version, what path should i use instead?

I'm developing a patch right now. Can you please help me test it? I'll send you the instructions right now.

@alainm23 yeah, of course.

Try it please:

git clone https://github.com/alainm23/planner.git
cd planner/build-aux/flatpak
flatpak-builder --install repo com.github.alainm23.planner.json --force-clean --user
flatpak run com.github.alainm23.planner

okay, going to try it now. Will give feedback

$ flatpak run com.github.alainm23.planner
error: app/com.github.alainm23.planner/x86_64/master not installed


I uninstalled the app before trying, should i install it again? does it works like a patch?

No need to uninstall but if you did there is no problem.

i did uninstall it, am i missing some install command?

Try it please:

git clone https://github.com/alainm23/planner.git
cd planner/build-aux/flatpak
flatpak-builder --install repo com.github.alainm23.planner.json --force-clean --user
flatpak run com.github.alainm23.planner

Yes, you have to follow the commands I sent you.

yes, i did it

Great, now run Planner
flatpak run com.github.alainm23.planner


> $ flatpak run com.github.alainm23.planner
> error: app/com.github.alainm23.planner/x86_64/master not installed

@zayn666
This is rare, when you run this command it gives you some error or message.
flatpak-builder --install repo com.github.alainm23.planner.json --force-clean --user

In my case Planner is installed correctly and gives me this message in the terminal.
image

yes it gave me some errors regarding the install of gnome sdk, installed it and now its io.elementary.BaseApp/x86_64/juno-19.08

installed it all, building now

okay so, runned it and the bug still remains

@zayn666 I just uploaded an update, please rebuild the application and run it again.

flatpak-builder --install repo com.github.alainm23.planner.json --force-clean --user
flatpak run com.github.alainm23.planner

okay, building

Screenshot_20200416_000045

Working great! Confirming that it works

okay so, i assume the update is being pushed, how should i clean it? I dont really work with flatpak that much

i removed the package as normal.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Hedronmx picture Hedronmx  路  7Comments

Philip-Scott picture Philip-Scott  路  4Comments

marbetschar picture marbetschar  路  4Comments

Brin-o picture Brin-o  路  5Comments

jtrees picture jtrees  路  7Comments