This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Problem: Cannot control size of widgets

Tags: None
(comma "," separated)
userkde
Registered Member
Posts
40
Karma
0
Hi

There is problem in kde 5 , Cannot control size of widgets ,

The side panel does not show in Kde 5 , so we can not resize widgets in Kde 5

example:

in Kde 4
Image

in Kde 5

Image
User avatar
google01103
Manager
Posts
6668
Karma
25
left click on the widget and hold

there's a new setting, "Desktop Settings" -> Tweaks


OpenSuse Leap 42.1 x64, Plasma 5.x

userkde
Registered Member
Posts
40
Karma
0
OK , but there is a problem in KDE 5 , the panel of widget is always in the right side but in KDE4 the panel could be shown in both side , if moved mouse to left side the panel will shown in left side .

KDE 4 :

Image

Last edited by userkde on Fri Apr 22, 2016 5:08 pm, edited 1 time in total.
User avatar
Rog131
Registered Member
Posts
828
Karma
10
userkde wrote:OK , but there is a problem in KDE 5 , the panel of widget is always in the left side but in KDE4 the panel could be shown in both side , if moved mouse to right side the panel will shown in right side .


You could file wish/bug reports at the https://bugs.kde.org
Bugzilla-driven database of Bug and Wishlist-Entries. Allows to search for existing Bugs and submit new items.



Meanwhile - Plasma 5 applet / widget handle and margins

Note !
- This example is with the plasma 5.6.3.
- I have edited the plasma qml code. Updates to the plasma will overwrite the edits.

The plasma applet appearance code is at AppletAppearance.qml.

With the Arch Linux it is at:
Code: Select all
$ locate AppletAppearance.qml
/usr/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/AppletAppearance.qml


As default the handle is at right:
Image

Applet handle is in 'appletHandle' block - searching with the text editor: 'id: appletHandle'.
Code: Select all
            Loader {
                id: appletHandle
                z: appletContainer.z + 1
                property bool forceFloating : false
                anchors {
                    verticalCenter: parent.verticalCenter
                    right: plasmoidBackground.right
                }


Change:
Code: Select all
right: plasmoidBackground.right

to
Code: Select all
right: plasmoidBackground.left


The margins are in the 'appletContainer' block.
Code: Select all
            Item {
                id: appletContainer
                anchors {
                    fill: parent
                    leftMargin: plasmoidBackground.margins.left
                    rightMargin: plasmoidBackground.margins.right + handleWidth
                    topMargin: plasmoidBackground.margins.top
                    bottomMargin: plasmoidBackground.margins.bottom
                }


Moving the handle margin from the right to the left and making the right margin a bit smaller:
Code: Select all
                    leftMargin: plasmoidBackground.margins.left + handleWidth
                    rightMargin: plasmoidBackground.margins.right - 50



Restarting the plasma shell

KRunner:
Code: Select all
kquitapp5 plasmashel
plasmashelll

or log out - log in.


The Plasma analog clock - handle left & smaller right margin.

Image
userkde
Registered Member
Posts
40
Karma
0
Rog131 Thank you . sorry , I was mean , the panel of widget is always in the right side but not shown in left side.

Is this change will be solve the problem fully? I mean If I move the mouse to left side of widget the panel will be shown in left and vice versa ?
User avatar
Rog131
Registered Member
Posts
828
Karma
10
userkde wrote:Is this change will be solve the problem fully? I mean If I move the mouse to left side of widget the panel will be shown in left and vice versa ?


No, it only flips the handle to the other side.

Hopefully, if you add a bug/wish report a developer will pick it and add the necessary code to do the: 'If I move the mouse to left side of widget the panel will be shown in left and vice versa'
userkde
Registered Member
Posts
40
Karma
0
I think we should wait a developer to submit this bug.
userkde
Registered Member
Posts
40
Karma
0
User avatar
google01103
Manager
Posts
6668
Karma
25
userkde wrote:I think we should wait a developer to submit this bug.

you should see if a bug exists, if not submit one else it may never be known


OpenSuse Leap 42.1 x64, Plasma 5.x



Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], q.ignora, watchstar