Bug 421733 - Allow to justify elements in the center of the screen, besides available space
Summary: Allow to justify elements in the center of the screen, besides available space
Status: RESOLVED FIXED
Alias: None
Product: lattedock
Classification: Plasma
Component: application (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-18 15:11 UTC by RaitaroH
Modified: 2020-05-18 17:35 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Image reference (60.37 KB, image/png)
2020-05-18 16:30 UTC, RaitaroH
Details

Note You need to log in before you can comment on or make changes to this bug.
Description RaitaroH 2020-05-18 15:11:40 UTC
SUMMARY
Right now justify makes it so that what is in between is centered in the available space. I would like a normal panel, but, with the task manager centered, in the middle of the screen, not middle of available space in the panel. Right now using dock mode is my best option, but no ideal (it resizes). What I would like is menu in one corner, in the other corner the pager+trayicons+clock, and in the middle of the screen to have the task manager. Due to the right corner needing way more space, right now the task manager is not centered "properly".

STEPS TO REPRODUCE
1. Try to justify the task manger
2. It is centered but not in the center of the screen

EXPECTED RESULT
There should be an option to justify in the center of the screen.


SOFTWARE/OS VERSIONS
lattedock: 0.9.11
Operating System: Manjaro Linux 
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.69.0
Qt Version: 5.14.2
Kernel Version: 5.4.39-1-MANJARO
Comment 1 Michail Vourlakos 2020-05-18 15:31:03 UTC
this is already possible, show me a screenshot what you are trying to achieve because I can not understand from your comments.
Comment 2 Michail Vourlakos 2020-05-18 15:31:58 UTC
ah, dont worry... You are using Latte v0.9.11. This is already possible with Latte git version.
Comment 3 RaitaroH 2020-05-18 16:30:12 UTC
Created attachment 128577 [details]
Image reference
Comment 4 RaitaroH 2020-05-18 16:30:57 UTC
(In reply to RaitaroH from comment #3)
> Created attachment 128577 [details]
> Image reference

@Michail Vourlakos is the git version able to do as per image? If that is the case then I know what I need to do from the AUR :)
Comment 5 Michail Vourlakos 2020-05-18 16:55:19 UTC
(In reply to RaitaroH from comment #4)
> (In reply to RaitaroH from comment #3)
> > Created attachment 128577 [details]
> > Image reference
> 
> @Michail Vourlakos is the git version able to do as per image? If that is
> the case then I know what I need to do from the AUR :)

hm... I dont know if this is possible at all and at the same time to not break Qt Layouting.
Comment 6 Michail Vourlakos 2020-05-18 16:57:08 UTC
This is applet responsibility I think and because Plasma Taskmanagers are tagging themselves as Layout fillWidth this would mean that Latte should add workarounds. Sorry I wont add workarounds for this.
Comment 7 Michail Vourlakos 2020-05-18 17:04:48 UTC
long story short, you need a taskmanager that behaves like this, unfortunately Plasma taskmanagers do not.
Comment 8 RaitaroH 2020-05-18 17:08:34 UTC
(In reply to Michail Vourlakos from comment #7)
> long story short, you need a taskmanager that behaves like this,
> unfortunately Plasma taskmanagers do not.

What about having a setting for the latte plasmoid to show window names? Wouldn't that accomplish everything?
Comment 9 Michail Vourlakos 2020-05-18 17:19:57 UTC
(In reply to RaitaroH from comment #8)
> (In reply to Michail Vourlakos from comment #7)
> > long story short, you need a taskmanager that behaves like this,
> > unfortunately Plasma taskmanagers do not.
> 
> What about having a setting for the latte plasmoid to show window names?
> Wouldn't that accomplish everything?

it would but I am not really interested. Latte Tasks can not take the burden for all Tasks requirements. A new applet is needed that will support this.
Comment 10 RaitaroH 2020-05-18 17:25:32 UTC
(In reply to Michail Vourlakos from comment #9)
> (In reply to RaitaroH from comment #8)
> > (In reply to Michail Vourlakos from comment #7)
> > > long story short, you need a taskmanager that behaves like this,
> > > unfortunately Plasma taskmanagers do not.
> > 
> > What about having a setting for the latte plasmoid to show window names?
> > Wouldn't that accomplish everything?
> 
> it would but I am not really interested. Latte Tasks can not take the burden
> for all Tasks requirements. A new applet is needed that will support this.

With that in mind perhaps I should open a request for the normal tasks plasmoid to allow this to work?
Comment 11 Michail Vourlakos 2020-05-18 17:29:50 UTC
On the other hand I might be wrong. If we add in an empty plasmapanel a plasma taskmanager and two Spacers, is it centered? If that is the case then Latte needs to update its implementation.
Comment 12 RaitaroH 2020-05-18 17:33:32 UTC
(In reply to Michail Vourlakos from comment #11)
> On the other hand I might be wrong. If we add in an empty plasmapanel a
> plasma taskmanager and two Spacers, is it centered? If that is the case then
> Latte needs to update its implementation.

It seems centered for one open application. After that it sorta drifts to the left.
Comment 13 Michail Vourlakos 2020-05-18 17:35:35 UTC
(In reply to RaitaroH from comment #12)
> (In reply to Michail Vourlakos from comment #11)
> > On the other hand I might be wrong. If we add in an empty plasmapanel a
> > plasma taskmanager and two Spacers, is it centered? If that is the case then
> > Latte needs to update its implementation.
> 
> It seems centered for one open application. After that it sorta drifts to
> the left.

ok, so you can request this from Plasma devs then. If there are two spacers in a panel then Plasma Taskmanagers must be totally centered based on their contents. provide